summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorMichael Chan2018-05-08 09:18:39 +0200
committerDavid S. Miller2018-05-08 16:14:21 +0200
commitdac0490718bd17df5e3995ffca14255e5f9ed22d (patch)
tree2ec3759f08732c8dc167b8e210afcb59c7fda0ec /drivers/net/ethernet
parentbnxt_en: Fix firmware message delay loop regression. (diff)
downloadkernel-qcow2-linux-dac0490718bd17df5e3995ffca14255e5f9ed22d.tar.gz
kernel-qcow2-linux-dac0490718bd17df5e3995ffca14255e5f9ed22d.tar.xz
kernel-qcow2-linux-dac0490718bd17df5e3995ffca14255e5f9ed22d.zip
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 <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index 168342ac35c5..cd3ab788936f 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -6462,6 +6462,9 @@ static int bnxt_update_link(struct bnxt *bp, bool chng_link_state)
}
mutex_unlock(&bp->hwrm_cmd_lock);
+ if (!BNXT_SINGLE_PF(bp))
+ return 0;
+
diff = link_info->support_auto_speeds ^ link_info->advertising;
if ((link_info->support_auto_speeds | diff) !=
link_info->support_auto_speeds) {