Skip to content

Commit

Permalink
net/ice: fix initial link status
Browse files Browse the repository at this point in the history
[ upstream commit 5274d4309139e963bbd369c5639ab24695c5574f ]

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

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

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
qimingya authored and bluca committed Oct 18, 2023
1 parent e2ee086 commit 52b008e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ice/ice_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3506,6 +3506,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
Expand Down

0 comments on commit 52b008e

Please sign in to comment.