cxgb3: fix link flap
authorDivy Le Ray <divy@chelsio.com>
Sat, 13 Feb 2010 09:44:35 +0000 (09:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 05:49:48 +0000 (21:49 -0800)
commite9449d85c67127d6f9d01aad8963d567ab02cb96
treeb797e770328569d1cb5ed39bc70530da5741f305
parent38a8fc0fcf86f131f8bddf3787f9dfa7325bd981
cxgb3: fix link flap

The driver is expected to report that the link is up
when the phy Rx signal is established and the mac
has not detected a link fault.
The code is however broken, the driver does not check the link fault
status when the phy link status changes.
The link fault status being checked within a short period of time,
it leads to link up/link down events.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/t3_hw.c