]> git.karo-electronics.de Git - linux-beck.git/commit
net: pktgen: packet bursting via skb->xmit_more
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 1 Oct 2014 00:53:21 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Oct 2014 02:08:12 +0000 (22:08 -0400)
commit38b2cf2982dc73d3f07fe84fec8cc4ed9f64c1c5
treee1eeab1caf5d330a4bb9c8eeb4543af5c38c769b
parent775dd692bd34f9201ed2aa775a0edcba4f973f3e
net: pktgen: packet bursting via skb->xmit_more

This patch demonstrates the effect of delaying update of HW tailptr.
(based on earlier patch by Jesper)

burst=1 is the default. It sends one packet with xmit_more=false
burst=2 sends one packet with xmit_more=true and
        2nd copy of the same packet with xmit_more=false
burst=3 sends two copies of the same packet with xmit_more=true and
        3rd copy with xmit_more=false

Performance with ixgbe (usec 30):
burst=1  tx:9.2 Mpps
burst=2  tx:13.5 Mpps
burst=3  tx:14.5 Mpps full 10G line rate

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/pktgen.txt
net/core/pktgen.c