Lines Matching refs:vfres
1600 struct virtchnl_vf_resource *vfres = NULL; in ice_vc_get_vf_res_msg() local
1613 vfres = devm_kzalloc(&pf->pdev->dev, len, GFP_KERNEL); in ice_vc_get_vf_res_msg()
1614 if (!vfres) { in ice_vc_get_vf_res_msg()
1626 vfres->vf_cap_flags = VIRTCHNL_VF_OFFLOAD_L2; in ice_vc_get_vf_res_msg()
1634 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_VLAN; in ice_vc_get_vf_res_msg()
1637 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PF; in ice_vc_get_vf_res_msg()
1640 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ; in ice_vc_get_vf_res_msg()
1642 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_REG; in ice_vc_get_vf_res_msg()
1646 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2; in ice_vc_get_vf_res_msg()
1649 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_ENCAP; in ice_vc_get_vf_res_msg()
1652 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_ENCAP_CSUM; in ice_vc_get_vf_res_msg()
1655 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RX_POLLING; in ice_vc_get_vf_res_msg()
1658 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_WB_ON_ITR; in ice_vc_get_vf_res_msg()
1661 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_REQ_QUEUES; in ice_vc_get_vf_res_msg()
1664 vfres->vf_cap_flags |= VIRTCHNL_VF_CAP_ADV_LINK_SPEED; in ice_vc_get_vf_res_msg()
1666 vfres->num_vsis = 1; in ice_vc_get_vf_res_msg()
1668 vfres->num_queue_pairs = vsi->num_txq; in ice_vc_get_vf_res_msg()
1669 vfres->max_vectors = pf->num_vf_msix; in ice_vc_get_vf_res_msg()
1670 vfres->rss_key_size = ICE_VSIQF_HKEY_ARRAY_SIZE; in ice_vc_get_vf_res_msg()
1671 vfres->rss_lut_size = ICE_VSIQF_HLUT_ARRAY_SIZE; in ice_vc_get_vf_res_msg()
1673 vfres->vsi_res[0].vsi_id = vf->lan_vsi_num; in ice_vc_get_vf_res_msg()
1674 vfres->vsi_res[0].vsi_type = VIRTCHNL_VSI_SRIOV; in ice_vc_get_vf_res_msg()
1675 vfres->vsi_res[0].num_queue_pairs = vsi->num_txq; in ice_vc_get_vf_res_msg()
1676 ether_addr_copy(vfres->vsi_res[0].default_mac_addr, in ice_vc_get_vf_res_msg()
1684 (u8 *)vfres, len); in ice_vc_get_vf_res_msg()
1686 devm_kfree(&pf->pdev->dev, vfres); in ice_vc_get_vf_res_msg()
2510 struct virtchnl_vf_res_request *vfres = in ice_vc_request_qs_msg() local
2512 u16 req_queues = vfres->num_queue_pairs; in ice_vc_request_qs_msg()
2535 vfres->num_queue_pairs = ICE_MAX_BASE_QS_PER_VF; in ice_vc_request_qs_msg()
2541 vfres->num_queue_pairs = min_t(u16, max_allowed_vf_queues, in ice_vc_request_qs_msg()
2556 v_ret, (u8 *)vfres, sizeof(*vfres)); in ice_vc_request_qs_msg()