net/sfc/base: add API to inform libefx of hardware removal
authorAndy Moreton <amoreton@solarflare.com>
Mon, 10 Sep 2018 09:33:24 +0000 (10:33 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000 (01:41 +0200)
commitefb15738c7003cf0381888396a94af495cb7f1b0
treedf293f9f4c166ad3fc6ea9cd77213e2f70bc66a9
parent2cfbf251052fc5467945e7bd95269f82e98069f3
net/sfc/base: add API to inform libefx of hardware removal

The efx_nic_hw_unavailable() checks ensure that if the NIC hardware
has failed or has been physically removed then libefx will stop
further attempts to access the hardware.

Add an interface for libefx clients to force unavailability, so the
hardware is treated as dead or removed even if still physically present.

Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_impl.h
drivers/net/sfc/base/ef10_nic.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/efx_impl.h
drivers/net/sfc/base/efx_nic.c