Skip to content

net: bql: better deal with GSO

Eric Dumazet netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: bql: add __netdev_tx_sent_queue()include/linux/netdevice.h+20 -00 replies
2/3net: do not abort bulk send on BQL statusnet/core/dev.c+1 -10 replies
3/3net/mlx4_en: use __netdev_tx_sent_queue()drivers/net/ethernet/mellanox/mlx4/en_tx.c+4 -21 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchTariq Toukan
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net 0/3] net: bql: better deal with GSO

While BQL bulk dequeue works well for TSO packets, it is not very efficient as soon as GSO is involved.

On a GSO only workload (UDP or TCP), this patch series can save about 8 % of cpu cycles on a 40Gbit mlx4 NIC, by keeping optimal batching, and avoiding expensive doorbells, qdisc requeues and reschedules.

This patch series :

- Add __netdev_tx_sent_queue() so that drivers can implement efficient BQL and xmit_more support.

- Implement a work around in dev_hard_start_xmit() for drivers not using __netdev_tx_sent_queue()

- changes mlx4 to use __netdev_tx_sent_queue()

v2: Tariq and Willem feedback addressed.
added __netdev_tx_sent_queue() (Willem suggestion)

Eric Dumazet (3):
net: bql: add __netdev_tx_sent_queue()
net: do not abort bulk send on BQL status
net/mlx4_en: use __netdev_tx_sent_queue()

 drivers/net/ethernet/mellanox/mlx4/en_tx.c |  6 ++++--
 include/linux/netdevice.h                  | 20 ++++++++++++++++++++
 net/core/dev.c                             |  2 +-
 3 files changed, 25 insertions(+), 3 deletions(-)
Signature · 1 line
2.19.1.930.g4563a0d9d0-goog