qede: Update link status only when interface is ready.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Mon, 26 Nov 2018 10:26:59 +0000 (02:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 00:17:20 +0000 (16:17 -0800)
commitf04e48dbfaf732e0a9f926057e8f6fd44d45d1bb
tree837667974c495795453aaee5f4fbc584419523ad
parent149d3775f108c9b97f3309891f010b65e912c7b7
qede: Update link status only when interface is ready.

In the case of internal reload (e.g., mtu change), there could be a race
between link-up notification from mfw and the driver unload processing. In
such case kernel assumes the link is up and starts using the queues which
leads to the server crash.

Send link notification to the kernel only when driver has already requested
MFW for the link.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_main.c