From 7d1ba2b499fcd904bdea7a965688ab7ffd3e390e Mon Sep 17 00:00:00 2001 From: Jesper Dangaard Brouer Date: Thu, 12 Dec 2013 13:41:51 +0100 Subject: trafgen: take advantage of PACKET_QDISC_BYPASS sock option Since Linux 3.14, the kernel supports a socket option PACKET_QDISC_BYPASS, which trafgen enables by default. That allow us to bypass the kernels normal qdisc (traffic control) layer. An option -q, --qdisc-path is added to allow enabling the qdisc path explicity, useful for testing purposes. This will be avail in kernels >= 3.14 via commit d346a3fae3 (packet: introduce PACKET_QDISC_BYPASS socket option). Signed-off-by: Jesper Dangaard Brouer --- trafgen.8 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'trafgen.8') diff --git a/trafgen.8 b/trafgen.8 index 6a49fd0..72c2575 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -161,6 +161,12 @@ threads. .SS -Q, --notouch-irq Do not reassign the NIC's IRQ CPU affinity settings. .PP +.SS -q, --qdisc-path +Since Linux 3.14, the kernel supports a socket option PACKET_QDISC_BYPASS, +which trafgen enables by default. This options disables the qdisc bypass, +and uses the normal send path through the kernel's qdisc (traffic control) +layer, which can be usefully for testing the qdisc path. +.PP .SS -V, --verbose Let trafgen be more talkative and let it print the parsed configuration and some ring buffer statistics. -- cgit v1.2.3-54-g00ecf