Skip to content

ibmveth: prepare the RX path for multi-queue

Mingming Cao linuxppc-dev netdev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v18 patches 1 replySuperseded

Changes in v2 from the cover letter

- 5/8: keep mapping the TX long-term buffers before RX buffers go to PHYP, as today; v1 moved them after RX bring-up, which can fail open() under CMO. Drop the netif_tx_disable() that order needed. (Sashiko)
- 2/8, 4/8, 6/8, 7/8, 8/8: comment, naming and argument-order fixes (Sashiko); details in each patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ibmveth: Prepare MQ RX adapter data structuresdrivers/net/ethernet/ibm/ibmveth.c drivers/net/ethernet/ibm/ibmveth.h+136 -1160 replies
2/8ibmveth: Refactor RX resource allocation for MQ RX bring-updrivers/net/ethernet/ibm/ibmveth.c+188 -780 replies
3/8ibmveth: Refactor buffer pool management for per-queue MQ RXdrivers/net/ethernet/ibm/ibmveth.c+99 -200 replies
4/8ibmveth: Refactor RX interrupt control for MQ RX queuesdrivers/net/ethernet/ibm/ibmveth.c drivers/net/ethernet/ibm/ibmveth.h+175 -500 replies
5/8ibmveth: Refactor TX resource allocation in open/close pathsdrivers/net/ethernet/ibm/ibmveth.c+57 -110 replies
6/8ibmveth: Add RX queue register helpers for MQdrivers/net/ethernet/ibm/ibmveth.c+100 -490 replies
7/8ibmveth: Pass the RX queue index through replenish and polldrivers/net/ethernet/ibm/ibmveth.c+129 -850 replies
8/8ibmveth: Split RX poll into per-slot helpers for MQdrivers/net/ethernet/ibm/ibmveth.c+150 -1270 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchDave MarquardtShaik Abdulla
1/8
2/8R-b T-b
3/8R-b T-b
4/8
5/8
6/8
7/8
8/8

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/8] ibmveth: prepare the RX path for multi-queue

ibmveth receives on a single RX queue with one interrupt, so all of a virtual ethernet adapter's receive processing runs on one CPU. Power11 firmware can give the adapter several RX queues, each with its own interrupt and buffers.

This series only reshapes the existing RX path: open/close, buffer pools, interrupts, replenish and poll now take a queue index. IBMVETH_MAX_RX_QUEUES stays 1, so every loop runs once. Same hypercalls, same ethtool behaviour, no new ABI. Multi-queue enable is a later series.

Patches 1-5 move the open/close path onto per-queue helpers. Patch 6 moves LAN registration and teardown out of open()/close(). Patch 7 passes the queue index through replenish and poll. Patch 8 splits poll into per-slot helpers.

This series was split from an earlier posting of the full multi-queue work [1], which was too large to review as one [2]. Two related bug fixes go to net-next in a separate thread; neither depends on the other, and they apply in either order.

Tested: on a PowerVM LPAR, one RX queue: ifdown/up under iperf3, MTU change, ethtool -L rx 2 rejected, TX shrink under traffic. v2 on QEMU pseries only, with the net fixes v2 applied: the same checks with UDP traffic, and the KUnit suite.

Changes in v2:
- 5/8: keep mapping the TX long-term buffers before RX buffers go to PHYP, as today; v1 moved them after RX bring-up, which can fail open() under CMO. Drop the netif_tx_disable() that order needed. (Sashiko)
- 2/8, 4/8, 6/8, 7/8, 8/8: comment, naming and argument-order fixes (Sashiko); details in each patch

v1: https://lore.kernel.org/netdev/[email protected]/

[1] https://lore.kernel.org/netdev/[email protected]/
[2] https://lore.kernel.org/netdev/[email protected]/