mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lucio Maciel <abslucio@terra.com.br>
To: marcelo@conectiva.com.br
Cc: Robert Olsson <Robert.Olsson@data.slu.se>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [TRIVIAL PATCH] PKTGEN Documentation
Date: Fri, 1 Nov 2002 09:51:31 -0300	[thread overview]
Message-ID: <20021101095131.5c3675aa.abslucio@terra.com.br> (raw)

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

Hello...

this patch correct the doc for pktgen
change multiskb to clone_skb and /proc/net/pg to /proc/net/pktgen 

Please apply (diff from 2.4.20-rc1)...

cya
-- 
::: Lucio F. Maciel
::: abslucio@terra.com.br
::: icq 93065464

[-- Attachment #2: pktgen-doc.diff --]
[-- Type: application/octet-stream, Size: 2572 bytes --]

--- Documentation/networking/pktgen.txt~	2002-11-01 09:39:17.000000000 -0300
+++ Documentation/networking/pktgen.txt	2002-11-01 09:34:51.000000000 -0300
@@ -6,13 +6,15 @@
 3. Edit script to set preferred device and destination IP address.
 3a.  Create more scripts for different interfaces.  Up to thirty-two
      pktgen processes can be configured and run at once by using the
-     32 /proc/net/pg* files.
+     32 /proc/net/pktgen/pg* files.
 4. Run in shell: ". ipg"
 5. After this two commands are defined:
    A. "pg" to start generator and to get results.
    B. "pgset" to change generator parameters. F.e.
-      pgset "multiskb 1"      use multiple SKBs for packet generation
-      pgset "multiskb 0"      use single SKB for all transmits
+      pgset "clone_skb 100"   sets the number of coppies (in this case 100) of 
+                              the same packet will be sent before a new packet 
+                              is allocated
+      pgset "clone_skb 0"     use multiple SKBs for packet generation
       pgset "pkt_size 9014"   sets packet size to 9014
       pgset "frags 5"         packet will consist of 5 fragments
       pgset "count 200000"    sets number of packets to send, set to zero
@@ -33,16 +35,16 @@
       pgset "dst_mac_count 1" Sets the number of MACs we'll range through.  The
                               'minimum' MAC is what you set with dstmac.
       pgset "flag [name]"     Set a flag to determine behaviour.  Current flags
-                              are: IPSRC_RND #IP Source is random (between min/max),
-                                   IPDST_RND, UDPSRC_RND,
-                                   UDPDST_RND, MACSRC_RND, MACDST_RND 
+                              are: IPSRC_RND #IP Source is random 
+                              (between min/max), IPDST_RND, UDPSRC_RND,
+                              UDPDST_RND, MACSRC_RND, MACDST_RND 
       pgset "udp_src_min 9"   set UDP source port min, If < udp_src_max, then
                               cycle through the port range.
       pgset "udp_src_max 9"   set UDP source port max.
       pgset "udp_dst_min 9"   set UDP destination port min, If < udp_dst_max, then
                               cycle through the port range.
       pgset "udp_dst_max 9"   set UDP destination port max.
-      pgset stop    	      aborts injection
+      pgset stop              aborts injection
       
   Also, ^C aborts generator.
 
@@ -52,7 +54,7 @@
 
 modprobe pktgen
 
-PGDEV=/proc/net/pg/pg0
+PGDEV=/proc/net/pktgen/pg0
 
 function pgset() {
     local result

             reply	other threads:[~2002-11-01 12:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-01 12:51 Lucio Maciel [this message]
     [not found] <20021101095131.5c3675aa.abslucio@terra.com. br>
2002-11-01 13:50 ` Robert Olsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021101095131.5c3675aa.abslucio@terra.com.br \
    --to=abslucio@terra.com.br \
    --cc=Robert.Olsson@data.slu.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®