| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_vnic.c | 40 struct bnxt_vnic_info *vnic; in bnxt_init_vnics() local 47 vnic = &bp->vnic_info[i]; in bnxt_init_vnics() 52 vnic->hash_mode = in bnxt_init_vnics() 54 vnic->rx_queue_cnt = 0; in bnxt_init_vnics() 68 if (!vnic) { in bnxt_alloc_vnic() 73 return vnic; in bnxt_alloc_vnic() 87 vnic->rx_queue_cnt = 0; in bnxt_free_all_vnics() 103 vnic->rss_mz = NULL; in bnxt_free_vnic_attributes() 151 vnic->rss_mz = mz; in bnxt_alloc_vnic_attributes() 159 vnic->rss_hash_key = (void *)((char *)vnic->rss_table + rss_table_size); in bnxt_alloc_vnic_attributes() [all …]
|
| H A D | bnxt_rxq.c | 124 vnic = &bp->vnic_info[i]; in bnxt_mq_rx_configure() 125 if (!vnic) { in bnxt_mq_rx_configure() 135 rxq->vnic = vnic; in bnxt_mq_rx_configure() 180 vnic = &bp->vnic_info[i]; in bnxt_mq_rx_configure() 499 vnic = rxq->vnic; in bnxt_rx_queue_start() 558 vnic = rxq->vnic; in bnxt_rx_queue_stop() 559 if (!vnic) { in bnxt_rx_queue_stop() 578 for (i = vnic->start_grp_id; i < vnic->end_grp_id; i++) in bnxt_rx_queue_stop() 597 vnic->mru = 0; in bnxt_rx_queue_stop() 600 vnic->mru = saved_mru; in bnxt_rx_queue_stop() [all …]
|
| H A D | bnxt_flow.c | 918 l2_filter->vnic = vnic; in bnxt_get_l2_filter() 1258 vnic->rss_table[rss_idx] = vnic->fw_grp_ids[idx]; in bnxt_vnic_rss_cfg_update() 1373 rxq->vnic = vnic; in bnxt_validate_and_parse_flow() 1388 act_q->index, vnic, vnic->fw_grp_ids); in bnxt_validate_and_parse_flow() 1594 rxq->vnic = vnic; in bnxt_validate_and_parse_flow() 1609 vnic_id, vnic, vnic->fw_grp_ids); in bnxt_validate_and_parse_flow() 1721 if (vnic && STAILQ_EMPTY(&vnic->filter)) in bnxt_validate_and_parse_flow() 2081 flow->vnic = vnic; in bnxt_flow_create() 2200 vnic = flow->vnic; in _bnxt_flow_destroy() 2249 if (vnic && !vnic->func_default && in _bnxt_flow_destroy() [all …]
|
| H A D | bnxt_hwrm.h | 145 struct bnxt_vnic_info *vnic); 194 int bnxt_hwrm_vnic_alloc(struct bnxt *bp, struct bnxt_vnic_info *vnic); 195 int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic); 196 int bnxt_hwrm_vnic_qcfg(struct bnxt *bp, struct bnxt_vnic_info *vnic, 202 int bnxt_hwrm_vnic_free(struct bnxt *bp, struct bnxt_vnic_info *vnic); 204 struct bnxt_vnic_info *vnic); 206 struct bnxt_vnic_info *vnic); 208 struct bnxt_vnic_info *vnic, bool enable); 247 void vf_vnic_set_rxmask_cb(struct bnxt_vnic_info *vnic, void *flagp); 252 int (*hwrm_cb)(struct bnxt *bp, struct bnxt_vnic_info *vnic)); [all …]
|
| H A D | bnxt_hwrm.c | 606 vnic = l2_filter->vnic; in bnxt_hwrm_clear_l2_filter() 607 if (vnic) { in bnxt_hwrm_clear_l2_filter() 2000 vnic->start_grp_id, vnic->end_grp_id); in bnxt_hwrm_vnic_alloc() 2001 for (i = vnic->start_grp_id, j = 0; i < vnic->end_grp_id; i++, j++) in bnxt_hwrm_vnic_alloc() 2004 vnic->dflt_ring_grp = bp->grp_info[vnic->start_grp_id].fw_grp_id; in bnxt_hwrm_vnic_alloc() 2121 for (i = vnic->start_grp_id; i < vnic->end_grp_id; i++) { in bnxt_hwrm_vnic_cfg() 2181 if (vnic->bd_stall) in bnxt_hwrm_vnic_cfg() 2298 vnic, in bnxt_hwrm_vnic_ctx_free() 2304 rc = _bnxt_hwrm_vnic_ctx_free(bp, vnic, vnic->rss_rule); in bnxt_hwrm_vnic_ctx_free() 5179 if (!(vnic->rss_table && vnic->hash_type)) in bnxt_vnic_rss_configure() [all …]
|
| H A D | bnxt_ethdev.c | 415 vnic_id, vnic, vnic->fw_grp_ids); in bnxt_setup_one_vnic() 472 j, rxq->vnic, rxq->vnic->fw_grp_ids); in bnxt_setup_one_vnic() 477 vnic->rx_queue_cnt++; in bnxt_setup_one_vnic() 776 if (!vnic) { in bnxt_start_nic() 1804 if (!vnic) { in bnxt_mac_addr_add_op() 2033 if (!vnic->rss_table) in bnxt_reta_update_op() 2090 if (!vnic) in bnxt_reta_query_op() 2092 if (!vnic->rss_table) in bnxt_reta_query_op() 2153 vnic->hash_mode = in bnxt_rss_hash_update_op() 2196 if (vnic && vnic->rss_hash_key) { in bnxt_rss_hash_conf_get_op() [all …]
|
| H A D | bnxt_filter.c | 80 struct bnxt_vnic_info *vnic; in bnxt_free_all_filters() local 94 vnic = &bp->vnic_info[i]; in bnxt_free_all_filters() 95 filter = STAILQ_FIRST(&vnic->filter); in bnxt_free_all_filters() 98 STAILQ_REMOVE(&vnic->filter, filter, in bnxt_free_all_filters() 102 if (filter->vnic) in bnxt_free_all_filters() 103 filter->vnic = NULL; in bnxt_free_all_filters() 106 STAILQ_INIT(&vnic->filter); in bnxt_free_all_filters()
|
| H A D | rte_pmd_bnxt.c | 80 vnic->bd_stall = !(*on); in rte_pmd_bnxt_set_all_queues_drop_en_cb() 347 vnic->vlan_strip = *on; in rte_pmd_bnxt_set_vf_vlan_stripq_cb() 457 struct bnxt_vnic_info vnic; in bnxt_set_vf_table() local 475 memset(&vnic, 0, sizeof(vnic)); in bnxt_set_vf_table() 476 vnic.fw_vnic_id = dflt_vnic; in bnxt_set_vf_table() 477 if (bnxt_hwrm_vnic_qcfg(bp, &vnic, in bnxt_set_vf_table() 479 if (bnxt_hwrm_cfa_l2_set_rx_mask(bp, &vnic, in bnxt_set_vf_table() 735 struct bnxt_vnic_info vnic; in rte_pmd_bnxt_mac_addr_add() local 774 memset(&vnic, 0, sizeof(struct bnxt_vnic_info)); in rte_pmd_bnxt_mac_addr_add() 775 vnic.fw_vnic_id = rte_le_to_cpu_16(rc); in rte_pmd_bnxt_mac_addr_add() [all …]
|
| H A D | bnxt_stats.c | 799 struct bnxt_vnic_info *vnic; in bnxt_dev_xstats_get_op() local 802 vnic = &bp->vnic_info[j]; in bnxt_dev_xstats_get_op() 803 if (vnic && vnic->fw_vnic_id == INVALID_VNIC_ID) in bnxt_dev_xstats_get_op() 806 if (STAILQ_EMPTY(&vnic->flow_list)) in bnxt_dev_xstats_get_op() 809 STAILQ_FOREACH(flow, &vnic->flow_list, next) { in bnxt_dev_xstats_get_op() 1034 struct bnxt_vnic_info *vnic = NULL; in bnxt_flow_stats_req() local 1040 vnic = &bp->vnic_info[i]; in bnxt_flow_stats_req() 1041 if (vnic && vnic->fw_vnic_id == INVALID_VNIC_ID) in bnxt_flow_stats_req() 1044 if (STAILQ_EMPTY(&vnic->flow_list)) in bnxt_flow_stats_req() 1047 STAILQ_FOREACH(flow, &vnic->flow_list, next) { in bnxt_flow_stats_req()
|
| H A D | bnxt_vnic.h | 59 int bnxt_free_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic, 67 int bnxt_vnic_grp_alloc(struct bnxt *bp, struct bnxt_vnic_info *vnic);
|
| H A D | bnxt_filter.h | 91 struct bnxt_vnic_info *vnic; member 104 struct bnxt_filter_info *nf, struct bnxt_vnic_info *vnic);
|
| H A D | bnxt_rxq.h | 37 struct bnxt_vnic_info *vnic; member
|
| H A D | bnxt.h | 233 uint16_t vnic; member 314 struct bnxt_vnic_info *vnic; member
|
| H A D | bnxt_rxr.c | 153 bnxt_hwrm_vnic_tpa_cfg(bp, rxq->vnic, false); in bnxt_rx_ring_reset() 168 bnxt_hwrm_vnic_tpa_cfg(bp, rxq->vnic, true); in bnxt_rx_ring_reset()
|
| /dpdk/drivers/net/bnx2x/ |
| H A D | ecore_init.h | 202 #define ECORE_PF_Q_NUM(q_num, port, vnic)\ argument 203 ((((port) << 1) | (vnic)) * 16 + (q_num)) 215 uint32_t reg_addr, reg_bit_map, vnic; in ecore_map_q_cos() local 227 for (vnic = 0; vnic < num_vnics; vnic++) { in ecore_map_q_cos() 340 uint32_t vnic; in ecore_init_max() local 360 for (vnic = 0; vnic < ECORE_PORT2_MODE_NUM_VNICS; vnic++) { in ecore_init_max() 363 input_data->vnic_max_rate[vnic]; in ecore_init_max() 427 for (vnic = 0; vnic < ECORE_PORT2_MODE_NUM_VNICS; vnic++) in ecore_init_min() 433 for (vnic = 0; vnic < ECORE_PORT2_MODE_NUM_VNICS; vnic++) { in ecore_init_min() 457 uint32_t vnic, cos; in ecore_init_fw_wrr() local [all …]
|
| H A D | bnx2x.c | 5471 vnic.vnic_max_rate[vn]); in storm_memset_cmng() 5478 vnic.vnic_min_rate[vn]); in storm_memset_cmng() 7908 uint8_t i, vnic; in bnx2x_get_mf_cfg_info() local 8054 vnic = 0; in bnx2x_get_mf_cfg_info() 8058 mf_info->min_bw[vnic] = in bnx2x_get_mf_cfg_info() 8061 mf_info->max_bw[vnic] = in bnx2x_get_mf_cfg_info() 8064 vnic++; in bnx2x_get_mf_cfg_info()
|
| H A D | ecore_hsi.h | 5632 struct cmng_vnic vnic; member
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | bnxt_tf_pmd_shim.c | 62 vnic = BNXT_GET_DEFAULT_VNIC(bp); in bnxt_rss_config_action_apply() 63 if (vnic == NULL) { in bnxt_rss_config_action_apply() 84 if (vnic->rx_queue_cnt > 1) { in bnxt_rss_config_action_apply() 85 vnic->hash_type = hwrm_type; in bnxt_rss_config_action_apply() 86 vnic->hash_mode = in bnxt_rss_config_action_apply() 223 return bp->parent->vnic; in bnxt_pmd_get_parent_vnic_id() 230 struct bnxt_vnic_info *vnic; in bnxt_pmd_get_vnic_id() local 249 return vnic->fw_vnic_id; in bnxt_pmd_get_vnic_id() 351 struct bnxt_vnic_info *vnic; in bnxt_pmd_set_unicast_rxmask() local 368 old_flags = vnic->flags; in bnxt_pmd_set_unicast_rxmask() [all …]
|
| H A D | ulp_port_db.c | 402 uint16_t *vnic) in ulp_port_db_default_vnic_get() argument 415 *vnic = port_db->ulp_func_id_tbl[func_id].func_vnic; in ulp_port_db_default_vnic_get() 418 *vnic = port_db->ulp_func_id_tbl[func_id].func_vnic; in ulp_port_db_default_vnic_get() 671 uint32_t port_id, uint8_t **vnic) in ulp_port_db_parent_vnic_get() argument 677 *vnic = (uint8_t *)&info->func_parent_vnic; in ulp_port_db_parent_vnic_get()
|
| H A D | ulp_port_db.h | 197 uint16_t *vnic); 315 uint32_t port_id, uint8_t **vnic);
|
| H A D | ulp_def_rules.c | 117 uint16_t vnic; in ulp_set_vnic_in_comp_fld() local 121 rc = ulp_port_db_default_vnic_get(ulp_ctx, ifindex, vnic_type, &vnic); in ulp_set_vnic_in_comp_fld() 130 ULP_COMP_FLD_IDX_WR(mapper_params, idx, vnic); in ulp_set_vnic_in_comp_fld()
|
| /dpdk/drivers/net/thunderx/base/ |
| H A D | nicvf_hw_defs.h | 1129 uint64_t vnic:7; member 1131 uint64_t vnic:7;
|
| H A D | nicvf_hw.c | 227 pf_qs_cfg.vnic = nic->vf_id; in nicvf_qset_config_internal()
|
| /dpdk/doc/guides/nics/ |
| H A D | enic.rst | 40 scatter, a pair of RQs on the vnic is needed for each receive
|