Skip to content

Commit 7000f4f

Browse files
aloktiwakuba-moo
authored andcommitted
bnxt_en: fix incorrect page count in RX aggr ring log
The warning in bnxt_alloc_one_rx_ring_netmem() reports the number of pages allocated for the RX aggregation ring. However, it mistakenly used bp->rx_ring_size instead of bp->rx_agg_ring_size, leading to confusing or misleading log output. Use the correct bp->rx_agg_ring_size value to fix this. Fixes: c0c050c ("bnxt_en: New Broadcom ethernet driver.") Signed-off-by: Alok Tiwari <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Reviewed-by: Michael Chan <[email protected]> Reviewed-by: Somnath Kotur <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 49c2502 commit 7000f4f

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4397,7 +4397,7 @@ static void bnxt_alloc_one_rx_ring_netmem(struct bnxt *bp,
43974397
for (i = 0; i < bp->rx_agg_ring_size; i++) {
43984398
if (bnxt_alloc_rx_netmem(bp, rxr, prod, GFP_KERNEL)) {
43994399
netdev_warn(bp->dev, "init'ed rx ring %d with %d/%d pages only\n",
4400-
ring_nr, i, bp->rx_ring_size);
4400+
ring_nr, i, bp->rx_agg_ring_size);
44014401
break;
44024402
}
44034403
prod = NEXT_RX_AGG(prod);

0 commit comments

Comments
 (0)