be2net: Report a "link down" to the stack when a fatal error or fw reset happens.
authorVenkata Duvvuru <VenkatKumar.Duvvuru@Emulex.Com>
Wed, 13 May 2015 07:30:13 +0000 (13:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2015 16:21:41 +0000 (12:21 -0400)
commit954f6825eeeecd0d83af9e11a0a54c80d7e0bfad
treefa48a3c1a02cf9582ada866f10d3405973555389
parent29e9122b3ab2aa7160e54c2bbea242b99588325c
be2net: Report a "link down" to the stack when a fatal error or fw reset happens.

When an error (related to HW or FW) is detected on a function, the driver
must pro-actively report a "link down" to the stack so that a possible
failover can be initiated. This is being done currently only for some
HW errors. This patch reports a "link down" even for fatal FW errors and
EEH errors.

Signed-off-by: Venkat Duvvuru <VenkatKumar.Duvvuru@Emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c