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: [email protected]
Signed-off-by: Qiming Yang <[email protected]>
---
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