Skip to content

Commit b9355ad

Browse files
Michael Chankuba-moo
authored andcommitted
bnxt_en: Check RSS contexts in bnxt_need_reserve_rings()
bnxt_need_reserve_rings() checks all resources except HW RSS contexts to determine if a new reservation is required. For completeness, add the check for HW RSS contexts. This makes the code more complete after the recent commit to increase the number of RSS contexts for a larger RSS indirection table: Fixes: 51b9d3f ("bnxt_en: Use a larger RSS indirection table on P5_PLUS chips") Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260207235118.1987301-3-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5a2f3aa commit b9355ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/net/ethernet/broadcom/bnxt

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7961,6 +7961,7 @@ static void bnxt_get_total_resources(struct bnxt *bp, struct bnxt_hw_rings *hwr)
79617961
hwr->rx = bp->rx_nr_rings;
79627962
hwr->grp = hwr->rx;
79637963
hwr->vnic = bnxt_get_total_vnics(bp, hwr->rx);
7964+
hwr->rss_ctx = bnxt_get_total_rss_ctxs(bp, hwr);
79647965
if (bp->flags & BNXT_FLAG_AGG_RINGS)
79657966
hwr->rx <<= 1;
79667967
hwr->stat = bnxt_get_func_stat_ctxs(bp);
@@ -7990,6 +7991,7 @@ static bool bnxt_need_reserve_rings(struct bnxt *bp)
79907991
if (hw_resc->resv_rx_rings != hwr.rx ||
79917992
hw_resc->resv_vnics != hwr.vnic ||
79927993
hw_resc->resv_stat_ctxs != hwr.stat ||
7994+
hw_resc->resv_rsscos_ctxs != hwr.rss_ctx ||
79937995
(hw_resc->resv_hw_ring_grps != hwr.grp &&
79947996
!(bp->flags & BNXT_FLAG_CHIP_P5_PLUS)))
79957997
return true;

0 commit comments

Comments
 (0)