MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ice_get_init_link_status

Function ice_get_init_link_status

dpdk/drivers/net/ice/ice_ethdev.c:3645–3664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3643}
3644
3645static void
3646ice_get_init_link_status(struct rte_eth_dev *dev)
3647{
3648 struct ice_pf *pf = ICE_DEV_PRIVATE_TO_PF(dev->data->dev_private);
3649 bool enable_lse = dev->data->dev_conf.intr_conf.lsc ? true : false;
3650 struct ice_link_status link_status;
3651 int ret;
3652
3653 ret = ice_get_link_info_safe(pf, enable_lse, &link_status);
3654 if (ret != ICE_SUCCESS) {
3655 PMD_DRV_LOG(ERR, "Failed to get link info");
3656 pf->init_link_up = false;
3657 return;
3658 }
3659
3660 if (link_status.link_info & ICE_AQ_LINK_UP)
3661 pf->init_link_up = true;
3662 else
3663 pf->init_link_up = false;
3664}
3665
3666static int
3667ice_pps_out_cfg(struct ice_hw *hw, int idx, int timer)

Callers 1

ice_dev_startFunction · 0.85

Calls 1

ice_get_link_info_safeFunction · 0.85

Tested by

no test coverage detected