bnxt_en: fix incorrect page count in RX aggr ring log
[ Upstream commit7000f4fa9b
] 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:c0c050c58d
("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>
This commit is contained in:
parent
29b58eedbc
commit
dd70cd6a44
|
@ -4207,7 +4207,7 @@ static void bnxt_alloc_one_rx_ring_page(struct bnxt *bp,
|
|||
for (i = 0; i < bp->rx_agg_ring_size; i++) {
|
||||
if (bnxt_alloc_rx_page(bp, rxr, prod, GFP_KERNEL)) {
|
||||
netdev_warn(bp->dev, "init'ed rx ring %d with %d/%d pages only\n",
|
||||
ring_nr, i, bp->rx_ring_size);
|
||||
ring_nr, i, bp->rx_agg_ring_size);
|
||||
break;
|
||||
}
|
||||
prod = NEXT_RX_AGG(prod);
|
||||
|
|
Loading…
Reference in New Issue