Skip to contentSkip to conversation

A question about the link status of the intel E810 nic can not be up?

dpdk-dev wangyunjian 2 participants 3 messages Jan 10, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

Hi, All:

I am using Intel E810 with DPDK v21.11 to create a dpdkbond but there is a probability that the failure will occur.

During the test, the bonding is repeatedly added and deleted. Sometimes, the link status of the NIC is Down. And if call ice_dev_set_link_up again, the link status of the NIC can be recovered.

Alternatively, the problem can be avoided by modifying the ice pmd driver.

drivers/net/ice/ice_ethdev.c +1 -1
index 13a7a9702a..fcd22e20a5 100644
@@ -3604,7 +3604,7 @@ ice_dev_start(struct rte_eth_dev *dev)
        ice_dev_set_link_up(dev);
 
        /* Call get_link_info aq commond to enable/disable LSE */
-       ice_link_update(dev, 0);
+       ice_link_update(dev, 1);
 
        pf->adapter_stopped = false;
#1 lore raw
Quoted 28 lines

-----Original Message-----
From: wangyunjian <[email protected]>
Sent: Monday, January 10, 2022 11:20 AM
To: [email protected]; [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: Huangshaozhang <[email protected]>; dingxiaoxiong <[email protected]>
Subject: [dpdk-dev] [dpdk-users] A question about the link status of the intel E810 nic can not be up?

Hi, All:

I am using Intel E810 with DPDK v21.11 to create a dpdkbond but there is a probability that the failure will occur.

During the test, the bonding is repeatedly added and deleted. Sometimes, the link status of the NIC is Down. And if call ice_dev_set_link_up again, the link status of the NIC can be recovered.

Alternatively, the problem can be avoided by modifying the ice pmd driver.

drivers/net/ice/ice_ethdev.c index renamed from drivers/net/ice/ice_ethdev.c +0 -0

13a7a9702a..fcd22e20a5 100644

drivers/net/ice/ice_ethdev.c ice_dev_start(struct rte_eth_dev *dev) · line 3607

Quoted 5 lines
drivers/net/ice/ice_ethdev.c +1 -1
@@ -3604,7 +3604,7 @@ ice_dev_start(struct rte_eth_dev *dev)
        ice_dev_set_link_up(dev);
 
        /* Call get_link_info aq commond to enable/disable LSE */
-       ice_link_update(dev, 0);
+       ice_link_update(dev, 1);

This looks good to me, it's reasonable to wait for complete right after set link up as it is not in an link status change interrupt handling scenario.

We will try to reproduce this issue, meanwhile could you help on following below 2 things.

1. share the device ID / firmware version that you met this issue.
2. send a v2 with reworded title and commit log as a normal patch if you want to contribute.

Thanks
Qi

Quoted 2 lines
drivers/net/ice/ice_ethdev.c +0 -0
        pf->adapter_stopped = false;
#2 lore raw
Quoted 49 lines

-----Original Message-----
From: Zhang, Qi Z [mailto:[email protected]]
Sent: Monday, January 10, 2022 5:29 PM
To: wangyunjian <[email protected]>; [email protected]; [email protected]; Yang, Qiming <[email protected]>
Cc: Huangshaozhang <[email protected]>; dingxiaoxiong <[email protected]>
Subject: RE: [dpdk-dev] [dpdk-users] A question about the link status of the intel E810 nic can not be up?

Quoted 28 lines

-----Original Message-----
From: wangyunjian <[email protected]>
Sent: Monday, January 10, 2022 11:20 AM
To: [email protected]; [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: Huangshaozhang <[email protected]>; dingxiaoxiong <[email protected]>
Subject: [dpdk-dev] [dpdk-users] A question about the link status of the intel
E810 nic can not be up?

Hi, All:

I am using Intel E810 with DPDK v21.11 to create a dpdkbond but there is a probability that the failure will occur.

During the test, the bonding is repeatedly added and deleted. Sometimes, the link status of the NIC is Down. And if call ice_dev_set_link_up again, the link status of the NIC can be recovered.

Alternatively, the problem can be avoided by modifying the ice pmd driver.

(quoted diff) +0 -0

b/drivers/net/ice/ice_ethdev.c index
13a7a9702a..fcd22e20a5 100644

drivers/net/ice/ice_ethdev.c ice_dev_start(struct rte_eth_dev *dev) · line 3607

Quoted 5 lines
drivers/net/ice/ice_ethdev.c +1 -1
@@ -3604,7 +3604,7 @@ ice_dev_start(struct rte_eth_dev *dev)
        ice_dev_set_link_up(dev);
 
        /* Call get_link_info aq commond to enable/disable LSE */
-       ice_link_update(dev, 0);
+       ice_link_update(dev, 1);

This looks good to me, it's reasonable to wait for complete right after set link up as it is not in an link status change interrupt handling scenario.

Quoted 4 lines

We will try to reproduce this issue, meanwhile could you help on following below 2 things.

1. share the device ID / firmware version that you met this issue.

# ethtool -i eth16
driver: ice
version: 1.6.4
firmware-version: 3.10 0x8000ad4a 1.3106.0
expansion-rom-version: 
bus-info: 0000:04:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
# lspci -n -s 04:00.0
04:00.0 0200: 8086:159b (rev 02)
Quoted 2 lines

2. send a v2 with reworded title and commit log as a normal patch if you want to contribute.

OK, I'll send v2 patch to fix it.

Thanks

Quoted 6 lines

Thanks
Qi

Quoted 2 lines
drivers/net/ice/ice_ethdev.c +0 -0
        pf->adapter_stopped = false;