bnx2x: Link-flap avoidance in switch dependent mode
authorDmitry Kravkov <dmitry@broadcom.com>
Wed, 22 May 2013 21:21:50 +0000 (21:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2013 01:49:30 +0000 (18:49 -0700)
commit178135c11611c02161c5b64aeba341d777f2d64d
treece8312805730d2c30563c3a64fe02ed8cfaa9752
parent3521b419cc21339537266cb1ab9934b041ca08e9
bnx2x: Link-flap avoidance in switch dependent mode

As part of the previous unload flow, probed devices will reset the chip
in order to clean the remains of the UNDI driver.
As a result, it's possible for the FW to toggle the link.

This toggling can prove fatal, as long periods without link can cause the
filesystem mount to fail as the storage protocol timeouts. This has been
observed against particular switches with long link re-establishment time.

This patch informs FW during the reset period that the link should not
be toggled - the FW will keep it alive until some interface will load and claim
the link as its own.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c