]> git.baikalelectronics.ru Git - kernel.git/commit
net: do not abort bulk send on BQL status
authorEric Dumazet <edumazet@google.com>
Wed, 31 Oct 2018 15:39:13 +0000 (08:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2018 22:40:01 +0000 (15:40 -0700)
commitbfef1781cd89dd6afd2badd8e5651512c5e241bc
tree4bf57a47c7cbb4c077b606ae00ede02849896e19
parentba16a91ea22279fa615b385a38a4d95aa7ff6306
net: do not abort bulk send on BQL status

Before calling dev_hard_start_xmit(), upper layers tried
to cook optimal skb list based on BQL budget.

Problem is that GSO packets can end up comsuming more than
the BQL budget.

Breaking the loop is not useful, since requeued packets
are ahead of any packets still in the qdisc.

It is also more expensive, since next TX completion will
push these packets later, while skbs are not in cpu caches.

It is also a behavior difference with TSO packets, that can
break the BQL limit by a large amount.

Note that drivers should use __netdev_tx_sent_queue()
in order to have optimal xmit_more support, and avoid
useless atomic operations as shown in the following patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c