Skip to content

Commit

Permalink
net/ice: fix link up when starting device
Browse files Browse the repository at this point in the history
[ upstream commit 6c76b76 ]

Currently, there is a possibility that the link status is not correct
after set link up, the device ID is 159b. It would be fixed by calling
ice_link_update() while the parameter 'wait_to_complete' is true. It's
reasonable to wait for complete right after set link up as it is not
in an link status change interrupt handling scenario.

Fixes: cf911d9 ("net/ice: support link update")

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
wyjwang authored and bluca committed Feb 14, 2022
1 parent 0666548 commit ab9cde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ice/ice_ethdev.c
Expand Up @@ -3569,7 +3569,7 @@ ice_dev_start(struct rte_eth_dev *dev)
ice_dev_set_link_up(dev);

/* Call get_link_info aq command to enable/disable LSE */
ice_link_update(dev, 0);
ice_link_update(dev, 1);

pf->adapter_stopped = false;

Expand Down

0 comments on commit ab9cde2

Please sign in to comment.