]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: fix xmit test for BQL enabled devices
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 7 Apr 2014 15:18:30 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Apr 2014 19:20:44 +0000 (15:20 -0400)
commit261619fe93b22e983fbb2e37a3b35a0cfee08114
treeb86524a8db6002c790bae2da003f4598b3ea8f2d
parent21eef43db6d8474d60b318da13680d9084283dcc
pktgen: fix xmit test for BQL enabled devices

Similarly as in commit a37152b99b77 ("packet: fix packet_direct_xmit
for BQL enabled drivers"), we test for __QUEUE_STATE_STACK_XOFF bit
in pktgen's xmit, which would not fully fill the device's TX ring for
BQL drivers that use netdev_tx_sent_queue(). Fix is to use, similarly
as we do in packet sockets, netif_xmit_frozen_or_drv_stopped() test.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c