| 3643 | } |
| 3644 | |
| 3645 | static void |
| 3646 | ice_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 | |
| 3666 | static int |
| 3667 | ice_pps_out_cfg(struct ice_hw *hw, int idx, int timer) |
no test coverage detected