summaryrefslogtreecommitdiff
path: root/drivers/net/ixgbe
diff options
context:
space:
mode:
authorQi Zhang <qi.z.zhang@intel.com>2018-10-25 10:48:57 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commitc1ab6874cd1b44d7ad15ce21f77882b256d2740d (patch)
tree713067294480b3891b8934f3929c12cf6afb63d5 /drivers/net/ixgbe
parentc05e4ab74421e5345f2c50ea0593d48e404cae6a (diff)
downloaddpdk-next-eventdev-c1ab6874cd1b44d7ad15ce21f77882b256d2740d.zip
dpdk-next-eventdev-c1ab6874cd1b44d7ad15ce21f77882b256d2740d.tar.gz
dpdk-next-eventdev-c1ab6874cd1b44d7ad15ce21f77882b256d2740d.tar.xz
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 <qi.z.zhang@intel.com>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r--drivers/net/ixgbe/ixgbe_ethdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 269595b..5a2c351 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);