[04/10] net/bnxt: fix AGG ID computation
Checks
Commit Message
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(-)
@@ -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);
else
return BNXT_TPA_START_AGG_ID_PRE_TH(cmp);