Skip to contentSkip to conversation

bnge: fix reserving resources from FW

PATCH Applied Vikas Gupta 4 participants 4 messages Feb 18 – Feb 19

Subsystems (3)
lore
Share & tools
lore

Vikas Gupta

author maintainer
#0 lore raw

PATCH v2 1/1 bnge: fix reserving resources from FW

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.

Changes in v2:
-Fix commit message.

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 Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Vikas Gupta

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.

Changes in v2:
-Fix commit message.

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

Thanks for the update.

maintainer
#2 lore raw
In reply to Vikas Gupta
Quoted 2 lines · On Wed, 18 Feb 2026 10:57:55 +0530 Vikas Gupta wrote:

Changes in v2:
-Fix commit message.

No need to repost but for the future changelog should go under the --- separator.

I assume you have a lot more code to upstream to this driver, so please follow the community guidelines:
https://docs.kernel.org/maintainer/feature-and-driver-maintainers.html
specifically:

Maintainers must be subscribed and follow the appropriate subsystem-wide mailing list. Either by subscribing to the whole list or using more modern, selective setup like lei.

If you spend 15min every day reading some ML submissions you'd avoid all these silly mistakes.

#3 lore raw
In reply to Vikas Gupta
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Wed, 18 Feb 2026 10:57:55 +0530 you wrote:

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.

Changes in v2:
-Fix commit message.

[...]

Here is the summary with links:
- [net,v2] bnge: fix reserving resources from FW

    https://git.kernel.org/netdev/net/c/604530085b2e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html