bnxt_en: TX path improvements
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
- v2 Latest13 patches 0 repliesApplied 13/13
- v113 patches 1 replySuperseded
Patches in v2 All 13 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | bnxt_en: Put the TX producer information in the TX BD opaque fielddrivers/ drivers/ drivers/ | +11 | 0 replies | Applied |
| 2/13 | bnxt_en: Add completion ring pointer in TX and RX ring structuresdrivers/ drivers/ drivers/ | +40 | 0 replies | Applied |
| 3/13 | bnxt_en: Restructure cp_ring_arr in struct bnxt_cp_ring_infodrivers/ drivers/ drivers/ | +66 | 0 replies | Applied |
| 4/13 | bnxt_en: Add completion ring pointer in TX and RX ring structuresdrivers/ drivers/ drivers/ | +19 | 0 replies | Applied |
| 5/13 | bnxt_en: Remove BNXT_RX_HDL and BNXT_TX_HDLdrivers/ drivers/ | +44 | 0 replies | Applied |
| 6/13 | bnxt_en: Refactor bnxt_tx_int()drivers/ | +12 | 0 replies | Applied |
| 7/13 | bnxt_en: New encoding for the TX opaque fielddrivers/ drivers/ drivers/ | +11 | 0 replies | Applied |
| 8/13 | bnxt_en: Refactor bnxt_hwrm_set_coal()drivers/ | +26 | 0 replies | Applied |
| 9/13 | bnxt_en: Support up to 8 TX rings per MSIXdrivers/ drivers/ drivers/ | +55 | 0 replies | Applied |
| 10/13 | bnxt_en: Add helper to get the number of CP rings required for TX ringsdrivers/ drivers/ drivers/ +1 more | +82 | 0 replies | Applied |
| 11/13 | bnxt_en: Add macros related to TC and TX ringsdrivers/ | +11 | 0 replies | Applied |
| 12/13 | bnxt_en: Use existing MSIX vectors for all mqprio TX ringsdrivers/ drivers/ | +43 | 0 replies | Applied |
| 13/13 | bnxt_en: Optimize xmit_more TX pathdrivers/ | +10 | 0 replies | Applied |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Andy Gospodarek | Somnath Kotur | Pavan Chebbi |
|---|---|---|---|
| 1/13 | R-b | ||
| 2/13 | R-b | ||
| 3/13 | R-b | ||
| 4/13 | R-b | ||
| 5/13 | R-b | ||
| 6/13 | R-b | ||
| 7/13 | R-b | ||
| 8/13 | R-b | ||
| 9/13 | R-b | ||
| 10/13 | R-b | ||
| 11/13 | R-b | ||
| 12/13 | R-b | ||
| 13/13 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next v2 00/13] bnxt_en: TX path improvements
All patches in this patchset are related to improving the TX path. There are 2 areas of improvements:
1. The TX interrupt logic currently counts the number of TX completions to determine the number of TX SKBs to free. We now change it so that the TX completion will now contain the hardware consumer index information. The driver will keep track of the latest hardware consumer index from the last TX completion and clean up all TX SKBs up to that index. This scheme aligns better with future chips and allows xmit_more code path to be more optimized.
2. The current driver logic requires an additional MSIX for each additional MQPRIO TX ring. This scheme uses too many MSIX vectors if the user enables a large number of MQPRIO TCs. We now use a new scheme that will use the same MSIX for all the MQPRIO TX rings for each ethtool channel. Each ethtool TX channel can have up to 8 MQPRIO TX rings and now they all will share the same MSIX.
v2: Rebased
v1 posted on Oct 27 2023 right before the close of net-next:
https://lore.kernel.org/netdev/[email protected]/
Michael Chan (13):
bnxt_en: Put the TX producer information in the TX BD opaque field
bnxt_en: Add completion ring pointer in TX and RX ring structures
bnxt_en: Restructure cp_ring_arr in struct bnxt_cp_ring_info
bnxt_en: Add completion ring pointer in TX and RX ring structures
bnxt_en: Remove BNXT_RX_HDL and BNXT_TX_HDL
bnxt_en: Refactor bnxt_tx_int()
bnxt_en: New encoding for the TX opaque field
bnxt_en: Refactor bnxt_hwrm_set_coal()
bnxt_en: Support up to 8 TX rings per MSIX
bnxt_en: Add helper to get the number of CP rings required for TX
rings
bnxt_en: Add macros related to TC and TX rings
bnxt_en: Use existing MSIX vectors for all mqprio TX rings
bnxt_en: Optimize xmit_more TX path
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 513 +++++++++++------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 59 +- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 11 +- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 23 +- 4 files changed, 385 insertions(+), 221 deletions(-)
Signature · 1 line
2.30.1