path: root/samples/pktgen/
diff options
authorJesper Dangaard Brouer <>2015-05-21 12:17:48 +0200
committerDavid S. Miller <>2015-05-22 23:59:17 -0400
commit282fb58947e129dea8badf48972ea89d027a76dc (patch)
treef1be92dbeb67d70b4204cd19ae0d14740c71a897 /samples/pktgen/
parent6f09479758be247fef02188a275383ebaddbe291 (diff)
pktgen: add sample script
Add the pktgen samples script that demonstrates generating packets on multiqueue NICs. Specifically notice the options "-t" that specifies how many kernel threads to activate. Also notice the flag QUEUE_MAP_CPU, which cause the SKB TX queue to be mapped to the CPU running the kernel thread. For best scalability people are also encourage to map NIC IRQ /proc/irq/*/smp_affinity to CPU number. Usage example with "-t" 4 threads and help: ./ -i eth4 -m 00:1B:21:3C:9D:F8 -t 4 Usage: ./ [-vx] -i ethX -i : ($DEV) output interface/device (required) -s : ($PKT_SIZE) packet size -d : ($DEST_IP) destination IP -m : ($DST_MAC) destination MAC-addr -t : ($THREADS) threads to start -c : ($SKB_CLONE) SKB clones send before alloc new SKB -b : ($BURST) HW level bursting of SKBs -v : ($VERBOSE) verbose -x : ($DEBUG) debug Removing pktgen.conf-2-1 and pktgen.conf-2-2 as these examples should be covered now. Signed-off-by: Jesper Dangaard Brouer <> Signed-off-by: David S. Miller <>
Diffstat (limited to 'samples/pktgen/')
0 files changed, 0 insertions, 0 deletions