Skip to content

Commit d7d0de9

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 <alok.a.tiwari@oracle.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Michael Chan <michael.chan@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Link: https://patch.msgid.link/20250830062331.783783-1-alok.a.tiwari@oracle.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c274b62 commit d7d0de9

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
@@ -4390,7 +4390,7 @@ static void bnxt_alloc_one_rx_ring_netmem(struct bnxt *bp,
43904390
for (i = 0; i < bp->rx_agg_ring_size; i++) {
43914391
if (bnxt_alloc_rx_netmem(bp, rxr, prod, GFP_KERNEL)) {
43924392
netdev_warn(bp->dev, "init'ed rx ring %d with %d/%d pages only\n",
4393-
ring_nr, i, bp->rx_ring_size);
4393+
ring_nr, i, bp->rx_agg_ring_size);
43944394
break;
43954395
}
43964396
prod = NEXT_RX_AGG(prod);

0 commit comments

Comments
 (0)