<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/samples/pktgen/README.rst, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/samples/pktgen/README.rst?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/samples/pktgen/README.rst?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2021-03-14T21:22:38Z</updated>
<entry>
<title>samples: pktgen: new append mode</title>
<updated>2021-03-14T21:22:38Z</updated>
<author>
<name>Igor Russkikh</name>
<email>irusskikh@marvell.com</email>
</author>
<published>2021-03-11T10:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c8fd4852022ca8ae85ac4d30d05950eaf506b828'/>
<id>urn:sha1:c8fd4852022ca8ae85ac4d30d05950eaf506b828</id>
<content type='text'>
To configure various complex flows we for sure can create custom
pktgen init scripts, but sometimes thats not that easy.

New "-a" (append) option in all the existing sample scripts allows
to append more "devices" into pktgen threads.

The most straightforward usecases for that are:
- using multiple devices. We have to generate full linerate on
all physical functions (ports) of our multiport device.
- pushing multiple flows (with different packet options)

Signed-off-by: Igor Russkikh &lt;irusskikh@marvell.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>samples: pktgen: allow to specify delay parameter via new opt</title>
<updated>2021-03-14T21:22:37Z</updated>
<author>
<name>Igor Russkikh</name>
<email>irusskikh@marvell.com</email>
</author>
<published>2021-03-11T10:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ef700f2ea27e54f640c3957374469132e8bf46f5'/>
<id>urn:sha1:ef700f2ea27e54f640c3957374469132e8bf46f5</id>
<content type='text'>
DELAY may now be explicitly specified via common parameter -w

Signed-off-by: Igor Russkikh &lt;irusskikh@marvell.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>docs: networking: convert pktgen.txt to ReST</title>
<updated>2020-04-30T19:56:37Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+huawei@kernel.org</email>
</author>
<published>2020-04-30T16:04:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c1e4535f24bcfeef55a7ed409a5f50548e284426'/>
<id>urn:sha1:c1e4535f24bcfeef55a7ed409a5f50548e284426</id>
<content type='text'>
- add SPDX header;
- adjust title markup;
- use bold markups on a few places;
- mark code blocks and literals as such;
- adjust identation, whitespaces and blank lines where needed;
- add to networking/index.rst.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>samples: pktgen: allow to specify destination IP range (CIDR)</title>
<updated>2019-10-07T13:26:32Z</updated>
<author>
<name>Daniel T. Lee</name>
<email>danieltimlee@gmail.com</email>
</author>
<published>2019-10-05T08:25:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=40f843ee5e17673780c0969c8248b31a8d926b17'/>
<id>urn:sha1:40f843ee5e17673780c0969c8248b31a8d926b17</id>
<content type='text'>
Currently, kernel pktgen has the feature to specify destination
address range for sending packet. (e.g. pgset "dst_min/dst_max")

But on samples, each pktgen script doesn't have any option to achieve this.

This commit adds the feature to specify the destination address range with CIDR.

    -d : ($DEST_IP)   destination IP. CIDR (e.g. 198.18.0.0/15) is also allowed

    # ./pktgen_sample01_simple.sh -6 -d fe80::20/126 -p 3000 -n 4
    # tcpdump ip6 and udp
    05:14:18.082285 IP6 fe80::99.71 &gt; fe80::23.3000: UDP, length 16
    05:14:18.082564 IP6 fe80::99.43 &gt; fe80::23.3000: UDP, length 16
    05:14:18.083366 IP6 fe80::99.107 &gt; fe80::22.3000: UDP, length 16
    05:14:18.083585 IP6 fe80::99.97 &gt; fe80::21.3000: UDP, length 16

Signed-off-by: Daniel T. Lee &lt;danieltimlee@gmail.com&gt;
Acked-by: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>samples: pktgen: allow to specify destination port</title>
<updated>2019-07-01T18:02:20Z</updated>
<author>
<name>Daniel T. Lee</name>
<email>danieltimlee@gmail.com</email>
</author>
<published>2019-06-29T13:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=6e32a74a6f151c3e64d7d79e54948b8938be2cdc'/>
<id>urn:sha1:6e32a74a6f151c3e64d7d79e54948b8938be2cdc</id>
<content type='text'>
Currently, kernel pktgen has the feature to specify udp destination port
for sending packet. (e.g. pgset "udp_dst_min 9")

But on samples, each of the scripts doesn't have any option to achieve this.

This commit adds the DST_PORT option to specify the target port(s) in the script.

    -p : ($DST_PORT)  destination PORT range (e.g. 433-444) is also allowed

Signed-off-by: Daniel T. Lee &lt;danieltimlee@gmail.com&gt;
Acked-by: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>pktgen: Specify the index of first thread</title>
<updated>2017-06-16T16:32:34Z</updated>
<author>
<name>Tariq Toukan</name>
<email>tariqt@mellanox.com</email>
</author>
<published>2017-06-15T16:07:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e0e16672ee9e2c31d9601d762cf934196b13a7fc'/>
<id>urn:sha1:e0e16672ee9e2c31d9601d762cf934196b13a7fc</id>
<content type='text'>
Use "-f &lt;num&gt;", to specify the index of the first
sender thread.
In default first thread is #0.

Signed-off-by: Tariq Toukan &lt;tariqt@mellanox.com&gt;
Cc: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Acked-by: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>pktgen: Specify num packets per thread</title>
<updated>2017-06-16T16:32:34Z</updated>
<author>
<name>Tariq Toukan</name>
<email>tariqt@mellanox.com</email>
</author>
<published>2017-06-15T16:07:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=69137ea60c9dad58773a1918de6c1b00b088520c'/>
<id>urn:sha1:69137ea60c9dad58773a1918de6c1b00b088520c</id>
<content type='text'>
Use -n &lt;num&gt;, to specify the number of packets every
thread sends.
Zero means indefinitely.

Signed-off-by: Tariq Toukan &lt;tariqt@mellanox.com&gt;
Cc: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Acked-by: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>pktgen: new pktgen helper functions for samples scripts</title>
<updated>2015-05-23T03:59:16Z</updated>
<author>
<name>Jesper Dangaard Brouer</name>
<email>brouer@redhat.com</email>
</author>
<published>2015-05-21T10:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b64b0d1e64959691c1f4067a05fdb541d453ed6a'/>
<id>urn:sha1:b64b0d1e64959691c1f4067a05fdb541d453ed6a</id>
<content type='text'>
Preparing for removing existing samples/pktgen/ scripts, and
replacing these with easier to use samples.

This commit provides two helper shell files, that can
be "included" by shell source'ing. Namely "functions.sh"
and "parameters.sh".

The parameters.sh file support easy and consistant parameter
parsing across the sample scripts.  Usage example is printed on
errors.

The functions.sh file provides, three new shell functions for
configuring the different components of pktgen: pg_ctrl(),
pg_thread() and pg_set().  A slightly improved version of the old
pgset() function is also provided for backwards compat.

The new functions correspond to pktgens different components.
 * pg_ctrl()   control "pgctrl" (/proc/net/pktgen/pgctrl)
 * pg_thread() control the kernel threads and binding to devices
 * pg_set()    control setup of individual devices

These changes are borrowed from:
 https://github.com/netoptimizer/network-testing/tree/master/pktgen

Signed-off-by: Jesper Dangaard Brouer &lt;brouer@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
