From 93f993cbbba21efddc96d36abc4c7329e757ea74 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Fri, 21 Jun 2019 10:40:40 +0100 Subject: [PATCH] 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 --- drivers/net/sfc/sfc_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.20.1