Home
last modified time | relevance | path

Searched refs:vf_res (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf.h385 #define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \
386 (_a)->vf_res->vf_cap_flags & \
391 #define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \
393 #define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \
395 #define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \
398 #define VLAN_ALLOWED(_a) ((_a)->vf_res->vf_cap_flags & \
400 #define VLAN_V2_ALLOWED(_a) ((_a)->vf_res->vf_cap_flags & \
408 #define ADV_LINK_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
410 #define FDIR_FLTR_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
412 #define ADV_RSS_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
[all …]
Diavf_main.c1578 else if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_alloc_queues()
1654 (int)adapter->vf_res->max_vectors); in iavf_set_interrupt_capability()
1785 if (adapter->vf_res->vf_cap_flags & in iavf_init_rss()
1914 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_init_interrupt_scheme()
2366 for (i = 0; i < adapter->vf_res->num_vsis; i++) { in iavf_parse_vf_resource_msg()
2367 if (adapter->vf_res->vsi_res[i].vsi_type == VIRTCHNL_VSI_SRIOV) in iavf_parse_vf_resource_msg()
2368 adapter->vsi_res = &adapter->vf_res->vsi_res[i]; in iavf_parse_vf_resource_msg()
2398 if (adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_RSS_PF) { in iavf_parse_vf_resource_msg()
2399 adapter->rss_key_size = adapter->vf_res->rss_key_size; in iavf_parse_vf_resource_msg()
2400 adapter->rss_lut_size = adapter->vf_res->rss_lut_size; in iavf_parse_vf_resource_msg()
[all …]
Diavf_virtchnl.c185 if (adapter->vf_res->num_queue_pairs > IAVF_MAX_REQ_QUEUES) { in iavf_validate_num_queues()
190 adapter->vf_res->num_queue_pairs, in iavf_validate_num_queues()
194 adapter->vf_res->num_queue_pairs = IAVF_MAX_REQ_QUEUES; in iavf_validate_num_queues()
195 for (i = 0; i < adapter->vf_res->num_vsis; i++) { in iavf_validate_num_queues()
196 vsi_res = &adapter->vf_res->vsi_res[i]; in iavf_validate_num_queues()
226 memcpy(adapter->vf_res, event.msg_buf, min(event.msg_len, len)); in iavf_get_vf_config()
233 iavf_vf_parse_hw_config(hw, adapter->vf_res); in iavf_get_vf_config()
272 int i, max_frame = adapter->vf_res->max_mtu; in iavf_configure_queues()
2171 memcpy(adapter->vf_res, msg, min(msglen, len)); in iavf_virtchnl_completion()
2173 iavf_vf_parse_hw_config(&adapter->hw, adapter->vf_res); in iavf_virtchnl_completion()
Diavf_ethtool.c1835 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_set_channels()
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dmain.c181 struct bnxt_qplib_vf_res *vf_res; in bnxt_re_limit_vf_res() local
186 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
194 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
195 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
196 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
211 vf_res->max_mrw_per_vf = (mrws / nvfs); in bnxt_re_limit_vf_res()
212 vf_res->max_gid_per_vf = BNXT_RE_MAX_GID_PER_VF; in bnxt_re_limit_vf_res()
219 memset(&rdev->qplib_ctx.vf_res, 0, sizeof(struct bnxt_qplib_vf_res)); in bnxt_re_set_resource_limits()
Dqplib_rcfw.c540 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_init_rcfw()
541 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_init_rcfw()
542 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_init_rcfw()
543 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_init_rcfw()
544 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_init_rcfw()
Dqplib_sp.c189 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_set_func_resources()
190 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_set_func_resources()
191 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_set_func_resources()
192 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_set_func_resources()
193 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_set_func_resources()
Dqplib_res.h243 struct bnxt_qplib_vf_res vf_res; member
/linux-6.1.9/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c4440 struct be_nic_res_desc *vf_res; in be_cmd_get_profile_config() local
4516 vf_res = be_get_vft_desc(resp->func_param, desc_count, in be_cmd_get_profile_config()
4518 if (vf_res) in be_cmd_get_profile_config()
4519 res->vf_if_cap_flags = vf_res->cap_flags; in be_cmd_get_profile_config()