bnge: fix reserving resources from FW
Vikas Gupta
maintainerPATCH 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.
--- 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
@@ -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
Quoted 11 lines · Vikas Gupta
HWRM_FUNC_CFGis used to reserve resources, whereasHWRM_FUNC_QCFGis intended for querying resource information from the firmware. Since__bnge_hwrm_reserve_pf_rings()reserves resources for a specific PF, the command type should beHWRM_FUNC_CFG.Changes in v2:
-Fix commit message.Fixes 627c67f038d2 ("bng_en: Add resource management support")Signed-off-by Vikas Gupta <[email protected]>Reviewed-by Bhargava Chenna Marreddy <[email protected]>
Thanks for the update.
Jakub Kicinski
maintainerQuoted 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.
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_CFGis used to reserve resources, whereasHWRM_FUNC_QCFGis intended for querying resource information from the firmware. Since__bnge_hwrm_reserve_pf_rings()reserves resources for a specific PF, the command type should beHWRM_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