bnxt_en: avoid link reset if speed is not changed
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 27 Sep 2020 17:42:16 +0000 (13:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2020 20:35:46 +0000 (13:35 -0700)
commit745b5c653913829ede6d4466f36b35426d6e1823
tree14a42d7877a2bde20e6ec00f93aa7c87d9a5c0ba
parent3128e811b134128aadcf8582dded81b70980f23a
bnxt_en: avoid link reset if speed is not changed

PORT_PHY_CONFIG is always sent with REQ_FLAGS_RESET_PHY set. This flag
must be set in order for the firmware to institute the requested PHY
change immediately, but it results in a link flap. This is unnecessary
and results in an improved user experience if the PHY reconfiguration
is avoided when the user requested speed does not constitute a change.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c