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.

bnxt_en: Remove unnecessary VF check in bnxt_hwrm_nvm_req()

The driver registers the supported configuration parameters with the
devlink stack only on the PF using devlink_params_register().
Hence there is no need for a VF check inside bnxt_hwrm_nvm_req().

Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250917040839.1924698-3-michael.chan@broadcom.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Kalesh AP and committed by
Paolo Abeni
e23c40d4 3b46a9e4

-7
-7
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
··· 1074 1074 static int bnxt_hwrm_nvm_req(struct bnxt *bp, u32 param_id, void *msg, 1075 1075 union devlink_param_value *val) 1076 1076 { 1077 - struct hwrm_nvm_get_variable_input *req = msg; 1078 1077 const struct bnxt_dl_nvm_param *nvm_param; 1079 1078 int i; 1080 - 1081 - /* Get/Set NVM CFG parameter is supported only on PFs */ 1082 - if (BNXT_VF(bp)) { 1083 - hwrm_req_drop(bp, req); 1084 - return -EPERM; 1085 - } 1086 1079 1087 1080 for (i = 0; i < ARRAY_SIZE(nvm_params); i++) { 1088 1081 nvm_param = &nvm_params[i];