[PATCH] net/ice: fix initail link status issue
Qiming Yang
qiming.yang at intel.com
Wed Sep 13 11:02:08 CEST 2023
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")
Cc: stable at dpdk.org
Signed-off-by: Qiming Yang <qiming.yang at intel.com>
---
drivers/net/ice/ice_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 4bad39c2c1..ed9771be1c 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -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
--
2.25.1
More information about the stable
mailing list