nfp: implement PCI driver shutdown callback
authorDirk van der Merwe <dirk.vandermerwe@netronome.com>
Thu, 25 Apr 2019 03:18:02 +0000 (20:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 16:08:13 +0000 (12:08 -0400)
commit790d23e7c577ed2ef7c49f246ad8d53691fb1b20
treec89930fb646ab1387ae399fbbcc04fb4e160505f
parent16848c8a728e74c1b6a0c994f34f0f5453f257a0
nfp: implement PCI driver shutdown callback

Device may be shutdown without the hardware being reinitialized, in
which case we want to ensure we cleanup properly.

This is especially important for kexec with traffic flowing.

The shutdown procedures resembles the remove procedures, so we can reuse
those common tasks.

Signed-off-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfp_netvf_main.c