net/ixgbe: enable detach from secondary
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.
Signed-off-by Qi Zhang <[email protected]>
--- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -2
@@ -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
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
-EPERMwhen try detaches a device from a secondary process.Signed-off-by Qi Zhang <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi