Skip to contentSkip to conversation

net/ice: fix initail link status issue

PATCH Applied Qiming Yang 2 participants 2 messages Sep 13, 2023 – Sep 14, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix initail link status issue

This patch fixed the issue which the link status still up when the link status changed from up to downi after device restart.

Fixes fdcf92ed6637 ("net/ice: fix link status recovery")
---
 drivers/net/ice/ice_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ice/ice_ethdev.c +2 -0
index 4bad39c2c1..ed9771be1c 100644
@@ -3646,6 +3646,8 @@ ice_get_init_link_status(struct rte_eth_dev *dev)
 
 	if (link_status.link_info & ICE_AQ_LINK_UP)
 		pf->init_link_up = true;
+	else
+		pf->init_link_up = false;
 }
 
 static int
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Wednesday, September 13, 2023 5:02 PM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; [email protected]
Subject: [PATCH] net/ice: fix initail link status issue

s/initail/initial

Quoted 8 lines

This patch fixed the issue which the link status still up when the link status changed from up to downi after device restart.

Fixes fdcf92ed6637 ("net/ice: fix link status recovery")

Applied to dpdk-next-net-intel.

Thanks
Qi