pktgen: add benchmark script pktgen_bench_xmit_mode_netif_receive.sh
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 21 May 2015 10:18:29 +0000 (12:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2015 03:59:17 +0000 (23:59 -0400)
commit05a14d5e17c21817946b6a50140c4a45257ad592
tree18c3a483cbb1337c729d18cc5fd2006582b36739
parent1d73ba16ad3975a2eb27e47e52fc215c0c5b8d83
pktgen: add benchmark script pktgen_bench_xmit_mode_netif_receive.sh

This script pktgen_bench_xmit_mode_netif_receive.sh is a benchmark
script, which can be used for benchmarking part of the network stack.
This can be used for performance improving or catching regression in
that area.

The script is developed for benchmarking ingress qdisc path, original
idea by Alexei Starovoitov.  This script don't really need any
hardware.  This is achieved via the recently introduced stack inject
feature "xmit_mode netif_receive". See commit 62f64aed622b6 ("pktgen:
introduce xmit_mode '<start_xmit|netif_receive>'").

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/pktgen/pktgen_bench_xmit_mode_netif_receive.sh [new file with mode: 0755]