public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] bnge: Fix typo
@ 2026-02-16 14:02 Vikas Gupta
  2026-02-17 15:56 ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Vikas Gupta @ 2026-02-16 14:02 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, andrew+netdev, horms
  Cc: netdev, linux-kernel, Vikas Gupta, Bhargava Chenna Marreddy

Fix the HWRM command type and use the appropriate command to reserve
the resources.

Fixes: 627c67f038d2 ("bng_en: Add resource management support")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>
---
 drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c b/drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c
index 84c90a957719..91a4ef9e3150 100644
--- a/drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c
+++ b/drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c
@@ -442,7 +442,7 @@ __bnge_hwrm_reserve_pf_rings(struct bnge_dev *bd, struct bnge_hw_rings *hwr)
 	struct hwrm_func_cfg_input *req;
 	u32 enables = 0;
 
-	if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_QCFG))
+	if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_CFG))
 		return NULL;
 
 	req->fid = cpu_to_le16(0xffff);
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net] bnge: Fix typo
  2026-02-16 14:02 [PATCH net] bnge: Fix typo Vikas Gupta
@ 2026-02-17 15:56 ` Simon Horman
  2026-02-17 17:43   ` Vikas Gupta
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2026-02-17 15:56 UTC (permalink / raw)
  To: Vikas Gupta
  Cc: davem, edumazet, kuba, pabeni, andrew+netdev, netdev,
	linux-kernel, Bhargava Chenna Marreddy

On Mon, Feb 16, 2026 at 07:32:35PM +0530, Vikas Gupta wrote:
> Fix the HWRM command type and use the appropriate command to reserve
> the resources.
> 
> Fixes: 627c67f038d2 ("bng_en: Add resource management support")
> Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
> Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>

Hi,

I think this patch could do with a little more explanation.
It's not clear to me, at least: what the difference is between
HWRM_FUNC_QCFG and HWRM_FUNC_CFG; and why only one of
the instances added by the cited patch needs updating.

...

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] bnge: Fix typo
  2026-02-17 15:56 ` Simon Horman
@ 2026-02-17 17:43   ` Vikas Gupta
  2026-02-17 22:40     ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: Vikas Gupta @ 2026-02-17 17:43 UTC (permalink / raw)
  To: Simon Horman
  Cc: davem, edumazet, kuba, pabeni, andrew+netdev, netdev,
	linux-kernel, Bhargava Chenna Marreddy

[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]

Hi Simon,

On Tue, Feb 17, 2026 at 9:26 PM Simon Horman <horms@kernel.org> wrote:
>
> On Mon, Feb 16, 2026 at 07:32:35PM +0530, Vikas Gupta wrote:
> > Fix the HWRM command type and use the appropriate command to reserve
> > the resources.
> >
> > Fixes: 627c67f038d2 ("bng_en: Add resource management support")
> > Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
> > Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>
>
> Hi,
>
> I think this patch could do with a little more explanation.
> It's not clear to me, at least: what the difference is between
> HWRM_FUNC_QCFG and HWRM_FUNC_CFG; and why only one of
> the instances added by the cited patch needs updating.

HWRM_FUNC_CFG is used to reserve resources, whereas HWRM_FUNC_QCFG is intended
for querying resource information from the firmware.
Since __bnge_hwrm_reserve_pf_rings() reserves resources for a specific
PF, the command type
should be HWRM_FUNC_CFG.
However, HWRM_FUNC_QCFG was mistakenly used instead.
Does it clarify?

Thanks,
Vikas

>
> ...

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5465 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] bnge: Fix typo
  2026-02-17 17:43   ` Vikas Gupta
@ 2026-02-17 22:40     ` Jakub Kicinski
  0 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2026-02-17 22:40 UTC (permalink / raw)
  To: Vikas Gupta
  Cc: Simon Horman, davem, edumazet, pabeni, andrew+netdev, netdev,
	linux-kernel, Bhargava Chenna Marreddy

On Tue, 17 Feb 2026 23:13:47 +0530 Vikas Gupta wrote:
> On Tue, Feb 17, 2026 at 9:26 PM Simon Horman <horms@kernel.org> wrote:
> > On Mon, Feb 16, 2026 at 07:32:35PM +0530, Vikas Gupta wrote:  
> > > Fix the HWRM command type and use the appropriate command to reserve
> > > the resources.
> > >
> > > Fixes: 627c67f038d2 ("bng_en: Add resource management support")
> > > Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
> > > Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com>  
> >
> > I think this patch could do with a little more explanation.
> > It's not clear to me, at least: what the difference is between
> > HWRM_FUNC_QCFG and HWRM_FUNC_CFG; and why only one of
> > the instances added by the cited patch needs updating.  
> 
> HWRM_FUNC_CFG is used to reserve resources, whereas HWRM_FUNC_QCFG is intended
> for querying resource information from the firmware.
> Since __bnge_hwrm_reserve_pf_rings() reserves resources for a specific
> PF, the command type
> should be HWRM_FUNC_CFG.
> However, HWRM_FUNC_QCFG was mistakenly used instead.
> Does it clarify?

Yes, please add this to the commit message.

Also please improve the subject. Something like (just a guess):

	bnge: fix reserving resources from FW

"fix typo" sounds like you're fixing spelling in a comment, it's not at
all informative :/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-17 22:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-16 14:02 [PATCH net] bnge: Fix typo Vikas Gupta
2026-02-17 15:56 ` Simon Horman
2026-02-17 17:43   ` Vikas Gupta
2026-02-17 22:40     ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox