static int i40e_vf_representor_link_update(struct rte_eth_dev *ethdev, int wait_to_complete) { struct i40e_vf_representor *representor = ethdev->data->dev_private; return i40e_dev_link_update(representor->adapter->eth_dev, wait_to_complete); }
static void i40e_pf_host_process_cmd_get_link_status(struct i40e_pf_vf *vf) { struct rte_eth_dev *dev = I40E_VSI_TO_ETH_DEV(vf->pf->main_vsi); /* Update link status first to acquire latest link change */ i40e_dev_link_update(dev, 1); i40e_pf_host_send_msg_to_vf(vf, I40E_VIRTCHNL_OP_GET_LINK_STAT, I40E_SUCCESS, (uint8_t *)&dev->data->dev_link, sizeof(struct rte_eth_link)); }