mbox series

[net,0/2] bnxt_en: Fix MAX_SKB_FRAGS > 30

Message ID 20250321211639.3812992-1-michael.chan@broadcom.com (mailing list archive)
Headers show
Series bnxt_en: Fix MAX_SKB_FRAGS > 30 | expand

Message

Michael Chan March 21, 2025, 9:16 p.m. UTC
The driver was written with the assumption that MAX_SKB_FRAGS could
not exceed what the NIC can support.  About 2 years ago,
CONFIG_MAX_SKB_FRAGS was added.  The value can exceed what the NIC
can support and it may cause TX timeout.  These 2 patches will fix
the issue.

Michael Chan (2):
  bnxt_en: Mask the bd_cnt field in the TX BD properly
  bnxt_en: Linearize TX SKB if the fragments exceed the max

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 15 +++++++++++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  6 ++++++
 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c |  3 +--
 3 files changed, 20 insertions(+), 4 deletions(-)