Skip to content

Commit dd70cd6

Browse files
aloktiwagregkh
authored andcommitted
bnxt_en: fix incorrect page count in RX aggr ring log
[ Upstream commit 7000f4f ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 29b58ee commit dd70cd6

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
@@ -4207,7 +4207,7 @@ static void bnxt_alloc_one_rx_ring_page(struct bnxt *bp,
42074207
for (i = 0; i < bp->rx_agg_ring_size; i++) {
42084208
if (bnxt_alloc_rx_page(bp, rxr, prod, GFP_KERNEL)) {
42094209
netdev_warn(bp->dev, "init'ed rx ring %d with %d/%d pages only\n",
4210-
ring_nr, i, bp->rx_ring_size);
4210+
ring_nr, i, bp->rx_agg_ring_size);
42114211
break;
42124212
}
42134213
prod = NEXT_RX_AGG(prod);

0 commit comments

Comments
 (0)