From: Qi Zhang Date: Thu, 25 Oct 2018 02:48:57 +0000 (+0800) Subject: net/ixgbe: enable detach from secondary X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c1ab6874cd1b44d7ad15ce21f77882b256d2740d;p=dpdk.git net/ixgbe: enable detach from secondary Since we have enabled the hotplug mechanism for multi-process, it's not necessary to return -EPERM when try detaches a device from a secondary process. Signed-off-by: Qi Zhang --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 269595b730..5a2c351435 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -1303,7 +1303,7 @@ eth_ixgbe_dev_uninit(struct rte_eth_dev *eth_dev) PMD_INIT_FUNC_TRACE(); if (rte_eal_process_type() != RTE_PROC_PRIMARY) - return -EPERM; + return 0; hw = IXGBE_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private); @@ -1702,7 +1702,7 @@ eth_ixgbevf_dev_uninit(struct rte_eth_dev *eth_dev) PMD_INIT_FUNC_TRACE(); if (rte_eal_process_type() != RTE_PROC_PRIMARY) - return -EPERM; + return 0; hw = IXGBE_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);