diff options
author | Michael Chan <michael.chan@broadcom.com> | 2017-02-13 01:18:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-13 04:18:49 +0100 |
commit | 33dac24abbd5a77eefca18fb7ebbd01a3cf1b343 (patch) | |
tree | 14ba60af62784512b09923cc271a74026d113a91 /drivers/net/ethernet | |
parent | bnxt_en: Add hardware NTUPLE filter for encapsulated packets. (diff) | |
download | linux-33dac24abbd5a77eefca18fb7ebbd01a3cf1b343.tar.xz linux-33dac24abbd5a77eefca18fb7ebbd01a3cf1b343.zip |
bnxt_en: Do not setup PHY unless driving a single PF.
If it is a VF or an NPAR function, the firmware call to setup the PHY
will fail. Adding this check will prevent unnecessary firmware calls
to setup the PHY unless calling from the PF. This will also eliminate
many unnecessary warning messages when the call from a VF or NPAR fails.
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.c | 3 |
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 f3d829f71f77..afd119097344 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -5853,6 +5853,9 @@ static int bnxt_update_phy_setting(struct bnxt *bp) rc); return rc; } + if (!BNXT_SINGLE_PF(bp)) + return 0; + if ((link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL) && (link_info->auto_pause_setting & BNXT_LINK_PAUSE_BOTH) != link_info->req_flow_ctrl) |