Skip to content

ibmvnic: Performance improvements and other updates

Thomas Falcon linuxppc-dev netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 8 repliesApplied
  2. v112 patches 11 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9ibmvnic: Introduce indirect subordinate Command Response Queue bufferdrivers/net/ethernet/ibm/ibmvnic.c drivers/net/ethernet/ibm/ibmvnic.h+32 -01 reply
2/9ibmvnic: Introduce batched RX buffer descriptor transmissiondrivers/net/ethernet/ibm/ibmvnic.c+37 -200 replies
3/9ibmvnic: Introduce xmit_more support using batched subCRQ hcallsdrivers/net/ethernet/ibm/ibmvnic.c+139 -650 replies
4/9ibmvnic: Clean up TX code and TX buffer data structuredrivers/net/ethernet/ibm/ibmvnic.c drivers/net/ethernet/ibm/ibmvnic.h+11 -280 replies
5/9ibmvnic: Remove send_subcrq functiondrivers/net/ethernet/ibm/ibmvnic.c+0 -341 reply
6/9ibmvnic: Ensure that device queue memory is cache-line aligneddrivers/net/ethernet/ibm/ibmvnic.c drivers/net/ethernet/ibm/ibmvnic.h+11 -80 replies
7/9ibmvnic: Correctly re-enable interrupts in NAPI polling routinedrivers/net/ethernet/ibm/ibmvnic.c+23 -140 replies
8/9ibmvnic: Use netdev_alloc_skb instead of alloc_skb to replenish RX buffersdrivers/net/ethernet/ibm/ibmvnic.c+1 -11 reply
9/9ibmvnic: Do not replenish RX buffers after every polling loopdrivers/net/ethernet/ibm/ibmvnic.c+4 -14 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchLijun Pan
1/9A-b
2/9
3/9
4/9
5/9A-b
6/9
7/9
8/9A-b
9/9

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 net-next v2 0/9] ibmvnic: Performance improvements and other updates

The first three patches utilize a hypervisor call allowing multiple TX and RX buffer replenishment descriptors to be sent in one operation, which significantly reduces hypervisor call overhead. The xmit_more and Byte Queue Limit API's are leveraged to provide this support for TX descriptors.

The subsequent two patches remove superfluous code and members in TX completion handling function and TX buffer structure, respectively, and remove unused routines.

Finally, four patches which ensure that device queue memory is cache-line aligned, resolving slowdowns observed in PCI traces, as well as optimize the driver's NAPI polling function and to RX buffer replenishment are provided by Dwip Banerjee.

This series provides significant performance improvements, allowing the driver to fully utilize 100Gb NIC's.

v2 updates:

1) Removed three patches from the original series which
were bug fixes and thus better suited for the net tree, suggested by Jakub Kicinski.
2) Fixed error handling when initializing device queues, suggested by Jakub Kicinski.
3) Fixed bug where queued entries were not flushed after a dropped frame, also suggested by Jakub. Two functions, ibmvnic_tx_scrq_flush and its helper ibmvnic_tx_scrq_clean_buffer, were introduced to ensure that queued frames are either submitted to firmware or, if that is not successful, freed as dropped and associated data structures are updated with the new device queue state.

Dwip N. Banerjee (4):
ibmvnic: Ensure that device queue memory is cache-line aligned
ibmvnic: Correctly re-enable interrupts in NAPI polling routine
ibmvnic: Use netdev_alloc_skb instead of alloc_skb to replenish RX
buffers
ibmvnic: Do not replenish RX buffers after every polling loop

Thomas Falcon (5):
ibmvnic: Introduce indirect subordinate Command Response Queue buffer
ibmvnic: Introduce batched RX buffer descriptor transmission
ibmvnic: Introduce xmit_more support using batched subCRQ hcalls
ibmvnic: Clean up TX code and TX buffer data structure
ibmvnic: Remove send_subcrq function

 drivers/net/ethernet/ibm/ibmvnic.c | 398 ++++++++++++++++++-----------
 drivers/net/ethernet/ibm/ibmvnic.h |  27 +-
 2 files changed, 256 insertions(+), 169 deletions(-)
Signature · 1 line
2.26.2