bnxt_en: support header page pool in queue API
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 14 repliesApplied 3/3
- v23 patches 6 repliesSuperseded
- v13 patches 5 repliesSuperseded
Changes in v3 from the cover letter
- use common helper bnxt_separate_head_pool() instead of comparing head_pool and page_pool
- better document why TPA changes were needed in patch 3
Patches in v3 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bnxt_en: refactor tpa_info alloc/free into helpersdrivers/ | +90 | 0 replies | Applied |
| 2/3 | bnxt_en: refactor bnxt_alloc_rx_rings() to call bnxt_alloc_rx_agg_bmap()drivers/ | +16 | 0 replies | Applied |
| 3/3 | bnxt_en: handle tpa_info in queue API implementationdrivers/ | +23 | 13 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Somnath Kotur | Michael Chan |
|---|---|---|
| Series | R-b | |
| 1/3 | R-b | |
| 2/3 | R-b | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v3 0/3] bnxt_en: support header page pool in queue API
Commit 7ed816be35ab ("eth: bnxt: use page pool for head frags") added a separate page pool for header frags. Now, frags are allocated from this header page pool e.g. rxr->tpa_info.data.
The queue API did not properly handle rxr->tpa_info and so using the queue API to i.e. reset any queues will result in pages being returned to the incorrect page pool, causing inflight != 0 warnings.
Fix this bug by properly allocating/freeing tpa_info and copying/freeing head_pool in the queue API implementation.
The 1st patch is a prep patch that refactors helpers out to be used by the implementation patch later.
The 2nd patch is a drive-by refactor. Happy to take it out and re-send to net-next if there are any objections.
The 3rd patch is the implementation patch that will properly alloc/free rxr->tpa_info.
---
v3:
- use common helper bnxt_separate_head_pool() instead of comparing head_pool and page_pool
- better document why TPA changes were needed in patch 3
v2:
- remove unneeded struct bnxt_rx_ring_info *rxr declaration
- restore unintended removal of page_pool_disable_direct_recycling()
David Wei (3):
bnxt_en: refactor tpa_info alloc/free into helpers
bnxt_en: refactor bnxt_alloc_rx_rings() to call
bnxt_alloc_rx_agg_bmap()
bnxt_en: handle tpa_info in queue API implementation
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 205 ++++++++++++++-------- 1 file changed, 129 insertions(+), 76 deletions(-)
Signature · 1 line
2.43.5