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]/

Reply via email to