Skip to contentSkip to conversation

bnge: Fix typo

PATCH In review Vikas Gupta 3 participants 4 messages Feb 16 – Feb 17

Subsystems (3)
lore
Share & tools
lore

Vikas Gupta

author maintainer
#0 lore raw

PATCH 1/1 bnge: Fix typo

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

Fixes 627c67f038d2 ("bng_en: Add resource management support")
---
 drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c +1 -1
index 84c90a957719..91a4ef9e3150 100644
@@ -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);
Signature · 1 line
2.47.1
reviewer
#1 lore raw
Quoted 6 lines · Vikas Gupta

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

Fixes 627c67f038d2 ("bng_en: Add resource management support")

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.

...

author maintainer
#2 lore raw

Hi Simon,

Quoted 9 lines · Simon Horman
Quoted 6 lines · Vikas Gupta

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

Fixes 627c67f038d2 ("bng_en: Add resource management support")
Quoted 6 lines

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

Quoted 2 lines

...

maintainer
#3 lore raw
Quoted 14 lines · On Tue, 17 Feb 2026 23:13:47 +0530 Vikas Gupta wrote:
Quoted 4 lines · Simon Horman
Quoted 3 lines · Vikas Gupta

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

Quoted 8 lines
Quoted 3 lines
Fixes 627c67f038d2 ("bng_en: Add resource management support")

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.

Quoted 7 lines

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 :/