From: Andrew Rybchenko Date: Fri, 21 Jun 2019 09:40:40 +0000 (+0100) Subject: net/sfc: ensure that device is closed on removal X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=93f993cbbba21efddc96d36abc4c7329e757ea74;p=dpdk.git 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 Reviewed-by: Ivan Malov --- diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index be185d5e93..583f31b8cc 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -2196,6 +2196,8 @@ sfc_eth_dev_uninit(struct rte_eth_dev *dev) return 0; } + sfc_dev_close(dev); + sa = sfc_adapter_by_eth_dev(dev); sfc_log_init(sa, "entry");