ixgbe: fix vfio ioctl SET_IRQS error
PATCH 1/2 ixgbe: fix vfio ioctl SET_IRQS error
The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.
--- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +3 -0
@@ -1976,6 +1976,9 @@ ixgbe_dev_start(struct rte_eth_dev *dev)return -EINVAL ; } +/* disable uio/vfio intr/eventfd mapping */ +rte_intr_disable (intr_handle); +/* stop adapter */ hw->adapter_stopped =0 ;ixgbe_stop_adapter (hw);
Signature · 1 line
2.4.3
PATCH 2/2 igb: fix vfio ioctl SET_IRQS error
The vector number may change during 'dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.
--- drivers/net/e1000/igb_ethdev.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/e1000/igb_ethdev.c +3 -0
@@ -1092,6 +1092,9 @@ eth_igb_start(struct rte_eth_dev *dev)PMD_INIT_FUNC_TRACE (); +/* disable uio/vfio intr/eventfd mapping */ +rte_intr_disable (intr_handle); +/* Power up the phy. Needed to make the link go Up */ e1000_power_up_phy (hw);
Signature · 1 line
2.4.3
Re: [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error
Hi,
Quoted 6 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Cunming Liang
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH 2/2] igb: fix vfio ioctlSET_IRQSerror
Quoted 7 lines
The vector number may change during '
dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.Fixes fe685de2b1b6 ("igb: fix VF start with PF stopped")Reported-by Yong Liu <[email protected]>Signed-off-by Cunming Liang <[email protected]>
Re: [PATCH 2/2] igb: fix vfio ioctl SET_IRQS error
Quoted 8 lines
Quoted 7 lines
The vector number may change during '
dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.Fixes fe685de2b1b6 ("igb: fix VF start with PF stopped")Reported-by Yong Liu <[email protected]>Signed-off-by Cunming Liang <[email protected]>Acked-by Wenzhuo Lu <[email protected]>
Series applied, thanks
Quoted 36 lines
-----Original Message-----
From: Liang, Cunming
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Cc: Liu, Yong; Liang, Cunming
Subject: [PATCH 1/2] ixgbe: fix vfio ioctlSET_IRQSerrorThe vector number may change during '
dev_start'. Before enabling a new vector mapping,
it's necessary to disable/unmap the previous setting.Fixes 7ab8500037f6 ("ixgbe: fix VF start with PF stopped")Reported-by Yong Liu <[email protected]>Signed-off-by Cunming Liang <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +3
-1@@ -1976,6 +1976,9 @@ ixgbe_dev_start(struct rte_eth_dev *dev)return -EINVAL ; } +/* disable uio/vfio intr/eventfd mapping */ +rte_intr_disable (intr_handle); +/* stop adapter */ hw->adapter_stopped =0 ;ixgbe_stop_adapter (hw); --2.4.3
Lu, Wenzhuo
Acked-byHi,
Quoted 6 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Liu, Yong
Sent: Friday, November 13, 2015 2:08 PM
To: Liang, Cunming <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH 1/2] ixgbe: fix vfio ioctlSET_IRQSerror
Quoted 16 lines
Tested-by Yong Liu <[email protected]>Quoted 14 lines
-----Original Message-----
From: Liang, Cunming
Sent: Friday, November 13, 2015 10:50 AM
To: [email protected]
Cc: Liu, Yong; Liang, Cunming
Subject: [PATCH 1/2] ixgbe: fix vfio ioctlSET_IRQSerrorThe vector number may change during '
dev_start'. Before enabling a new vector mapping, it's necessary to disable/unmap the previous setting.Fixes 7ab8500037f6 ("ixgbe: fix VF start with PF stopped")Reported-by Yong Liu <[email protected]>Signed-off-by Cunming Liang <[email protected]>