[04/10] net/bnxt: fix AGG ID computation

Message ID 20240221212044.27209-5-ajit.khaparde@broadcom.com (mailing list archive)
State Superseded, archived
Delegated to: Ajit Khaparde
Series patchset for bnxt |


Context Check Description
ci/checkpatch success coding style OK

Commit Message

Ajit Khaparde Feb. 21, 2024, 9:20 p.m. UTC
  Fix the computation of AGG ID for P5 and P7 device families.
The AGG ID for TPA completions for P7 device family is being
incorrectly obtained. Fix the code to handle it.

Fixes: 3b56c3ffc182 ("net/bnxt: refactor code to support P7 devices")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
 drivers/net/bnxt/bnxt_rxr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/net/bnxt/bnxt_rxr.h b/drivers/net/bnxt/bnxt_rxr.h
index d36cbded1d..5e5496964f 100644
--- a/drivers/net/bnxt/bnxt_rxr.h
+++ b/drivers/net/bnxt/bnxt_rxr.h
@@ -17,7 +17,7 @@ 
 static inline uint16_t bnxt_tpa_start_agg_id(struct bnxt *bp,
 					     struct rx_tpa_start_cmpl *cmp)
-	if (BNXT_CHIP_P5(bp))
+	if (BNXT_CHIP_P5_P7(bp))
 		return BNXT_TPA_START_AGG_ID_TH(cmp);
 		return BNXT_TPA_START_AGG_ID_PRE_TH(cmp);