Skip to content

Commit 112f473

Browse files
Michael Changregkh
authored andcommitted
bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only.
[ Upstream commit dac0490 ] Only non-NPAR PFs need to actively check and manage unsupported link speeds. NPAR functions and VFs do not control the link speed and should skip the unsupported speed detection logic, to avoid warning messages from firmware rejecting the unsupported firmware calls. Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c9b5d15 commit 112f473

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5927,6 +5927,9 @@ static int bnxt_update_link(struct bnxt *bp, bool chng_link_state)
59275927
}
59285928
mutex_unlock(&bp->hwrm_cmd_lock);
59295929

5930+
if (!BNXT_SINGLE_PF(bp))
5931+
return 0;
5932+
59305933
diff = link_info->support_auto_speeds ^ link_info->advertising;
59315934
if ((link_info->support_auto_speeds | diff) !=
59325935
link_info->support_auto_speeds) {

0 commit comments

Comments
 (0)