Home
last modified time | relevance | path

Searched refs:key_mask (Results 1 – 25 of 35) sorted by relevance

12

/f-stack/dpdk/lib/librte_table/
H A Drte_table_hash_key32.c76 uint64_t key_mask[4]; member
219 if (p->key_mask != NULL) { in rte_table_hash_create_key32_lru()
220 f->key_mask[0] = ((uint64_t *)p->key_mask)[0]; in rte_table_hash_create_key32_lru()
221 f->key_mask[1] = ((uint64_t *)p->key_mask)[1]; in rte_table_hash_create_key32_lru()
222 f->key_mask[2] = ((uint64_t *)p->key_mask)[2]; in rte_table_hash_create_key32_lru()
223 f->key_mask[3] = ((uint64_t *)p->key_mask)[3]; in rte_table_hash_create_key32_lru()
440 if (p->key_mask != NULL) { in rte_table_hash_create_key32_ext()
441 f->key_mask[0] = (((uint64_t *)p->key_mask)[0]); in rte_table_hash_create_key32_ext()
442 f->key_mask[1] = (((uint64_t *)p->key_mask)[1]); in rte_table_hash_create_key32_ext()
443 f->key_mask[2] = (((uint64_t *)p->key_mask)[2]); in rte_table_hash_create_key32_ext()
[all …]
H A Drte_table_hash_lru.c72 uint64_t *key_mask; member
242 if (p->key_mask == NULL) in rte_table_hash_lru_create()
243 memset(t->key_mask, 0xFF, p->key_size); in rte_table_hash_lru_create()
245 memcpy(t->key_mask, p->key_mask, p->key_size); in rte_table_hash_lru_create()
330 keycpy(bkt_key, key, t->key_mask, t->key_size); in rte_table_hash_lru_entry_add()
349 keycpy(bkt_key, key, t->key_mask, t->key_size); in rte_table_hash_lru_entry_add()
540 uint64_t *key_mask = f->key_mask; \
556 xor[0] = (pkt_key[0] & key_mask[0]) ^ bkt_key[0]; \
557 xor[1] = (pkt_key[1] & key_mask[1]) ^ bkt_key[1]; \
569 xor[0] = (pkt_key[0] & key_mask[0]) ^ bkt_key[0]; \
[all …]
H A Drte_table_hash_ext.c93 uint64_t *key_mask; member
269 if (p->key_mask == NULL) in rte_table_hash_ext_create()
270 memset(t->key_mask, 0xFF, p->key_size); in rte_table_hash_ext_create()
272 memcpy(t->key_mask, p->key_mask, p->key_size); in rte_table_hash_ext_create()
359 keycpy(bkt_key, key, t->key_mask, t->key_size); in rte_table_hash_ext_entry_add()
390 keycpy(bkt_key, key, t->key_mask, t->key_size); in rte_table_hash_ext_entry_add()
504 t->key_mask, t->key_size) == 0)) { in rte_table_hash_ext_lookup_unoptimized()
603 uint64_t *key_mask = f->key_mask; \
619 xor[0] = (pkt_key[0] & key_mask[0]) ^ bkt_key[0]; \
620 xor[1] = (pkt_key[1] & key_mask[1]) ^ bkt_key[1]; \
[all …]
H A Drte_table_hash_key16.c76 uint64_t key_mask[2]; member
215 if (p->key_mask != NULL) { in rte_table_hash_create_key16_lru()
216 f->key_mask[0] = ((uint64_t *)p->key_mask)[0]; in rte_table_hash_create_key16_lru()
217 f->key_mask[1] = ((uint64_t *)p->key_mask)[1]; in rte_table_hash_create_key16_lru()
219 f->key_mask[0] = 0xFFFFFFFFFFFFFFFFLLU; in rte_table_hash_create_key16_lru()
220 f->key_mask[1] = 0xFFFFFFFFFFFFFFFFLLU; in rte_table_hash_create_key16_lru()
294 keycpy(bucket_key, key, f->key_mask); in rte_table_hash_entry_add_key16_lru()
430 if (p->key_mask != NULL) { in rte_table_hash_create_key16_ext()
431 f->key_mask[0] = (((uint64_t *)p->key_mask)[0]); in rte_table_hash_create_key16_ext()
432 f->key_mask[1] = (((uint64_t *)p->key_mask)[1]); in rte_table_hash_create_key16_ext()
[all …]
H A Drte_table_hash_key8.c72 uint64_t key_mask; member
208 if (p->key_mask != NULL) in rte_table_hash_create_key8_lru()
209 f->key_mask = ((uint64_t *)p->key_mask)[0]; in rte_table_hash_create_key8_lru()
211 f->key_mask = 0xFFFFFFFFFFFFFFFFLLU; in rte_table_hash_create_key8_lru()
282 keycpy(&bucket->key[i], key, &f->key_mask); in rte_table_hash_entry_add_key8_lru()
294 keycpy(&bucket->key[pos], key, &f->key_mask); in rte_table_hash_entry_add_key8_lru()
417 if (p->key_mask != NULL) in rte_table_hash_create_key8_ext()
418 f->key_mask = ((uint64_t *)p->key_mask)[0]; in rte_table_hash_create_key8_ext()
420 f->key_mask = 0xFFFFFFFFFFFFFFFFLLU; in rte_table_hash_create_key8_ext()
515 keycpy(&bucket->key[0], key, &f->key_mask); in rte_table_hash_entry_add_key8_ext()
[all …]
H A Drte_swx_table_em.c91 uint64_t *m = key_mask; in hash()
259 uint8_t *key_mask; member
335 keycpy(bkt_key, input->key, t->key_mask, t->key_size); in bkt_key_install()
440 t->key_mask = &memory[key_mask_offset]; in __table_create()
448 t->params.key_mask0 = t->key_mask; in __table_create()
451 memset(t->key_mask, 0xFF, params->key_size); in __table_create()
453 memcpy(t->key_mask, params->key_mask0, params->key_size); in __table_create()
491 input_sig = hash(entry->key, t->key_mask, t->key_size, 0); in table_add()
551 input_sig = hash(entry->key, t->key_mask, t->key_size, 0); in table_del()
602 input_sig = hash(input_key, t->key_mask, t->key_size, 0); in table_lookup_unoptimized()
[all …]
H A Drte_table_hash.h58 void *key_mask,
74 uint8_t *key_mask; member
H A Drte_table_hash_cuckoo.h35 uint8_t *key_mask; member
H A Drte_swx_table.h83 uint8_t *key_mask; member
/f-stack/dpdk/lib/librte_pipeline/
H A Drte_port_in_action.c394 uint64_t *key_mask = (uint64_t *) cfg->key_mask; in ah_filter_on_match() local
406 uint64_t xor0 = (pkt_key[0] & key_mask[0]) ^ key[0]; in ah_filter_on_match()
407 uint64_t xor1 = (pkt_key[1] & key_mask[1]) ^ key[1]; in ah_filter_on_match()
428 uint64_t *key_mask = (uint64_t *) cfg->key_mask; in ah_filter_on_mismatch() local
440 uint64_t xor0 = (pkt_key[0] & key_mask[0]) ^ key[0]; in ah_filter_on_mismatch()
441 uint64_t xor1 = (pkt_key[1] & key_mask[1]) ^ key[1]; in ah_filter_on_mismatch()
474 cfg->key_mask, in ah_lb()
H A Drte_port_in_action.h83 uint8_t key_mask[RTE_PORT_IN_ACTION_FLTR_KEY_SIZE]; member
132 uint8_t key_mask[RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX]; member
H A Drte_swx_ctl.c120 uint8_t *key_mask = NULL; in table_params_get() local
153 key_mask = calloc(1, key_size); in table_params_get()
154 CHECK(key_mask, ENOMEM); in table_params_get()
182 table->params.key_mask0 = key_mask; in table_params_get()
196 free(entry->key_mask); in table_entry_free()
218 if (!entry->key_mask) in table_entry_alloc()
254 CHECK(!entry->key_mask, EINVAL); in table_entry_check()
331 if (!entry->key_mask) in table_entry_duplicate()
335 if (!new_entry->key_mask) in table_entry_duplicate()
338 memcpy(new_entry->key_mask, in table_entry_duplicate()
[all …]
H A Drte_table_action.h155 uint8_t key_mask[RTE_TABLE_ACTION_LB_KEY_SIZE_MAX]; member
/f-stack/dpdk/app/test/
H A Dtest_table_combined.c419 .key_mask = NULL, in test_table_hash8lru()
480 .key_mask = NULL, in test_table_hash16lru()
541 .key_mask = NULL, in test_table_hash32lru()
602 .key_mask = NULL, in test_table_hash8ext()
663 .key_mask = NULL, in test_table_hash16ext()
724 .key_mask = NULL, in test_table_hash32ext()
785 .key_mask = NULL, in test_table_hash_cuckoo_combined()
H A Dtest_table.h106 __rte_unused void *key_mask,
H A Dtest_table.c46 __rte_unused void *key_mask, in pipeline_test_hash() argument
H A Dtest_table_tables.c645 .key_mask = NULL, in test_table_hash_lru_generic()
748 .key_mask = NULL, in test_table_hash_ext_generic()
910 .key_mask = NULL, in test_table_hash_cuckoo()
/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_vlan.c199 volatile uint8_t *key_data, *key_mask; in nix_vlan_update_mac() local
228 key_mask = (volatile uint8_t *)entry.kw_mask; in nix_vlan_update_mac()
232 otx2_mbox_memcpy(key_mask + mkex->la_xtract.key_off, in nix_vlan_update_mac()
245 otx2_mbox_memcpy(key_mask + mkex->la_xtract.key_off, in nix_vlan_update_mac()
287 volatile uint8_t *key_data, *key_mask; in nix_vlan_mcam_config() local
295 key_mask = (volatile uint8_t *)entry.kw_mask; in nix_vlan_mcam_config()
313 otx2_mbox_memcpy(key_mask + mkex->lb_xtract.key_off, in nix_vlan_mcam_config()
342 otx2_mbox_memcpy(key_mask + mkex->la_xtract.key_off, in nix_vlan_mcam_config()
H A Dotx2_mcast.c46 volatile uint8_t *key_data, *key_mask; in nix_hw_update_mc_addr_list() local
88 key_mask = (volatile uint8_t *)req->entry_data.kw_mask; in nix_hw_update_mc_addr_list()
98 otx2_mbox_memcpy(key_mask + x_info->key_off, in nix_hw_update_mc_addr_list()
/f-stack/dpdk/app/test-pipeline/
H A Dpipeline_hash.c148 .key_mask = NULL, in app_main_loop_worker_pipeline_hash()
159 .key_mask = NULL, in app_main_loop_worker_pipeline_hash()
383 __rte_unused void *key_mask, in test_hash() argument
H A Dmain.h106 void *key_mask,
/f-stack/dpdk/drivers/net/hinic/
H A Dhinic_pmd_flow.c2502 (u8 *)(&tcam_key->key_mask), in tcam_key_calculate()
2506 (u8 *)(&tcam_key->key_mask), in tcam_key_calculate()
2522 tcam_key->key_mask.ext_dip_h = in hinic_fdir_tcam_ipv4_init()
2524 tcam_key->key_mask.ext_dip_l = in hinic_fdir_tcam_ipv4_init()
2538 tcam_key->key_mask.dst_port = rule->mask.dst_port_mask; in hinic_fdir_tcam_ipv4_init()
2549 tcam_key->key_mask.tunnel_flag = UINT8_MAX; in hinic_fdir_tcam_ipv4_init()
2554 tcam_key->key_mask.tunnel_flag = 0; in hinic_fdir_tcam_ipv4_init()
2565 tcam_key->key_mask.dst_port = in hinic_fdir_tcam_ipv4_init()
2572 tcam_key->key_mask.src_port = in hinic_fdir_tcam_ipv4_init()
2579 tcam_key->key_mask.protocol = UINT8_MAX; in hinic_fdir_tcam_ipv4_init()
[all …]
H A Dhinic_pmd_ethdev.h250 struct tag_tcam_key_mem key_mask; member
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dip_pipeline.rst326 [filter match | mismatch offset <key_offset> mask <key_mask> key <key_value> port <port_id>]
327 [balance offset <key_offset> mask <key_mask> port <port_id0> ... <port_id15>]
335 [balance offset <key_offset> mask <key_mask> outoffset <out_offset>]
399 mask <key_mask>
/f-stack/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_flow.c1020 struct softnic_table_rule_match_hash key, key_mask; in flow_rule_match_hash_get() local
1026 memset(&key_mask, 0, sizeof(key_mask)); in flow_rule_match_hash_get()
1070 memcpy(&key_mask.key[length], &mask, size); in flow_rule_match_hash_get()
1092 if (!hash_key_mask_is_same(params->key_mask, in flow_rule_match_hash_get()
1095 key_mask.key, in flow_rule_match_hash_get()

12