Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/iavf/
Diavf.h338 #define CLIENT_ALLOWED(_a) ((_a)->vf_res ? \
339 (_a)->vf_res->vf_cap_flags & \
344 #define RSS_PF(_a) ((_a)->vf_res->vf_cap_flags & \
346 #define RSS_AQ(_a) ((_a)->vf_res->vf_cap_flags & \
348 #define RSS_REG(_a) (!((_a)->vf_res->vf_cap_flags & \
351 #define VLAN_ALLOWED(_a) ((_a)->vf_res->vf_cap_flags & \
353 #define ADV_LINK_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
355 #define FDIR_FLTR_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
357 #define ADV_RSS_SUPPORT(_a) ((_a)->vf_res->vf_cap_flags & \
359 struct virtchnl_vf_resource *vf_res; /* incl. all VSIs */ member
Diavf_virtchnl.c167 if (adapter->vf_res->num_queue_pairs > IAVF_MAX_REQ_QUEUES) { in iavf_validate_num_queues()
172 adapter->vf_res->num_queue_pairs, in iavf_validate_num_queues()
176 adapter->vf_res->num_queue_pairs = IAVF_MAX_REQ_QUEUES; in iavf_validate_num_queues()
177 for (i = 0; i < adapter->vf_res->num_vsis; i++) { in iavf_validate_num_queues()
178 vsi_res = &adapter->vf_res->vsi_res[i]; in iavf_validate_num_queues()
224 memcpy(adapter->vf_res, event.msg_buf, min(event.msg_len, len)); in iavf_get_vf_config()
231 iavf_vf_parse_hw_config(hw, adapter->vf_res); in iavf_get_vf_config()
247 int i, max_frame = adapter->vf_res->max_mtu; in iavf_configure_queues()
1752 memcpy(adapter->vf_res, msg, min(msglen, len)); in iavf_virtchnl_completion()
1754 iavf_vf_parse_hw_config(&adapter->hw, adapter->vf_res); in iavf_virtchnl_completion()
Diavf_main.c1248 else if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_alloc_queues()
1322 (int)adapter->vf_res->max_vectors); in iavf_set_interrupt_capability()
1452 if (adapter->vf_res->vf_cap_flags & in iavf_init_rss()
1578 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_init_interrupt_scheme()
1917 if (!adapter->vf_res) { in iavf_init_get_resources()
1918 adapter->vf_res = kzalloc(IAVF_VIRTCHNL_VF_RESOURCE_SIZE, in iavf_init_get_resources()
1920 if (!adapter->vf_res) { in iavf_init_get_resources()
1974 if (adapter->vf_res->vf_cap_flags & in iavf_init_get_resources()
2036 kfree(adapter->vf_res); in iavf_init_get_resources()
2037 adapter->vf_res = NULL; in iavf_init_get_resources()
[all …]
Diavf_ethtool.c1840 if ((adapter->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_ADQ) && in iavf_set_channels()
/drivers/infiniband/hw/bnxt_re/
Dmain.c179 struct bnxt_qplib_vf_res *vf_res; in bnxt_re_limit_vf_res() local
184 vf_res = &qplib_ctx->vf_res; in bnxt_re_limit_vf_res()
192 vf_res->max_qp_per_vf = (qplib_ctx->qpc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
193 vf_res->max_srq_per_vf = (qplib_ctx->srqc_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
194 vf_res->max_cq_per_vf = (qplib_ctx->cq_count * vf_pct) / num_vf; in bnxt_re_limit_vf_res()
209 vf_res->max_mrw_per_vf = (mrws / nvfs); in bnxt_re_limit_vf_res()
210 vf_res->max_gid_per_vf = BNXT_RE_MAX_GID_PER_VF; in bnxt_re_limit_vf_res()
217 memset(&rdev->qplib_ctx.vf_res, 0, sizeof(struct bnxt_qplib_vf_res)); in bnxt_re_set_resource_limits()
Dqplib_rcfw.c547 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_init_rcfw()
548 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_init_rcfw()
549 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_init_rcfw()
550 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_init_rcfw()
551 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_init_rcfw()
Dqplib_sp.c198 req.max_qp_per_vf = cpu_to_le32(ctx->vf_res.max_qp_per_vf); in bnxt_qplib_set_func_resources()
199 req.max_mrw_per_vf = cpu_to_le32(ctx->vf_res.max_mrw_per_vf); in bnxt_qplib_set_func_resources()
200 req.max_srq_per_vf = cpu_to_le32(ctx->vf_res.max_srq_per_vf); in bnxt_qplib_set_func_resources()
201 req.max_cq_per_vf = cpu_to_le32(ctx->vf_res.max_cq_per_vf); in bnxt_qplib_set_func_resources()
202 req.max_gid_per_vf = cpu_to_le32(ctx->vf_res.max_gid_per_vf); in bnxt_qplib_set_func_resources()
Dqplib_res.h249 struct bnxt_qplib_vf_res vf_res; member
/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()