diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-04-02 20:52:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-03 14:29:12 -0400 |
commit | 8e2f1a63f2217365223026422a2f8ba5967051d6 (patch) | |
tree | 617c58bd5a55d41cfe3c28e1087a17691f1ae197 /net/core/dev.c | |
parent | 0f97ede45e65ffb6eab856313e79b14b902bcfaa (diff) | |
download | linux-8e2f1a63f2217365223026422a2f8ba5967051d6.tar.bz2 |
packet: fix packet_direct_xmit for BQL enabled drivers
Currently, in packet_direct_xmit() we test the assigned netdevice queue
for netif_xmit_frozen_or_stopped() before doing an ndo_start_xmit().
This can have the side-effect that BQL enabled drivers which make use
of netdev_tx_sent_queue() internally, set __QUEUE_STATE_STACK_XOFF from
within the stack and would not fully fill the device's TX ring from
packet sockets with PACKET_QDISC_BYPASS enabled.
Instead, use a test without BQL bit so that bursts can be absorbed
into the NICs TX ring. Fix and code suggested by Eric Dumazet, thanks!
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions