Home
last modified time | relevance | path

Searched refs:vfres (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_virtchnl.c420 struct virtchnl_vf_resource *vfres = NULL; in ice_vc_get_vf_res_msg() local
433 vfres = kzalloc(len, GFP_KERNEL); in ice_vc_get_vf_res_msg()
434 if (!vfres) { in ice_vc_get_vf_res_msg()
446 vfres->vf_cap_flags = VIRTCHNL_VF_OFFLOAD_L2; in ice_vc_get_vf_res_msg()
453 vfres->vf_cap_flags |= ice_vc_get_vlan_caps(hw, vf, vsi, in ice_vc_get_vf_res_msg()
457 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PF; in ice_vc_get_vf_res_msg()
460 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ; in ice_vc_get_vf_res_msg()
462 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_REG; in ice_vc_get_vf_res_msg()
466 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_FDIR_PF; in ice_vc_get_vf_res_msg()
469 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PCTYPE_V2; in ice_vc_get_vf_res_msg()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c2092 struct virtchnl_vf_resource *vfres = NULL; in i40e_vc_get_vf_resources_msg() local
2105 len = struct_size(vfres, vsi_res, num_vsis); in i40e_vc_get_vf_resources_msg()
2106 vfres = kzalloc(len, GFP_KERNEL); in i40e_vc_get_vf_resources_msg()
2107 if (!vfres) { in i40e_vc_get_vf_resources_msg()
2119 vfres->vf_cap_flags = VIRTCHNL_VF_OFFLOAD_L2; in i40e_vc_get_vf_resources_msg()
2120 vfres->vf_cap_flags |= VIRTCHNL_VF_CAP_ADV_LINK_SPEED; in i40e_vc_get_vf_resources_msg()
2123 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_VLAN; in i40e_vc_get_vf_resources_msg()
2127 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_IWARP; in i40e_vc_get_vf_resources_msg()
2134 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_PF; in i40e_vc_get_vf_resources_msg()
2138 vfres->vf_cap_flags |= VIRTCHNL_VF_OFFLOAD_RSS_AQ; in i40e_vc_get_vf_resources_msg()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c546 if (!(adapter->params.vfres.r_caps & FW_CMD_CAP_PORT)) in t4vf_port_init()
1092 struct vf_resources *vfres = &adapter->params.vfres; in t4vf_get_vfres() local
1114 vfres->niqflint = FW_PFVF_CMD_NIQFLINT_G(word); in t4vf_get_vfres()
1115 vfres->niq = FW_PFVF_CMD_NIQ_G(word); in t4vf_get_vfres()
1118 vfres->neq = FW_PFVF_CMD_NEQ_G(word); in t4vf_get_vfres()
1119 vfres->pmask = FW_PFVF_CMD_PMASK_G(word); in t4vf_get_vfres()
1122 vfres->tc = FW_PFVF_CMD_TC_G(word); in t4vf_get_vfres()
1123 vfres->nvi = FW_PFVF_CMD_NVI_G(word); in t4vf_get_vfres()
1124 vfres->nexactf = FW_PFVF_CMD_NEXACTF_G(word); in t4vf_get_vfres()
1127 vfres->r_caps = FW_PFVF_CMD_R_CAPS_G(word); in t4vf_get_vfres()
[all …]
Dcxgb4vf_main.c2307 struct vf_resources *vfres = &adapter->params.vfres; in resources_show() local
2311 desc " (" #var "):", vfres->var) in resources_show()
2449 struct vf_resources *vfres = &adapter->params.vfres; in size_nports_qsets() local
2455 adapter->params.nports = vfres->nvi; in size_nports_qsets()
2468 pmask_nports = hweight32(adapter->params.vfres.pmask); in size_nports_qsets()
2473 adapter->params.vfres.pmask); in size_nports_qsets()
2493 ethqsets = vfres->niqflint - 1 - (msi == MSI_MSI); in size_nports_qsets()
2494 if (vfres->nethctrl != ethqsets) in size_nports_qsets()
2495 ethqsets = min(vfres->nethctrl, ethqsets); in size_nports_qsets()
2496 if (vfres->neq < ethqsets*2) in size_nports_qsets()
[all …]
Dt4vf_common.h265 struct vf_resources vfres; /* Virtual Function Resource limits */ member
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_main.c2936 struct virtchnl_vf_resource *vfres = adapter->vf_res; in iavf_reset_task() local
3105 if ((vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_reset_task()
3593 struct virtchnl_vf_resource *vfres = adapter->vf_res; in __iavf_setup_tc() local
3622 if (!(vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ)) { in __iavf_setup_tc()
4727 struct virtchnl_vf_resource *vfres = adapter->vf_res; in iavf_process_config() local
4749 if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ENCAP) { in iavf_process_config()
4759 if (!(vfres->vf_cap_flags & in iavf_process_config()
4780 if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) in iavf_process_config()
4782 if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_USO) in iavf_process_config()
4790 if (vfres->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN) in iavf_process_config()
Diavf_virtchnl.c2317 struct virtchnl_vf_res_request *vfres = in iavf_virtchnl_completion() local
2320 if (vfres->num_queue_pairs != adapter->num_req_queues) { in iavf_virtchnl_completion()
2324 vfres->num_queue_pairs); in iavf_virtchnl_completion()