Skip to content

eth: fbnic: support queue API and zero-copy Rx

Jakub Kicinski netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 0 repliesApplied 14/14
  2. v214 patches 3 repliesSuperseded
  3. v115 patches 16 repliesSuperseded 1 of 15 applied

Changes in v3 from the cover letter

- rebase (fix from net added something to the context)
v2: https://lore.kernel.org/[email protected]
- rework patch 10
- update commit message in patch 11
v1: https://lore.kernel.org/[email protected]

Patches in v3 All 14 applied

#Subject and filesSizeRepliesApplied
1/14eth: fbnic: move page pool pointer from NAPI to the ring structdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c drivers/net/ethernet/meta/fbnic/fbnic_txrx.h+55 -440 repliesApplied
2/14eth: fbnic: move xdp_rxq_info_reg() to resource allocdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c+26 -320 repliesApplied
3/14eth: fbnic: move page pool alloc to fbnic_alloc_rx_qt_resources()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+9 -280 repliesApplied
4/14eth: fbnic: use netmem_ref where applicabledrivers/net/ethernet/meta/fbnic/fbnic_txrx.c drivers/net/ethernet/meta/fbnic/fbnic_txrx.h+40 -270 repliesApplied
5/14eth: fbnic: request ops lockdrivers/net/ethernet/meta/fbnic/fbnic_netdev.c drivers/net/ethernet/meta/fbnic/fbnic_pci.c drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+18 -80 repliesApplied
6/14eth: fbnic: split fbnic_disable()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+25 -210 repliesApplied
7/14eth: fbnic: split fbnic_flush()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+45 -420 repliesApplied
8/14eth: fbnic: split fbnic_enable()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+25 -220 repliesApplied
9/14eth: fbnic: split fbnic_fill()drivers/net/ethernet/meta/fbnic/fbnic_txrx.c+18 -150 repliesApplied
10/14net: add helper to pre-check if PP for an Rx queue will be unreadabledrivers/net/ethernet/mellanox/mlx5/core/en_main.c include/net/netdev_queues.h include/net/page_pool/helpers.h +1 more+24 -80 repliesApplied
11/14eth: fbnic: allocate unreadable page pool for the payloadsdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c+21 -100 repliesApplied
12/14eth: fbnic: defer page pool recycling activation to queue startdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c+5 -10 repliesApplied
13/14eth: fbnic: don't pass NAPI into pp allocdrivers/net/ethernet/meta/fbnic/fbnic_txrx.c+4 -40 repliesApplied
14/14eth: fbnic: support queue ops / zero-copy Rxdrivers/net/ethernet/meta/fbnic/fbnic_netdev.c drivers/net/ethernet/meta/fbnic/fbnic_txrx.c drivers/net/ethernet/meta/fbnic/fbnic_txrx.h+174 -20 repliesApplied

Reviews trailers per patch

5 of 14 patches have a Reviewed-by or Acked-by.

PatchMina Almasry
1/14
2/14
3/14
4/14R-b
5/14
6/14
7/14
8/14
9/14
10/14R-b
11/14R-b
12/14R-b
13/14
14/14A-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 00/14] eth: fbnic: support queue API and zero-copy Rx

Add support for queue API to fbnic, enable zero-copy Rx.

Patch 10 is likely of most interest as it adds a new core helper (and touches mlx5). The rest of the patches are fbnic-specific (and relatively boring).

Patches 1-3 reshuffle the Rx init/allocation path to better align structures and functions which operate on them. Notably patch 1 moves the page pool pointer to the queue struct (from NAPI).

Patch 4 converts the driver to use netmem_ref. The driver has separate and explicit buffer queue for scatter / payloads, so only references to those are converted.

Next 5 patches are more boring code shifts.

Patch 11 adds unreadable memory support to page pool allocation.

Patch 14 finally adds the support for queue API.

v3:
- rebase (fix from net added something to the context)
v2: https://lore.kernel.org/[email protected]
- rework patch 10
- update commit message in patch 11
v1: https://lore.kernel.org/[email protected]

Jakub Kicinski (14):
eth: fbnic: move page pool pointer from NAPI to the ring struct
eth: fbnic: move xdp_rxq_info_reg() to resource alloc
eth: fbnic: move page pool alloc to fbnic_alloc_rx_qt_resources()
eth: fbnic: use netmem_ref where applicable
eth: fbnic: request ops lock
eth: fbnic: split fbnic_disable()
eth: fbnic: split fbnic_flush()
eth: fbnic: split fbnic_enable()
eth: fbnic: split fbnic_fill()
net: add helper to pre-check if PP for an Rx queue will be unreadable
eth: fbnic: allocate unreadable page pool for the payloads
eth: fbnic: defer page pool recycling activation to queue start
eth: fbnic: don't pass NAPI into pp alloc
eth: fbnic: support queue ops / zero-copy Rx

 drivers/net/ethernet/meta/fbnic/fbnic_txrx.h  |  20 +-
 include/net/netdev_queues.h                   |   2 +
 include/net/page_pool/helpers.h               |  12 +
 .../net/ethernet/mellanox/mlx5/core/en_main.c |   9 +-
 .../net/ethernet/meta/fbnic/fbnic_netdev.c    |   1 +
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c   |   9 +-
 drivers/net/ethernet/meta/fbnic/fbnic_txrx.c  | 621 ++++++++++++------
 net/core/netdev_rx_queue.c                    |   9 +
 8 files changed, 454 insertions(+), 229 deletions(-)
Signature · 1 line
2.51.0