qed: Prevent link getting down in case of autoneg-off.
authorRahul Verma <Rahul.Verma@cavium.com>
Tue, 16 Oct 2018 10:59:22 +0000 (03:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 17:04:28 +0000 (10:04 -0700)
commit1c90eabcbdfb513c20460a9f3254479af48ee30b
tree8160f9cad6d8922c47d5849a609b439e4d187c9f
parent1e6e2ded0f3c86c5ccee6ae9d78d01c7017f3a2e
qed: Prevent link getting down in case of autoneg-off.

Newly added link modes are required to be added
during setting link modes. If the new link mode
is not available during qed_set_link, it may cause
link getting down due to empty supported capability,
being passed to MFW, after setting autoneg off/on
with current/supported speed.

Signed-off-by: Rahul Verma <Rahul.Verma@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c