Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260218052755.4097468-1-vikas.gupta@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Vikas Gupta and committed by
Jakub Kicinski
60453008 e977fcb3

+1 -1
+1 -1
drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c
··· 442 442 struct hwrm_func_cfg_input *req; 443 443 u32 enables = 0; 444 444 445 - if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_QCFG)) 445 + if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_CFG)) 446 446 return NULL; 447 447 448 448 req->fid = cpu_to_le16(0xffff);