Skip to content

Commit 6045300

Browse files
vikasbrcmkuba-moo
authored andcommitted
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: 627c67f ("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>
1 parent e977fcb commit 6045300

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ __bnge_hwrm_reserve_pf_rings(struct bnge_dev *bd, struct bnge_hw_rings *hwr)
442442
struct hwrm_func_cfg_input *req;
443443
u32 enables = 0;
444444

445-
if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_QCFG))
445+
if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_CFG))
446446
return NULL;
447447

448448
req->fid = cpu_to_le16(0xffff);

0 commit comments

Comments
 (0)