Skip to content

Commit 0ae0a77

Browse files
Vasundhara Volamkuba-moo
authored andcommitted
bnxt_en: Avoid unnecessary NVM_GET_DEV_INFO cmd error log on VFs.
VFs do not have access permissions to issue NVM_GET_DEV_INFO firmware command. Fixes: 4933f67 ("bnxt_en: Add bnxt_hwrm_nvm_get_dev_info() to query NVM info.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fa97f30 commit 0ae0a77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,9 @@ int bnxt_hwrm_nvm_get_dev_info(struct bnxt *bp,
20792079
struct hwrm_nvm_get_dev_info_input req = {0};
20802080
int rc;
20812081

2082+
if (BNXT_VF(bp))
2083+
return -EOPNOTSUPP;
2084+
20822085
bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_NVM_GET_DEV_INFO, -1, -1);
20832086
mutex_lock(&bp->hwrm_cmd_lock);
20842087
rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);

0 commit comments

Comments
 (0)