eth: fbnic: support queue API and zero-copy Rx
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
- v3 Latest14 patches 0 repliesApplied 14/14
- v214 patches 3 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | eth: fbnic: move page pool pointer from NAPI to the ring structdrivers/ drivers/ | +55 | 0 replies | Applied |
| 2/14 | eth: fbnic: move xdp_rxq_info_reg() to resource allocdrivers/ | +26 | 0 replies | Applied |
| 3/14 | eth: fbnic: move page pool alloc to fbnic_alloc_rx_qt_resources()drivers/ | +9 | 0 replies | Applied |
| 4/14 | eth: fbnic: use netmem_ref where applicabledrivers/ drivers/ | +40 | 0 replies | Applied |
| 5/14 | eth: fbnic: request ops lockdrivers/ drivers/ drivers/ | +18 | 0 replies | Applied |
| 6/14 | eth: fbnic: split fbnic_disable()drivers/ | +25 | 0 replies | Applied |
| 7/14 | eth: fbnic: split fbnic_flush()drivers/ | +45 | 0 replies | Applied |
| 8/14 | eth: fbnic: split fbnic_enable()drivers/ | +25 | 0 replies | Applied |
| 9/14 | eth: fbnic: split fbnic_fill()drivers/ | +18 | 0 replies | Applied |
| 10/14 | net: add helper to pre-check if PP for an Rx queue will be unreadabledrivers/ include/ include/ +1 more | +24 | 0 replies | Applied |
| 11/14 | eth: fbnic: allocate unreadable page pool for the payloadsdrivers/ | +21 | 0 replies | Applied |
| 12/14 | eth: fbnic: defer page pool recycling activation to queue startdrivers/ | +5 | 0 replies | Applied |
| 13/14 | eth: fbnic: don't pass NAPI into pp allocdrivers/ | +4 | 0 replies | Applied |
| 14/14 | eth: fbnic: support queue ops / zero-copy Rxdrivers/ drivers/ drivers/ | +174 | 0 replies | Applied |
Reviews trailers per patch
5 of 14 patches have a Reviewed-by or Acked-by.
| Patch | Mina Almasry |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | R-b |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | R-b |
| 11/14 | R-b |
| 12/14 | R-b |
| 13/14 | |
| 14/14 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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