Skip to content

Commit 11c3ec7

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Need to include RDMA rings in bnxt_check_rings().
With recent changes to reserve both L2 and RDMA rings, we need to include the RDMA rings in bnxt_check_rings(). Otherwise we will under-estimate the rings we need during ethtool -L and may lead to failure. Fixes: fbcfc8e ("bnxt_en: Reserve completion rings and MSIX for bnxt_re RDMA driver.") Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9d96465 commit 11c3ec7

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+2
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7686,6 +7686,8 @@ int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,
76867686
if (bp->flags & BNXT_FLAG_AGG_RINGS)
76877687
rx_rings <<= 1;
76887688
cp = sh ? max_t(int, tx_rings_needed, rx) : tx_rings_needed + rx;
7689+
if (bp->flags & BNXT_FLAG_NEW_RM)
7690+
cp += bnxt_get_ulp_msix_num(bp);
76897691
return bnxt_hwrm_check_rings(bp, tx_rings_needed, rx_rings, rx, cp,
76907692
vnics);
76917693
}

0 commit comments

Comments
 (0)