| /dpdk/lib/gro/ |
| H A D | gro_udp4.c | 16 struct gro_udp4_tbl *tbl; in gro_udp4_tbl_create() local 30 if (tbl == NULL) in gro_udp4_tbl_create() 38 if (tbl->items == NULL) { in gro_udp4_tbl_create() 39 rte_free(tbl); in gro_udp4_tbl_create() 50 rte_free(tbl->items); in gro_udp4_tbl_create() 51 rte_free(tbl); in gro_udp4_tbl_create() 59 return tbl; in gro_udp4_tbl_create() 119 tbl->item_num++; in insert_new_item() 139 tbl->item_num--; in delete_item() 167 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_tcp4.c | 16 struct gro_tcp4_tbl *tbl; in gro_tcp4_tbl_create() local 30 if (tbl == NULL) in gro_tcp4_tbl_create() 38 if (tbl->items == NULL) { in gro_tcp4_tbl_create() 39 rte_free(tbl); in gro_tcp4_tbl_create() 50 rte_free(tbl->items); in gro_tcp4_tbl_create() 51 rte_free(tbl); in gro_tcp4_tbl_create() 59 return tbl; in gro_tcp4_tbl_create() 121 tbl->item_num++; in insert_new_item() 141 tbl->item_num--; in delete_item() 171 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_vxlan_udp4.c | 31 if (tbl == NULL) in gro_vxlan_udp4_tbl_create() 39 if (tbl->items == NULL) { in gro_vxlan_udp4_tbl_create() 40 rte_free(tbl); in gro_vxlan_udp4_tbl_create() 50 if (tbl->flows == NULL) { in gro_vxlan_udp4_tbl_create() 51 rte_free(tbl->items); in gro_vxlan_udp4_tbl_create() 52 rte_free(tbl); in gro_vxlan_udp4_tbl_create() 60 return tbl; in gro_vxlan_udp4_tbl_create() 118 tbl->item_num++; in insert_new_item() 139 tbl->item_num--; in delete_item() 177 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_vxlan_tcp4.c | 31 if (tbl == NULL) in gro_vxlan_tcp4_tbl_create() 39 if (tbl->items == NULL) { in gro_vxlan_tcp4_tbl_create() 40 rte_free(tbl); in gro_vxlan_tcp4_tbl_create() 50 if (tbl->flows == NULL) { in gro_vxlan_tcp4_tbl_create() 51 rte_free(tbl->items); in gro_vxlan_tcp4_tbl_create() 52 rte_free(tbl); in gro_vxlan_tcp4_tbl_create() 60 return tbl; in gro_vxlan_tcp4_tbl_create() 124 tbl->item_num++; in insert_new_item() 145 tbl->item_num--; in delete_item() 186 tbl->flow_num++; in insert_new_flow() [all …]
|
| H A D | gro_vxlan_udp4.h | 91 void gro_vxlan_udp4_tbl_destroy(void *tbl); 116 struct gro_vxlan_udp4_tbl *tbl, 137 uint16_t gro_vxlan_udp4_tbl_timeout_flush(struct gro_vxlan_udp4_tbl *tbl, 152 uint32_t gro_vxlan_udp4_tbl_pkt_count(void *tbl);
|
| /dpdk/lib/ip_frag/ |
| H A D | rte_ip_frag_common.c | 59 sz = sizeof (*tbl) + nb_entries * sizeof (tbl->pkt[0]); in rte_ip_frag_table_create() 76 tbl->entry_mask = (tbl->nb_entries - 1) & ~(tbl->bucket_entries - 1); in rte_ip_frag_table_create() 78 TAILQ_INIT(&(tbl->lru)); in rte_ip_frag_table_create() 79 return tbl; in rte_ip_frag_table_create() 92 rte_free(tbl); in rte_ip_frag_table_destroy() 113 tbl->max_entries, in rte_ip_frag_table_statistics_dump() 114 tbl->use_entries, in rte_ip_frag_table_statistics_dump() 115 tbl->stat.find_num, in rte_ip_frag_table_statistics_dump() 116 tbl->stat.add_num, in rte_ip_frag_table_statistics_dump() 117 tbl->stat.del_num, in rte_ip_frag_table_statistics_dump() [all …]
|
| H A D | ip_frag_internal.c | 14 #define IP_FRAG_TBL_POS(tbl, sig) \ argument 15 ((tbl)->pkt + ((sig) & (tbl)->entry_mask)) 24 tbl->use_entries++; in ip_frag_tbl_add() 251 tbl->max_entries <= tbl->use_entries) { in ip_frag_find() 279 tbl->last = pkt; in ip_frag_find() 299 if (tbl->last != NULL && ip_frag_key_cmp(key, &tbl->last->key) == 0) in ip_frag_lookup() 300 return tbl->last; in ip_frag_lookup() 318 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() 327 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() 344 tbl, tbl->max_entries, tbl->use_entries, in ip_frag_lookup() [all …]
|
| H A D | rte_ipv4_reassembly.c | 98 rte_ipv4_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, in rte_ipv4_frag_reassemble_packet() argument 130 tbl, tbl->max_cycles, tbl->entry_mask, tbl->max_entries, in rte_ipv4_frag_reassemble_packet() 131 tbl->use_entries); in rte_ipv4_frag_reassemble_packet() 143 if ((fp = ip_frag_find(tbl, dr, &key, tms)) == NULL) { in rte_ipv4_frag_reassemble_packet() 153 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv4_frag_reassemble_packet() 160 ip_frag_inuse(tbl, fp); in rte_ipv4_frag_reassemble_packet() 168 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv4_frag_reassemble_packet()
|
| H A D | rte_ipv6_reassembly.c | 137 rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, in rte_ipv6_frag_reassemble_packet() argument 173 tbl, tbl->max_cycles, tbl->entry_mask, tbl->max_entries, in rte_ipv6_frag_reassemble_packet() 174 tbl->use_entries); in rte_ipv6_frag_reassemble_packet() 186 fp = ip_frag_find(tbl, dr, &key, tms); in rte_ipv6_frag_reassemble_packet() 197 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv6_frag_reassemble_packet() 205 ip_frag_inuse(tbl, fp); in rte_ipv6_frag_reassemble_packet() 213 tbl, tbl->max_entries, tbl->use_entries, in rte_ipv6_frag_reassemble_packet()
|
| H A D | ip_frag_common.h | 40 struct ip_frag_pkt * ip_frag_find(struct rte_ip_frag_tbl *tbl, 44 struct ip_frag_pkt * ip_frag_lookup(struct rte_ip_frag_tbl *tbl, 128 ip_frag_inuse(struct rte_ip_frag_tbl *tbl, const struct ip_frag_pkt *fp) in ip_frag_inuse() argument 131 TAILQ_REMOVE(&tbl->lru, fp, lru); in ip_frag_inuse() 132 tbl->use_entries--; in ip_frag_inuse() 156 ip_frag_tbl_del(struct rte_ip_frag_tbl *tbl, struct rte_ip_frag_death_row *dr, in ip_frag_tbl_del() argument 161 TAILQ_REMOVE(&tbl->lru, fp, lru); in ip_frag_tbl_del() 162 tbl->use_entries--; in ip_frag_tbl_del() 163 IP_FRAG_TBL_STAT_UPDATE(&tbl->stat, del_num, 1); in ip_frag_tbl_del()
|
| H A D | rte_ip_frag.h | 74 rte_ip_frag_table_destroy(struct rte_ip_frag_tbl *tbl); 126 struct rte_mbuf *rte_ipv6_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, 200 struct rte_mbuf * rte_ipv4_frag_reassemble_packet(struct rte_ip_frag_tbl *tbl, 245 rte_ip_frag_table_statistics_dump(FILE * f, const struct rte_ip_frag_tbl *tbl); 259 rte_ip_frag_table_del_expired_entries(struct rte_ip_frag_tbl *tbl,
|
| /dpdk/lib/lpm/ |
| H A D | rte_lpm_sse.h | 23 uint32_t tbl[4]; in rte_lpm_lookupx4() local 55 tbl[0] = *ptbl; in rte_lpm_lookupx4() 57 tbl[1] = *ptbl; in rte_lpm_lookupx4() 62 tbl[2] = *ptbl; in rte_lpm_lookupx4() 64 tbl[3] = *ptbl; in rte_lpm_lookupx4() 87 tbl[0] = *ptbl; in rte_lpm_lookupx4() 94 tbl[1] = *ptbl; in rte_lpm_lookupx4() 101 tbl[2] = *ptbl; in rte_lpm_lookupx4() 108 tbl[3] = *ptbl; in rte_lpm_lookupx4() 111 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm_neon.h | 24 uint32_t tbl[4]; in rte_lpm_lookupx4() local 54 tbl[0] = *ptbl; in rte_lpm_lookupx4() 56 tbl[1] = *ptbl; in rte_lpm_lookupx4() 61 tbl[2] = *ptbl; in rte_lpm_lookupx4() 63 tbl[3] = *ptbl; in rte_lpm_lookupx4() 86 tbl[0] = *ptbl; in rte_lpm_lookupx4() 93 tbl[1] = *ptbl; in rte_lpm_lookupx4() 100 tbl[2] = *ptbl; in rte_lpm_lookupx4() 107 tbl[3] = *ptbl; in rte_lpm_lookupx4() 110 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm_altivec.h | 24 uint32_t tbl[4]; in rte_lpm_lookupx4() local 55 tbl[0] = *ptbl; in rte_lpm_lookupx4() 60 tbl[1] = *ptbl; in rte_lpm_lookupx4() 65 tbl[2] = *ptbl; in rte_lpm_lookupx4() 70 tbl[3] = *ptbl; in rte_lpm_lookupx4() 93 tbl[0] = *ptbl; in rte_lpm_lookupx4() 100 tbl[1] = *ptbl; in rte_lpm_lookupx4() 107 tbl[2] = *ptbl; in rte_lpm_lookupx4() 114 tbl[3] = *ptbl; in rte_lpm_lookupx4() 117 hop[0] = (tbl[0] & RTE_LPM_LOOKUP_SUCCESS) ? tbl[0] & 0x00FFFFFF : defv; in rte_lpm_lookupx4() [all …]
|
| H A D | rte_lpm6.c | 619 if (tbl[entry_ind].valid == 0 || tbl[entry_ind].ext_entry == 0) { in simulate_add_step() 676 if (!tbl[i].valid || (tbl[i].ext_entry == 0 && in add_step() 687 tbl[i] = new_tbl_entry; in add_step() 835 tbl = tbl_next; in simulate_add() 883 tbl = lpm->tbl24; in rte_lpm6_add() 894 tbl = tbl_next; in rte_lpm6_add() 963 tbl = tbl_next; in rte_lpm6_lookup() 1002 tbl = tbl_next; in rte_lpm6_lookup_bulk_func() 1214 tbl += ip[byte]; in rule_find_range() 1226 *from = &tbl[ind]; in rule_find_range() [all …]
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_mapper.c | 657 tbl->fdb_operand); in ulp_mapper_fdb_opc_alloc_rid() 690 tbl->fdb_operand); in ulp_mapper_fdb_opc_process() 733 tbl->pri_opcode); in ulp_mapper_priority_opc_process() 2025 tbl->tbl_opcode); in ulp_mapper_tcam_tbl_process() 2225 tbl->resource_type, tbl->direction, idx); in ulp_mapper_tcam_tbl_process() 2499 tbl->direction, in ulp_mapper_index_tbl_process() 2500 tbl->tbl_operand, in ulp_mapper_index_tbl_process() 2561 tbl->tbl_opcode); in ulp_mapper_index_tbl_process() 2568 tbl, in ulp_mapper_index_tbl_process() 2869 tbl->resource_sub_type, tbl->direction); in ulp_mapper_gen_tbl_process() [all …]
|
| H A D | ulp_gen_tbl.c | 34 struct bnxt_ulp_generic_tbl_params *tbl; in ulp_mapper_generic_tbl_list_init() local 41 tbl = ulp_mapper_gen_tbl_params_get(idx); in ulp_mapper_generic_tbl_list_init() 42 if (!tbl) { in ulp_mapper_generic_tbl_list_init() 48 if (tbl->result_num_entries != 0) { in ulp_mapper_generic_tbl_list_init() 50 entry->gen_tbl_name = tbl->name; in ulp_mapper_generic_tbl_list_init() 61 tbl->name, idx); in ulp_mapper_generic_tbl_list_init() 74 tbl->name, idx); in ulp_mapper_generic_tbl_list_init() 77 if (tbl->hash_tbl_entries) { in ulp_mapper_generic_tbl_list_init() 78 cparams.key_size = tbl->key_num_bytes; in ulp_mapper_generic_tbl_list_init() 79 cparams.num_buckets = tbl->num_buckets; in ulp_mapper_generic_tbl_list_init() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_em_host.c | 76 tp = &tbl->pg_tbl[i]; in tf_em_free_page_table() 86 tbl->l0_addr = NULL; in tf_em_free_page_table() 87 tbl->l0_dma_addr = 0; in tf_em_free_page_table() 88 tbl->num_lvl = 0; in tf_em_free_page_table() 176 tp = &tbl->pg_tbl[i]; in tf_em_alloc_page_table() 179 tbl->page_cnt[i], in tf_em_alloc_page_table() 271 tbl->l0_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_va_tbl[0]; in tf_em_setup_page_table() 272 tbl->l0_dma_addr = tbl->pg_tbl[TF_PT_LVL_0].pg_pa_tbl[0]; in tf_em_setup_page_table() 299 if (tbl->num_entries != 0 && tbl->entry_size != 0) { in tf_em_ctx_unreg() 335 if (tbl->num_entries && tbl->entry_size) { in tf_em_ctx_reg() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 847 if (!tbl) { in mlx5_l3t_create() 877 return tbl; in mlx5_l3t_create() 886 if (!tbl) in mlx5_l3t_destroy() 888 g_tbl = tbl->tbl; in mlx5_l3t_destroy() 913 mlx5_free(tbl->tbl); in mlx5_l3t_destroy() 914 tbl->tbl = 0; in mlx5_l3t_destroy() 932 g_tbl = tbl->tbl; in __l3t_get_entry() 997 g_tbl = tbl->tbl; in mlx5_l3t_clear_entry() 1056 tbl->tbl = 0; in mlx5_l3t_clear_entry() 1078 g_tbl = tbl->tbl; in __l3t_set_entry() [all …]
|
| H A D | mlx5_utils.h | 117 void *tbl[]; /* Table array. */ member 165 struct mlx5_l3t_level_tbl *tbl; /* Global table index. */ member 440 void mlx5_l3t_destroy(struct mlx5_l3t_tbl *tbl); 507 if (!tbl) in mlx5_l3t_get_next() 509 g_tbl = tbl->tbl; in mlx5_l3t_get_next() 516 m_tbl = g_tbl->tbl[i]; in mlx5_l3t_get_next() 524 if (!m_tbl->tbl[j]) { in mlx5_l3t_get_next() 532 e_tbl = m_tbl->tbl[j]; in mlx5_l3t_get_next() 533 switch (tbl->type) { in mlx5_l3t_get_next() 655 #define MLX5_L3T_FOREACH(tbl, idx, entry) \ argument [all …]
|
| H A D | mlx5_flow_hw.c | 1471 if (!tbl) in flow_hw_table_create() 1475 if (!tbl->flow) in flow_hw_table_create() 1482 tbl->grp = grp; in flow_hw_table_create() 1501 (tbl->grp->tbl, mt, nb_item_templates, &matcher_attr); in flow_hw_table_create() 1530 return tbl; in flow_hw_table_create() 1545 if (tbl) { in flow_hw_table_create() 1546 if (tbl->grp) in flow_hw_table_create() 1549 if (tbl->flow) in flow_hw_table_create() 1864 if (!tbl) in flow_hw_grp_create_cb() 1866 grp_data->tbl = tbl; in flow_hw_grp_create_cb() [all …]
|
| /dpdk/drivers/net/ice/base/ |
| H A D | ice_acl_ctrl.c | 149 struct ice_acl_tbl *tbl; in ice_acl_init_tbl() local 153 tbl = hw->acl_tbl; in ice_acl_init_tbl() 154 if (!tbl) in ice_acl_init_tbl() 161 idx = tbl->first_entry; in ice_acl_init_tbl() 163 (tcam_idx == tbl->last_tcam && idx <= tbl->last_entry)) { in ice_acl_init_tbl() 185 end = tbl->last_entry; in ice_acl_init_tbl() 367 tbl = (struct ice_acl_tbl *)ice_malloc(hw, sizeof(*tbl)); in ice_acl_create_tbl() 368 if (!tbl) { in ice_acl_create_tbl() 383 tbl->info = *params; in ice_acl_create_tbl() 386 hw->acl_tbl = tbl; in ice_acl_create_tbl() [all …]
|
| H A D | ice_acl.c | 23 if (!tbl->act_pairs_per_entry) in ice_aq_alloc_acl_tbl() 26 if (tbl->act_pairs_per_entry > ICE_AQC_MAX_ACTION_MEMORIES) in ice_aq_alloc_acl_tbl() 33 if (tbl->concurr) { in ice_aq_alloc_acl_tbl() 34 if (!tbl->num_dependent_alloc_ids) in ice_aq_alloc_acl_tbl() 36 if (tbl->num_dependent_alloc_ids > in ice_aq_alloc_acl_tbl() 45 cmd->table_width = CPU_TO_LE16(tbl->width * BITS_PER_BYTE); in ice_aq_alloc_acl_tbl() 46 cmd->table_depth = CPU_TO_LE16(tbl->depth); in ice_aq_alloc_acl_tbl() 47 cmd->act_pairs_per_entry = tbl->act_pairs_per_entry; in ice_aq_alloc_acl_tbl() 48 if (tbl->concurr) in ice_aq_alloc_acl_tbl() 49 cmd->table_type = tbl->num_dependent_alloc_ids; in ice_aq_alloc_acl_tbl() [all …]
|
| /dpdk/app/test-sad/ |
| H A D | main.c | 192 &tbl[j].tuple.v6.dip); in parse_file() 195 &tbl[j].tuple.v4.dip); in parse_file() 200 &tbl[j].tuple.v6.sip); in parse_file() 203 &tbl[j].tuple.v4.sip); in parse_file() 268 tbl[i].rule_type = rule_type; in get_random_rules() 271 tbl[i].tuple.v4.spi = in get_random_rules() 276 tbl[i].tuple.v6.dip[j] = in get_random_rules() 278 tbl[i].tuple.v6.sip[j] = in get_random_rules() 291 memcpy(tbl[i].tuple.v6.dip, in get_random_rules() 294 memcpy(tbl[i].tuple.v6.sip, in get_random_rules() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_nix_bpf.c | 178 struct roc_nix_bpf_precolor *tbl) in nix_precolor_vlan_table_update() argument 184 for (i = 0; i < tbl->count; i++) in nix_precolor_vlan_table_update() 201 struct roc_nix_bpf_precolor *tbl) in nix_precolor_inner_dscp_table_update() argument 208 for (j = 0; i < tbl->count; i++, j++) in nix_precolor_inner_dscp_table_update() 221 struct roc_nix_bpf_precolor *tbl) in nix_precolor_outer_dscp_table_update() argument 228 for (j = 0; i < tbl->count; i++, j++) in nix_precolor_outer_dscp_table_update() 241 struct roc_nix_bpf_precolor *tbl) in nix_precolor_gen_table_update() argument 247 for (i = 0; i < tbl->count; i++) in nix_precolor_gen_table_update() 732 struct roc_nix_bpf_precolor *tbl) in roc_nix_bpf_pre_color_tbl_setup() argument 740 if (!tbl || !tbl->count) in roc_nix_bpf_pre_color_tbl_setup() [all …]
|