ixgbe: fix LSC callback
PATCH 1/1 ixgbe: fix LSC callback
add _rte_eth_dev_callback_process to call callback func
--- drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -0
@@ -2775,6 +2775,8 @@ ixgbe_dev_interrupt_action(struct rte_eth_dev *dev)ixgbe_dev_link_status_print (dev); +__rte_eth_dev_callback_process (dev,RTE_ETH_EVENT_INTR_LSC ); + intr_enable_delay = true; }
Signature · 1 line
2.5.0
Hi Shelton,
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Shelton Chia
Sent: Tuesday, September 1, 2015 2:22 PM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] ixgbe: fix LSC callbackadd
_rte_eth_dev_callback_processto call callback func
Would you like to give more details about why we need this patch? Thanks.
Quoted 22 lines
Signed-off-by Shelton Chia <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +2
-1@@ -2775,6 +2775,8 @@ ixgbe_dev_interrupt_action(struct rte_eth_dev *dev)ixgbe_dev_link_status_print (dev); +__rte_eth_dev_callback_process (dev,RTE_ETH_EVENT_INTR_LSC ); + intr_enable_delay = true; } --2.5.0
Hi Wenzhuo,
I bond 82599 ports with mode 802.3ad, the bonding port can't work
properly. But bonding with i350 ports works properly. I found the registered callback function bond_ethdev_lsc_event_callback by __eth_bond_slave_add_lock_free was not executed when link status changed. I compared ixgbe driver with igb driver, ixgbe's LSC interrupt action without _rte_eth_dev_callback_process.
Quoted 32 lines · Wenzhuo
Hi Shelton,
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Shelton Chia
Sent: Tuesday, September 1, 2015 2:22 PM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] ixgbe: fix LSC callbackadd
_rte_eth_dev_callback_processto call callback funcWould you like to give more details about why we need this patch? Thanks.
Quoted 21 lines
Signed-off-by Shelton Chia <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +2
-1@@ -2775,6 +2775,8 @@ ixgbe_dev_interrupt_action(struct rte_eth_dev *dev)ixgbe_dev_link_status_print (dev); +__rte_eth_dev_callback_process (dev,RTE_ETH_EVENT_INTR_LSC ); + intr_enable_delay = true; } --2.5.0
Signature · 2 lines
贾学涛 信诺瑞得西安研发中心
Hi Wenzhuo,
I just noticed _rte_eth_dev_callback_process called by ixgbe_dev_interrupt_delayed_handler. This patch was incorrect, please ignore it.
Quoted 38 lines · 贾学涛
Hi Wenzhuo,
I bond 82599 ports with mode 802.3ad, the bonding port can't work
properly. But bonding with i350 ports works properly. I found the registered callback functionbond_ethdev_lsc_event_callbackby__eth_bond_slave_add_lock_freewas not executed when link status changed. I compared ixgbe driver with igb driver, ixgbe's LSC interrupt action without_rte_eth_dev_callback_process.Quoted 33 lines · Wenzhuo
Hi Shelton,
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Shelton Chia
Sent: Tuesday, September 1, 2015 2:22 PM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] ixgbe: fix LSC callbackadd
_rte_eth_dev_callback_processto call callback funcWould you like to give more details about why we need this patch? Thanks.
Quoted 22 lines
Signed-off-by Shelton Chia <[email protected]>--- drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ixgbe/ixgbe_ethdev.c +2
-0@@ -2775,6 +2775,8 @@ ixgbe_dev_interrupt_action(struct rte_eth_dev *dev)ixgbe_dev_link_status_print (dev); +__rte_eth_dev_callback_process (dev,RTE_ETH_EVENT_INTR_LSC ); + intr_enable_delay = true;}Signature · 1 line
2.5.0
Signature · 2 lines
贾学涛 信诺瑞得西安研发中心