* [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log
@ 2025-08-28 19:48 Alok Tiwari
2025-08-28 21:38 ` Jacob Keller
2025-08-29 0:30 ` Michael Chan
0 siblings, 2 replies; 4+ messages in thread
From: Alok Tiwari @ 2025-08-28 19:48 UTC (permalink / raw)
To: michael.chan, pavan.chebbi, andrew+netdev, davem, edumazet, kuba,
pabeni, horms, netdev
Cc: alok.a.tiwari
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.
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 207a8bb36ae5..0d30abadf06c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -4397,7 +4397,7 @@ static void bnxt_alloc_one_rx_ring_netmem(struct bnxt *bp,
for (i = 0; i < bp->rx_agg_ring_size; i++) {
if (bnxt_alloc_rx_netmem(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);
--
2.50.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log
2025-08-28 19:48 [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log Alok Tiwari
@ 2025-08-28 21:38 ` Jacob Keller
2025-08-29 0:30 ` Michael Chan
1 sibling, 0 replies; 4+ messages in thread
From: Jacob Keller @ 2025-08-28 21:38 UTC (permalink / raw)
To: Alok Tiwari, michael.chan, pavan.chebbi, andrew+netdev, davem,
edumazet, kuba, pabeni, horms, netdev
[-- Attachment #1.1: Type: text/plain, Size: 1256 bytes --]
On 8/28/2025 12:48 PM, Alok Tiwari wrote:
> 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.
>
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
> ---
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
> drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
> index 207a8bb36ae5..0d30abadf06c 100644
> --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
> +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
> @@ -4397,7 +4397,7 @@ static void bnxt_alloc_one_rx_ring_netmem(struct bnxt *bp,
> for (i = 0; i < bp->rx_agg_ring_size; i++) {
> if (bnxt_alloc_rx_netmem(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);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log
2025-08-28 19:48 [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log Alok Tiwari
2025-08-28 21:38 ` Jacob Keller
@ 2025-08-29 0:30 ` Michael Chan
2025-08-29 2:54 ` Somnath Kotur
1 sibling, 1 reply; 4+ messages in thread
From: Michael Chan @ 2025-08-29 0:30 UTC (permalink / raw)
To: Alok Tiwari
Cc: pavan.chebbi, andrew+netdev, davem, edumazet, kuba, pabeni, horms,
netdev
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
On Thu, Aug 28, 2025 at 12:49 PM Alok Tiwari <alok.a.tiwari@oracle.com> wrote:
>
> 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.
>
> Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Please add the Fixes tag since this is a bug fix. Thanks.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4196 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log
2025-08-29 0:30 ` Michael Chan
@ 2025-08-29 2:54 ` Somnath Kotur
0 siblings, 0 replies; 4+ messages in thread
From: Somnath Kotur @ 2025-08-29 2:54 UTC (permalink / raw)
To: Michael Chan
Cc: Alok Tiwari, pavan.chebbi, andrew+netdev, davem, edumazet, kuba,
pabeni, horms, netdev
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
On Fri, Aug 29, 2025 at 6:01 AM Michael Chan <michael.chan@broadcom.com> wrote:
>
> On Thu, Aug 28, 2025 at 12:49 PM Alok Tiwari <alok.a.tiwari@oracle.com> wrote:
> >
> > 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.
> >
> > Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
>
> Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
>
> Please add the Fixes tag since this is a bug fix. Thanks.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4199 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-29 2:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 19:48 [PATCH net-next] bnxt_en: fix incorrect page count in RX aggr ring log Alok Tiwari
2025-08-28 21:38 ` Jacob Keller
2025-08-29 0:30 ` Michael Chan
2025-08-29 2:54 ` Somnath Kotur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).