Skip to content

Commit dac0490

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only.
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]>
1 parent cc559c1 commit dac0490

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
@@ -6462,6 +6462,9 @@ static int bnxt_update_link(struct bnxt *bp, bool chng_link_state)
64626462
}
64636463
mutex_unlock(&bp->hwrm_cmd_lock);
64646464

6465+
if (!BNXT_SINGLE_PF(bp))
6466+
return 0;
6467+
64656468
diff = link_info->support_auto_speeds ^ link_info->advertising;
64666469
if ((link_info->support_auto_speeds | diff) !=
64676470
link_info->support_auto_speeds) {

0 commit comments

Comments
 (0)