Skip to contentSkip to conversation

net/ixgbe: enable detach from secondary

PATCH Applied Qi Zhang 1 participant 2 messages Oct 25, 2018 – Oct 27, 2018 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -2
index c458bffc0..4c639b40c 100644
@@ -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);
 
@@ -1708,7 +1708,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);
 
Signature · 1 line
2.13.6
author Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Zhang, Qi Z
Sent: Wednesday, October 24, 2018 9:49 PM
To: Lu, Wenzhuo <[email protected]>
Cc: Lin, Xueqin <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ixgbe: enable detach from secondary

Quoted 5 lines

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.

Applied to dpdk-next-net-intel.

Thanks
Qi