On Wed, Jul 13, 2016 at 10:06:10PM +0200, Jesper Dangaard Brouer wrote: > This pktgen sample script is useful for scalability testing a > receiver. The script will simply generate one flow per > thread (option -t N) using the thread number as part of the > source IP-address. > > The single flow sample (pktgen_sample03_burst_single_flow.sh) > have become quite popular, but it is important that developers > also make sure to benchmark scalability of multiple receive > queues. > > Signed-off-by: Jesper Dangaard Brouer <bro...@redhat.com> > --- > samples/pktgen/pktgen_sample05_flow_per_thread.sh | 81 > +++++++++++++++++++++ > 1 file changed, 81 insertions(+) ... > + # Setup source IP-addresses based on thread number > + pg_set $dev "src_min 198.18.$((thread+1)).1" > + pg_set $dev "src_max 198.18.$((thread+1)).1"
I have similar script that uses udp_src_min/max to change port number, since port is easier to match on the target host and we don't use ipv4 ;) but this script is also good improvement. Thanks! Acked-by: Alexei Starovoitov <a...@kernel.org>