| /dpdk/app/test/ |
| H A D | test_table_tables.c | 143 void *table; in test_table_stub() local 148 if (table == NULL) in test_table_stub() 177 void *table; in test_table_array() local 190 if (table != NULL) in test_table_array() 196 if (table != NULL) in test_table_array() 202 if (table != NULL) in test_table_array() 293 void *table; in test_table_lpm() local 459 void *table; in test_table_lpm_ipv6() local 637 void *table; in test_table_hash_lru_generic() local 740 void *table; in test_table_hash_ext_generic() local [all …]
|
| /dpdk/lib/pipeline/ |
| H A D | rte_swx_ctl.c | 190 struct table *table = &ctl->tables[i]; in table_find() local 294 table_entry_alloc(struct table *table) in table_entry_alloc() argument 498 table_entry_keycmp(struct table *table, in table_entry_keycmp() argument 542 table_entries_free(struct table *table) in table_entries_free() argument 736 struct table *table = &ctl->tables[i]; in table_free() local 1457 struct table *table; in rte_swx_ctl_pipeline_table_entry_add() local 1571 struct table *table; in rte_swx_ctl_pipeline_table_entry_delete() local 1661 struct table *table; in rte_swx_ctl_pipeline_table_default_entry_add() local 2619 struct table *table; in rte_swx_ctl_pipeline_table_entry_read() local 2963 struct table *table, in table_entry_printf() argument [all …]
|
| H A D | rte_pipeline.c | 389 table->ops.f_free(table->h_table); in rte_pipeline_table_free() 438 memcpy(table->default_entry, default_entry, table->entry_size); in rte_pipeline_table_default_entry_add() 468 memcpy(entry, table->default_entry, table->entry_size); in rte_pipeline_table_default_entry_delete() 471 memset(table->default_entry, 0, table->entry_size); in rte_pipeline_table_default_entry_delete() 534 return (table->ops.f_add)(table->h_table, key, (void *) entry, in rte_pipeline_table_entry_add() 574 return (table->ops.f_delete)(table->h_table, key, key_found, entry); in rte_pipeline_table_entry_delete() 639 return (table->ops.f_add_bulk)(table->h_table, keys, (void **) entries, in rte_pipeline_table_entry_add_bulk() 1346 table->ops.f_lookup(table->h_table, p->pkts, p->pkts_mask, in rte_pipeline_run() 1363 table->arg_ah); in rte_pipeline_run() 1397 table->arg_ah); in rte_pipeline_run() [all …]
|
| /dpdk/lib/efd/ |
| H A D | rte_efd.c | 30 #define EFD_KEY(key_idx, table) (table->keys + ((key_idx) * table->key_len)) argument 547 table = NULL; in rte_efd_create() 565 if (table == NULL) { in rte_efd_create() 584 table->max_num_rules * table->key_len, in rte_efd_create() 594 strlcpy(table->name, name, sizeof(table->name)); in rte_efd_create() 707 return table; in rte_efd_create() 712 rte_efd_free(table); in rte_efd_create() 740 return table; in rte_efd_find_existing() 750 if (table == NULL) in rte_efd_free() 771 rte_free(table); in rte_efd_free() [all …]
|
| /dpdk/examples/ip_pipeline/examples/ |
| H A D | route_ecmp.cli | 23 table action profile APNH ipv4 offset 270 fwd encap ether 39 pipeline PIPELINE0 table match array offset 256 size 64K action APNH 41 pipeline PIPELINE0 port in 0 table 0 42 pipeline PIPELINE0 port in 1 table 0 43 pipeline PIPELINE0 port in 2 table 0 44 pipeline PIPELINE0 port in 3 table 0 48 pipeline PIPELINE0 table 0 rule add match default action fwd port 4 49 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.0.0.0 10 action fwd table 1 balance 0 0 0 0 … 50 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.64.0.0 10 action fwd table 1 balance 1 1 1 1… 51 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.128.0.0 10 action fwd table 1 balance 2 2 2 … [all …]
|
| H A D | rss.cli | 63 pipeline PIPELINE0 table match stub 64 pipeline PIPELINE0 port in 0 table 0 65 pipeline PIPELINE0 port in 1 table 0 66 pipeline PIPELINE0 port in 2 table 0 67 pipeline PIPELINE0 port in 3 table 0 76 pipeline PIPELINE1 table match stub 77 pipeline PIPELINE1 port in 0 table 0 78 pipeline PIPELINE1 port in 1 table 0 79 pipeline PIPELINE1 port in 2 table 0 89 pipeline PIPELINE2 table match stub [all …]
|
| H A D | l2fwd.cli | 36 pipeline PIPELINE0 table match stub 37 pipeline PIPELINE0 table match stub 38 pipeline PIPELINE0 table match stub 39 pipeline PIPELINE0 table match stub 41 pipeline PIPELINE0 port in 0 table 0 42 pipeline PIPELINE0 port in 1 table 1 43 pipeline PIPELINE0 port in 2 table 2 44 pipeline PIPELINE0 port in 3 table 3 48 pipeline PIPELINE0 table 0 rule add match default action fwd port 1 49 pipeline PIPELINE0 table 1 rule add match default action fwd port 0 [all …]
|
| H A D | tap.cli | 37 table action profile AP0 ipv4 offset 270 fwd 51 pipeline PIPELINE0 table match stub action AP0 52 pipeline PIPELINE0 table match stub action AP0 53 pipeline PIPELINE0 table match stub action AP0 54 pipeline PIPELINE0 table match stub action AP0 56 pipeline PIPELINE0 port in 0 table 0 57 pipeline PIPELINE0 port in 1 table 1 58 pipeline PIPELINE0 port in 2 table 2 59 pipeline PIPELINE0 port in 3 table 3 63 pipeline PIPELINE0 table 0 rule add match default action fwd port 0 [all …]
|
| H A D | kni.cli | 40 table action profile AP0 ipv4 offset 270 fwd 54 pipeline PIPELINE0 table match stub action AP0 55 pipeline PIPELINE0 table match stub action AP0 56 pipeline PIPELINE0 table match stub action AP0 57 pipeline PIPELINE0 table match stub action AP0 59 pipeline PIPELINE0 port in 0 table 0 60 pipeline PIPELINE0 port in 1 table 1 61 pipeline PIPELINE0 port in 2 table 2 62 pipeline PIPELINE0 port in 3 table 3 66 pipeline PIPELINE0 table 0 rule add match default action fwd port 0 [all …]
|
| H A D | firewall.cli | 32 table action profile AP0 ipv4 offset 270 fwd 46 pipeline PIPELINE0 table match acl ipv4 offset 270 size 4K action AP0 48 pipeline PIPELINE0 port in 0 table 0 49 pipeline PIPELINE0 port in 1 table 0 50 pipeline PIPELINE0 port in 2 table 0 51 pipeline PIPELINE0 port in 3 table 0 55 pipeline PIPELINE0 table 0 rule add match default action fwd drop 56 pipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.0.0.0 10 0 65535 0 6553… 57 pipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.64.0.0 10 0 65535 0 655… 58 pipeline PIPELINE0 table 0 rule add match acl priority 0 ipv4 0.0.0.0 0 100.128.0.0 10 0 65535 0 65… [all …]
|
| H A D | flow.cli | 32 table action profile AP0 ipv4 offset 270 fwd 47 pipeline PIPELINE0 table match hash ext key 16 mask 00FF0000FFFFFFFFFFFFFFFFFFFFFFFF offset 278 buc… 49 pipeline PIPELINE0 port in 0 table 0 50 pipeline PIPELINE0 port in 1 table 0 51 pipeline PIPELINE0 port in 2 table 0 52 pipeline PIPELINE0 port in 3 table 0 56 pipeline PIPELINE0 table 0 rule add match default action fwd port 4 57 pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.10 200.0.0.10 100 200 6 action f… 58 pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.11 200.0.0.11 101 201 6 action f… 59 pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.12 200.0.0.12 102 202 6 action f… [all …]
|
| H A D | flow_crypto.cli | 30 table action profile AP0 ipv4 offset 270 fwd sym_crypto dev CRYPTO0 offset 1792 31 table action profile AP1 ipv4 offset 270 fwd 42 pipeline PIPELINE0 table match hash ext key 8 mask FFFFFFFF00000000 offset 282 buckets 1K size 4K a… 43 pipeline PIPELINE0 table match stub action AP1 45 pipeline PIPELINE0 port in 0 table 0 46 pipeline PIPELINE0 port in 1 table 1 50 pipeline PIPELINE0 table 0 rule add match default action fwd port 2 53 pipeline PIPELINE0 table 0 rule add match hash ipv4_addr 100.0.0.10 action fwd port 0 sym_crypto en… 55 #pipeline PIPELINE0 table 0 rule add match hash ipv4_addr 100.0.0.10 action fwd port 0 sym_crypto d… 57 pipeline PIPELINE0 table 1 rule add match default action fwd port 1
|
| H A D | route.cli | 32 table action profile AP0 ipv4 offset 270 fwd encap ether 47 pipeline PIPELINE0 table match lpm ipv4 offset 286 size 4K action AP0 49 pipeline PIPELINE0 port in 0 table 0 50 pipeline PIPELINE0 port in 1 table 0 51 pipeline PIPELINE0 port in 2 table 0 52 pipeline PIPELINE0 port in 3 table 0 56 pipeline PIPELINE0 table 0 rule add match default action fwd port 4 57 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.0.0.0 10 action fwd port 0 encap ether a0:a1… 58 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.64.0.0 10 action fwd port 1 encap ether b0:b… 59 pipeline PIPELINE0 table 0 rule add match lpm ipv4 100.128.0.0 10 action fwd port 2 encap ether c0:… [all …]
|
| /dpdk/lib/table/ |
| H A D | rte_table_array.c | 16 #define RTE_TABLE_ARRAY_STATS_PKTS_IN_ADD(table, val) \ argument 17 table->stats.n_pkts_in += val 19 table->stats.n_pkts_lookup_miss += val 23 #define RTE_TABLE_ARRAY_STATS_PKTS_IN_ADD(table, val) argument 80 rte_table_array_free(void *table) in rte_table_array_free() argument 82 struct rte_table_array *t = table; in rte_table_array_free() 98 void *table, in rte_table_array_entry_add() argument 104 struct rte_table_array *t = table; in rte_table_array_entry_add() 109 if (table == NULL) { in rte_table_array_entry_add() 142 void *table, in rte_table_array_lookup() argument [all …]
|
| H A D | rte_table_stub.c | 13 #define RTE_TABLE_LPM_STATS_PKTS_IN_ADD(table, val) \ argument 14 table->stats.n_pkts_in += val 15 #define RTE_TABLE_LPM_STATS_PKTS_LOOKUP_MISS(table, val) \ argument 16 table->stats.n_pkts_lookup_miss += val 20 #define RTE_TABLE_LPM_STATS_PKTS_IN_ADD(table, val) argument 21 #define RTE_TABLE_LPM_STATS_PKTS_LOOKUP_MISS(table, val) argument 52 __rte_unused void *table, in rte_table_stub_lookup() argument 58 __rte_unused struct rte_table_stub *stub = (struct rte_table_stub *) table; in rte_table_stub_lookup() 69 rte_table_stub_stats_read(void *table, struct rte_table_stats *stats, int clear) in rte_table_stub_stats_read() argument 71 struct rte_table_stub *t = table; in rte_table_stub_stats_read()
|
| H A D | rte_table_hash_cuckoo.c | 16 (table->stats.n_pkts_in += val) 18 (table->stats.n_pkts_lookup_miss += val) 141 rte_table_hash_cuckoo_free(void *table) { in rte_table_hash_cuckoo_free() argument 142 struct rte_table_hash *t = table; in rte_table_hash_cuckoo_free() 144 if (table == NULL) in rte_table_hash_cuckoo_free() 157 struct rte_table_hash *t = table; in rte_table_hash_cuckoo_entry_add() 161 if ((table == NULL) || in rte_table_hash_cuckoo_entry_add() 204 struct rte_table_hash *t = table; in rte_table_hash_cuckoo_entry_delete() 208 if ((table == NULL) || in rte_table_hash_cuckoo_entry_delete() 236 struct rte_table_hash *t = table; in rte_table_hash_cuckoo_lookup() [all …]
|
| H A D | rte_table.h | 63 typedef int (*rte_table_op_free)(void *table); 93 void *table, 122 void *table, 157 void *table, 192 void *table, 232 void *table, 252 void *table,
|
| H A D | rte_table_lpm_ipv6.c | 20 table->stats.n_pkts_in += val 22 table->stats.n_pkts_lookup_miss += val 26 #define RTE_TABLE_LPM_IPV6_STATS_PKTS_IN_ADD(table, val) argument 121 rte_table_lpm_ipv6_free(void *table) in rte_table_lpm_ipv6_free() argument 123 struct rte_table_lpm_ipv6 *lpm = table; in rte_table_lpm_ipv6_free() 173 void *table, in rte_table_lpm_ipv6_entry_add() argument 179 struct rte_table_lpm_ipv6 *lpm = table; in rte_table_lpm_ipv6_entry_add() 242 void *table, in rte_table_lpm_ipv6_entry_delete() argument 247 struct rte_table_lpm_ipv6 *lpm = table; in rte_table_lpm_ipv6_entry_delete() 303 void *table, in rte_table_lpm_ipv6_lookup() argument [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | test_pipeline.rst | 8 Its purpose is to demonstrate the performance of single-table DPDK pipelines. 17 * Core B ("Pipeline core") implements a single-table DPDK pipeline 20 processes it according to the actions configured in the table entries that 58 :numref:`table_test_pipeline_1` describes the table types used and how they are populated. 75 .. table:: Table Types 86 …| 2 | stub | Stub table. Core B is implementing the same pass-through | N/A … 111 …[spec]-8-ext | Extendable bucket hash table with 8-byte key size | Same as hash-[spec]… 134 …spec]-16-ext | Extendable bucket hash table with 16-byte key size | Same as hash-[spec]-… 157 …spec]-32-ext | Extendable bucket hash table with 32-byte key size | Same as hash-[spec]-… 228 Regardless of the table type used for the core B pipeline, [all …]
|
| H A D | ip_pipeline.rst | 329 Create action profile for the pipeline table :: 331 table action profile <profile_name> 385 Create pipeline table :: 387 pipeline <pipeline_name> table 410 Connect pipeline input port to table :: 415 or table :: 439 | table <table_id> 441 Add rule to table for specific pipeline instance :: 466 | table <table_id> 513 Delete table rule for specific pipeline instance :: [all …]
|
| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_nsp_eth.c | 226 table->max_index = RTE_MAX(table->max_index, in nfp_eth_calc_port_geometry() 227 table->ports[i].index); in nfp_eth_calc_port_geometry() 233 table->ports[i].port_lanes += table->ports[j].lanes; in nfp_eth_calc_port_geometry() 243 table->ports[i].is_split = 1; in nfp_eth_calc_port_geometry() 266 struct nfp_eth_table *table; in __nfp_eth_read_ports() local 296 table = malloc(table_sz); in __nfp_eth_read_ports() 297 if (!table) in __nfp_eth_read_ports() 300 memset(table, 0, table_sz); in __nfp_eth_read_ports() 301 table->count = cnt; in __nfp_eth_read_ports() 305 &table->ports[j++]); in __nfp_eth_read_ports() [all …]
|
| /dpdk/examples/ip_pipeline/ |
| H A D | pipeline.h | 156 struct table { struct 170 struct table table[RTE_PIPELINE_TABLE_MAX]; member 406 table_rule_find(struct table *table, 410 table_rule_add(struct table *table, 414 table_rule_add_bulk(struct table *table, 419 table_rule_delete(struct table *table, 423 table_rule_default_add(struct table *table, 427 table_rule_default_delete(struct table *table);
|
| /dpdk/examples/pipeline/examples/ |
| H A D | selector.spec | 4 ; A selector table is made out of groups of weighted members, with a given member potentially part 11 ; Normally, an action selector FIB is built with a routing table (the base table), a selector table 12 ; (the group table) and a next hop table (the member table). One of the routing table actions sets 13 ; up the group ID meta-data field used as the index into the group table, which produces the member 14 ; ID meta-data field, i.e. the next hop ID that is used as the index into the next hop table. The 22 ; In this simple example, the base table and the member table are striped out in order to focus 23 ; exclusively on illustrating the selector table. The group_id is read from the destination MAC 25 ; destination IP address fields. The member_id produced by the selector table is used to identify 91 table s
|
| /dpdk/lib/flow_classify/ |
| H A D | rte_flow_classify.c | 294 if (table->ops.f_free != NULL) in rte_flow_classify_table_free() 295 table->ops.f_free(table->h_table); in rte_flow_classify_table_free() 374 struct rte_cls_table *table; in rte_flow_classify_table_create() local 398 table->type = params->type; in rte_flow_classify_table_create() 405 table->entry_size = entry_size; in rte_flow_classify_table_create() 406 table->h_table = h_table; in rte_flow_classify_table_create() 538 ret = table->ops.f_add( in rte_flow_classify_table_entry_add() 539 table->h_table, in rte_flow_classify_table_entry_add() 575 ret = table->ops.f_delete(table->h_table, in rte_flow_classify_table_entry_delete() 590 struct rte_cls_table *table, in flow_classifier_lookup() argument [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_filter.c | 1683 table->eft_encap_filter_count = 0; in ef10_filter_insert_encap_filters() 1700 table->eft_default_rxq); in ef10_filter_insert_encap_filters() 1716 table->eft_encap_filter_count++; in ef10_filter_insert_encap_filters() 1804 table->eft_encap_filter_count = 0; in ef10_filter_remove_all_existing_filters() 2008 if (table->eft_using_rss) 2124 *erpp = table->eft_default_rxq; in ef10_filter_get_default_rxq() 2140 table->eft_using_rss = using_rss; in ef10_filter_default_rxq_set() 2143 table->eft_using_rss = B_FALSE; in ef10_filter_default_rxq_set() 2145 table->eft_default_rxq = erp; in ef10_filter_default_rxq_set() 2154 table->eft_default_rxq = NULL; in ef10_filter_default_rxq_clear() [all …]
|