bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 8 May 2018 07:18:39 +0000 (03:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:36 +0000 (07:50 +0200)
commit112f47373e364dd508cd9515f626b3fc83fddb10
treef718e62a82bfe0ad21a7541a7e8421c8f6abab95
parentc9b5d1519c2400281b2c7dd121100725a8d6c11f
bnxt_en: Check unsupported speeds in bnxt_update_link() on PF only.

[ Upstream commit dac0490718bd17df5e3995ffca14255e5f9ed22d ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c