bnxt_en: Ring accounting fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest9 patches 1 replyIn review
- v48 patches 2 repliesSuperseded
- v37 patches 7 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 9 patches | 6 replies | Superseded | |
| v2 posting 1/2 | 3 patches | 0 replies | Applied 3/3 | |
| v1 | 3 patches | 1 reply | Superseded |
Changes in v5 from the cover letter
Added a new patch #9 to handle MSI-X separately.
Fixed 2 Sashiko reported issues in patch #1 and #8 (fixed in #9)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | bnxt_en: Clear bp->total_irqs when disabling IRQsdrivers/ drivers/ drivers/ | +22 | 1 reply | |
| 2/9 | bnxt_en: Fix bnxt_reinit_features() when irq_re_init is truedrivers/ | +2 | 0 replies | |
| 3/9 | bnxt_en: Refactor RSS table check logicdrivers/ | +15 | 0 replies | |
| 4/9 | bnxt_en: Refactor IRQs required logicdrivers/ | +15 | 0 replies | |
| 5/9 | bnxt_en: Reinit IRQ when configuring LRO/GRO/HDSdrivers/ drivers/ | +16 | 0 replies | |
| 6/9 | bnxt_en: Remove support for the old NITRO A0 chipdrivers/ drivers/ drivers/ | +19 | 0 replies | |
| 7/9 | bnxt_en: Refactor bnxt_num_cp_to_tx()/bnxt_num_tx_to_cp() helpersdrivers/ drivers/ | +15 | 0 replies | |
| 8/9 | bnxt_en: Fix ring accounting/validation when rings are constrained by FWdrivers/ | +106 | 0 replies | |
| 9/9 | bnxt_en: Fix ring accounting/validation when IRQs are constraineddrivers/ | +73 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Andy Gospodarek | Joe Damato |
|---|---|---|
| 1/9 | R-b | |
| 2/9 | R-b | |
| 3/9 | R-b | R-b |
| 4/9 | R-b | R-b |
| 5/9 | R-b | |
| 6/9 | R-b | R-b |
| 7/9 | R-b | |
| 8/9 | R-b | |
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v5 0/9] bnxt_en: Ring accounting fixes
The main purpose of this patchset is to fix ring accounting bugs specifically when FW is unable to reserve all the rings requested by the driver or when there are not enough MSI-X vectors. This issue was first reported by Sashiko when reviewing the driver patches to support kTLS (patch #3 of 15):
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/[email protected]
kTLS support requires the new MPC rings, so the patches touch the existing ring reservation logic and exposed the issues to Sashiko. The issues are real but only likely to be hit with a large number of VFs, stressing the ring resources to the limit. These issues were not found in the lab or by users, so Jakub suggested splitting these out and posting them to net-next.
The patchset includes some refactoring and some related fixes in this code path. The driver will now scale down the rings properly when FW is unable reserve all the rings requested by the driver or when there are not enough MSI-X vectors. The default RSS context is also reset if the RX rings have been
reduced if needed. Note that additional RSS contexts and
n-tuple filters have similar problems if the RX rings are reduced and the fixes are deferred to a future patchset.
Patch #6 is new and removes support for the obsolete NITRO A0, to make the fixes in patch #8 simpler.
Patch #7 is new in v4 to refactor 2 helpers.
Patch #9 is new in v5 to separate the MSI-X logic to a separate patch after this commit landed that modified the dynamic MSI-X logic:
af449230bd8d ("bnxt_en: Don't keep MSI-X vectors added before FW reserves them")
The patches were tested on 5750X and 5760X chips using production FW version 237.x.x.x.
v5:
Added a new patch #9 to handle MSI-X separately.
Fixed 2 Sashiko reported issues in patch #1 and #8 (fixed in #9)
v4:
Improved patch #1 to fix a possible NULL bp->irq_tbl issue reported by Sashiko.
Added a new patch #7 to fix the ring trimming issue in patch #8 reported by Sashiko.
https://lore.kernel.org/netdev/[email protected]/
v3:
Split from the original -net patchset (patchs 1 to 6) Updated to address some more Sashiko comments. Added the new patch #6 to remove NITRO A0.
https://lore.kernel.org/netdev/[email protected]/
v2:
Updated to address some Sashiko comments.
https://lore.kernel.org/netdev/[email protected]/
v1:
https://lore.kernel.org/netdev/[email protected]/
Michael Chan (9):
bnxt_en: Clear bp->total_irqs when disabling IRQs
bnxt_en: Fix bnxt_reinit_features() when irq_re_init is true
bnxt_en: Refactor RSS table check logic
bnxt_en: Refactor IRQs required logic
bnxt_en: Reinit IRQ when configuring LRO/GRO/HDS
bnxt_en: Remove support for the old NITRO A0 chip
bnxt_en: Refactor bnxt_num_cp_to_tx()/bnxt_num_tx_to_cp() helpers
bnxt_en: Fix ring accounting/validation when rings are constrained by
FW
bnxt_en: Fix ring accounting/validation when IRQs are constrained
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 522 +++++++++--------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 14 +- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 22 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 7 +- 4 files changed, 274 insertions(+), 291 deletions(-)
Signature · 1 line
2.51.0