Skip to contentSkip to conversation

ixgbe: fix LSC callback

PATCH In review Shelton Chia 2 participants 4 messages Sep 1, 2015 Network drivers

lore
Share & tools
lore
#0 lore raw

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
index b8ee1e9..4e4c118 100644
@@ -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
#1 lore raw

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 callback

add _rte_eth_dev_callback_process to call callback func

Would you like to give more details about why we need this patch? Thanks.

Quoted 22 lines
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -1
index b8ee1e9..4e4c118 100644
@@ -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

author
#2 lore raw

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 callback

add _rte_eth_dev_callback_process to call callback func

Would you like to give more details about why we need this patch? Thanks.

Quoted 21 lines
---
  drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -1
index b8ee1e9..4e4c118 100644
@@ -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
贾学涛
信诺瑞得西安研发中心
author
#3 lore raw

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 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 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 callback

add _rte_eth_dev_callback_process to call callback func

Would you like to give more details about why we need this patch? Thanks.

Quoted 22 lines
---
  drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/net/ixgbe/ixgbe_ethdev.c +2 -0
index b8ee1e9..4e4c118 100644
@@ -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
贾学涛
信诺瑞得西安研发中心