net/sfc: ensure that device is closed on removal
authorAndrew Rybchenko <arybchenko@solarflare.com>
Fri, 21 Jun 2019 09:40:40 +0000 (10:40 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commit93f993cbbba21efddc96d36abc4c7329e757ea74
tree077a023d05efcd2fecd442b5ef641e328a9f03c6
parentca5ba1b6972f381d410f9e53b650ba179e776225
net/sfc: ensure that device is closed on removal

PCI device may be unplugged when ethdev is not closed yet.

Fixes: aaa3f5f0f79d ("net/sfc: add configure and close stubs")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/net/sfc/sfc_ethdev.c