Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 568) sorted by relevance

12345678910>>...23

/dpdk/drivers/net/ice/base/
H A Dice_pg_cam.c304 item->key.node_id != key->node_id || in _pg_cam_match()
305 item->key.flag0 != key->flag0 || in _pg_cam_match()
306 item->key.flag1 != key->flag1 || in _pg_cam_match()
307 item->key.flag2 != key->flag2 || in _pg_cam_match()
308 item->key.flag3 != key->flag3 || in _pg_cam_match()
310 item->key.alu_reg != key->alu_reg || in _pg_cam_match()
322 item->key.flag0 != key->flag0 || in _pg_nm_cam_match()
323 item->key.flag1 != key->flag1 || in _pg_nm_cam_match()
324 item->key.flag2 != key->flag2 || in _pg_nm_cam_match()
325 item->key.flag3 != key->flag3 || in _pg_nm_cam_match()
[all …]
/dpdk/lib/ip_frag/
H A Dip_frag_internal.c21 fp->key = key[0]; in ip_frag_tbl_add()
128 fp, fp->key.src_dst[0], fp->key.id, in ip_frag_process()
141 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, in ip_frag_process()
186 fp, fp->key.src_dst[0], fp->key.id, in ip_frag_process()
199 fp, IPv6_KEY_BYTES(fp->key.src_dst), fp->key.id, in ip_frag_process()
320 p1[i].key.src_dst[0], p1[i].key.id, p1[i].start); in ip_frag_lookup()
329 IPv6_KEY_BYTES(p1[i].key.src_dst), p1[i].key.id, p1[i].start); in ip_frag_lookup()
331 if (ip_frag_key_cmp(key, &p1[i].key) == 0) in ip_frag_lookup()
346 p2[i].key.src_dst[0], p2[i].key.id, p2[i].start); in ip_frag_lookup()
355 IPv6_KEY_BYTES(p2[i].key.src_dst), p2[i].key.id, p2[i].start); in ip_frag_lookup()
[all …]
H A Dip_frag_common.h24 #define IPv6_KEY_BYTES(key) \ argument
25 (key)[0], (key)[1], (key)[2], (key)[3]
42 const struct ip_frag_key *key, uint64_t tms);
45 const struct ip_frag_key *key, uint64_t tms,
60 ip_frag_key_is_empty(const struct ip_frag_key * key) in ip_frag_key_is_empty() argument
62 return (key->key_len == 0); in ip_frag_key_is_empty()
67 ip_frag_key_invalidate(struct ip_frag_key * key) in ip_frag_key_invalidate() argument
69 key->key_len = 0; in ip_frag_key_invalidate()
117 fp->key.src_dst[0], fp->key.id); in ip_frag_free_immediate()
130 if (ip_frag_key_is_empty(&fp->key)) { in ip_frag_inuse()
[all …]
/dpdk/lib/eal/unix/
H A Drte_thread.c36 *key = malloc(sizeof(**key)); in rte_thread_key_create()
37 if ((*key) == NULL) { in rte_thread_key_create()
46 free(*key); in rte_thread_key_create()
54 rte_thread_key_delete(rte_thread_key key) in rte_thread_key_delete() argument
58 if (!key) { in rte_thread_key_delete()
63 err = pthread_key_delete(key->thread_index); in rte_thread_key_delete()
67 free(key); in rte_thread_key_delete()
71 free(key); in rte_thread_key_delete()
80 if (!key) { in rte_thread_value_set()
96 rte_thread_value_get(rte_thread_key key) in rte_thread_value_get() argument
[all …]
/dpdk/lib/hash/
H A Drte_fbk_hash.h63 uint32_t key; /**< Key used to find value. */ member
118 uint32_t key, uint16_t value, uint32_t bucket) in rte_fbk_hash_add_key_with_bucket() argument
139 if (ht->t[bucket + i].entry.key == key) { in rte_fbk_hash_add_key_with_bucket()
163 uint32_t key, uint16_t value) in rte_fbk_hash_add_key() argument
166 key, value, rte_fbk_hash_get_bucket(ht, key)); in rte_fbk_hash_add_key()
185 uint32_t key, uint32_t bucket) in rte_fbk_hash_delete_key_with_bucket() argument
191 if (ht->t[bucket + i].entry.key == key) { in rte_fbk_hash_delete_key_with_bucket()
230 key, rte_fbk_hash_get_bucket(ht, key)); in rte_fbk_hash_delete_key()
248 uint32_t key, uint32_t bucket) in rte_fbk_hash_lookup_with_bucket() argument
259 if (current_entry.entry.key == key) { in rte_fbk_hash_lookup_with_bucket()
[all …]
H A Drte_hash.h66 typedef uint32_t (*rte_hash_function)(const void *key, uint32_t key_len,
246 rte_hash_add_key_data(const struct rte_hash *h, const void *key, void *data);
275 rte_hash_add_key_with_hash_data(const struct rte_hash *h, const void *key,
297 rte_hash_add_key(const struct rte_hash *h, const void *key);
351 rte_hash_del_key(const struct rte_hash *h, const void *key);
404 void **key);
452 rte_hash_lookup_data(const struct rte_hash *h, const void *key, void **data);
477 rte_hash_lookup_with_hash_data(const struct rte_hash *h, const void *key,
498 rte_hash_lookup(const struct rte_hash *h, const void *key);
521 const void *key, hash_sig_t sig);
[all …]
/dpdk/app/test-pipeline/
H A Dpipeline_lpm_ipv6.c121 struct rte_table_lpm_ipv6_key key; in app_main_loop_worker_pipeline_lpm_ipv6() local
126 key.depth = 8 + __builtin_popcount(app.n_ports - 1); in app_main_loop_worker_pipeline_lpm_ipv6()
130 memcpy(key.ip, &ip, sizeof(uint32_t)); in app_main_loop_worker_pipeline_lpm_ipv6()
136 key.ip[0], key.ip[1], key.ip[2], key.ip[3], in app_main_loop_worker_pipeline_lpm_ipv6()
137 key.ip[4], key.ip[5], key.ip[6], key.ip[7], in app_main_loop_worker_pipeline_lpm_ipv6()
138 key.ip[8], key.ip[9], key.ip[10], key.ip[11], in app_main_loop_worker_pipeline_lpm_ipv6()
139 key.ip[12], key.ip[13], key.ip[14], key.ip[15], in app_main_loop_worker_pipeline_lpm_ipv6()
140 key.depth, i); in app_main_loop_worker_pipeline_lpm_ipv6()
142 status = rte_pipeline_table_entry_add(p, table_id, &key, &entry, in app_main_loop_worker_pipeline_lpm_ipv6()
/dpdk/app/test/
H A Dtest_hash_functions.c109 f(key[i], key_len, init_val); in run_hash_func_perf_test()
149 uint8_t key[64]; in verify_precalculated_hash_func_tests() local
153 key[i] = (uint8_t) i; in verify_precalculated_hash_func_tests()
189 uint8_t key[64]; in verify_jhash_32bits() local
193 key[i] = rand() & 0xff; in verify_jhash_32bits()
226 uint32_t key[3]; in verify_jhash_words() local
230 key[i] = rand(); in verify_jhash_words()
233 hash = rte_jhash(key, 4, 0); in verify_jhash_words()
242 hash = rte_jhash(key, 8, 0); in verify_jhash_words()
243 hash_words = rte_jhash_2words(key[0], key[1], 0); in verify_jhash_words()
[all …]
H A Dtest_cryptodev_aead_test_vectors.h36 } key; member
68 } key; member
90 .key = {
127 .key = {
165 .key = {
216 .key = {
271 .key = {
326 .key = {
381 .key = {
436 .key = {
[all …]
H A Dtest_cryptodev_zuc_test_vectors.h12 } key; member
58 .key = {
99 .key = {
158 .key = {
241 .key = {
362 .key = {
521 .key = {
576 .key = {
649 .key = {
677 .key = {
[all …]
H A Dtest_cryptodev_security_docsis_test_vectors.h21 } key; member
52 .key = {
105 .key = {
158 .key = {
213 .key = {
270 .key = {
337 .key = {
406 .key = {
475 .key = {
528 .key = {
[all …]
H A Dtest_cryptodev_security_ipsec_test_vectors.h23 .key = {
117 .key.length = 16,
128 .key = {
227 .key = {
333 .key = {
439 .key = {
536 .key = {
645 .key = {
750 .key = {
858 .key = {
[all …]
H A Dtest_cryptodev_kasumi_hash_test_vectors.h12 } key; member
31 .key = {
54 .key = {
78 .key = {
104 .key = {
131 .key = {
167 .key = {
200 .key = {
/dpdk/examples/fips_validation/
H A Dfips_validation_tdes.c99 if (strstr(key, ENC_STR)) in parse_tdes_interim()
101 else if (strstr(key, DEC_STR)) in parse_tdes_interim()
103 else if (strstr(key, NK_STR)) { in parse_tdes_interim()
124 src += strlen(key); in parse_tdes_uint8_hex_str()
139 if (strstr(key, KEYS_STR)) { in parse_tdes_uint8_hex_str()
150 } else if (strstr(key, KEY1_STR)) { in parse_tdes_uint8_hex_str()
161 } else if (strstr(key, KEY2_STR)) { in parse_tdes_uint8_hex_str()
169 } else if (strstr(key, KEY3_STR)) { in parse_tdes_uint8_hex_str()
211 if (strstr(key, KEY1_STR)) in writeback_tdes_hex_str()
213 else if (strstr(key, KEY2_STR)) in writeback_tdes_hex_str()
[all …]
H A Dfips_dev_self_test.c27 } key; member
1016 key[i] ^= vec->key.data[i]; in prepare_cipher_xform()
1018 memcpy(key, vec->key.data, vec->key.len); in prepare_cipher_xform()
1026 cipher_xform->key.data = key; in prepare_cipher_xform()
1073 key[i] ^= vec->key.data[i]; in prepare_auth_xform()
1075 memcpy(key, vec->key.data, vec->key.len); in prepare_auth_xform()
1084 auth_xform->key.data = key; in prepare_auth_xform()
1085 auth_xform->key.length = vec->key.len; in prepare_auth_xform()
1129 key[i] ^= vec->key.data[i]; in prepare_aead_xform()
1131 memcpy(key, vec->key.data, vec->key.len); in prepare_aead_xform()
[all …]
/dpdk/lib/eal/windows/
H A Drte_thread.c78 *key = malloc(sizeof(**key)); in rte_thread_key_create()
79 if ((*key) == NULL) { in rte_thread_key_create()
84 (*key)->thread_index = TlsAlloc(); in rte_thread_key_create()
87 free(*key); in rte_thread_key_create()
97 if (!key) { in rte_thread_key_delete()
102 if (!TlsFree(key->thread_index)) { in rte_thread_key_delete()
104 free(key); in rte_thread_key_delete()
108 free(key); in rte_thread_key_delete()
117 if (!key) { in rte_thread_value_set()
133 rte_thread_value_get(rte_thread_key key) in rte_thread_value_get() argument
[all …]
/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_mutex.c33 uint32_t key; member
77 uint32_t key) in nfp_cpp_mutex_init() argument
134 if (mutex->key == key) { in nfp_cpp_mutex_alloc()
151 if (tmp != key) in nfp_cpp_mutex_alloc()
161 mutex->key = key; in nfp_cpp_mutex_alloc()
186 return mutex->key; in nfp_cpp_mutex_key()
193 uint32_t value, key; in nfp_cpp_mutex_owner() local
204 if (key != mutex->key) in nfp_cpp_mutex_owner()
294 uint32_t key, value; in nfp_cpp_mutex_unlock() local
311 if (key != mutex->key) { in nfp_cpp_mutex_unlock()
[all …]
H A Dnfp_hwinfo.c37 const char *key, *val, *end = hwinfo->data + size; in nfp_hwinfo_db_walk() local
39 for (key = hwinfo->data; *key && key < end; in nfp_hwinfo_db_walk()
40 key = val + strlen(val) + 1) { in nfp_hwinfo_db_walk()
41 val = key + strlen(key) + 1; in nfp_hwinfo_db_walk()
183 const char *key, *val, *end; in nfp_hwinfo_lookup() local
190 for (key = hwinfo->data; *key && key < end; in nfp_hwinfo_lookup()
191 key = val + strlen(val) + 1) { in nfp_hwinfo_lookup()
192 val = key + strlen(key) + 1; in nfp_hwinfo_lookup()
194 if (strcmp(key, lookup) == 0) in nfp_hwinfo_lookup()
/dpdk/lib/flow_classify/
H A Drte_flow_classify.c80 struct acl_keys key; member
181 key->field_value[PROTO_FIELD_IPV4].value.u8, in print_acl_ipv4_key_add()
195 key->field_value[SRCP_FIELD_IPV4].value.u16, in print_acl_ipv4_key_add()
197 key->field_value[DSTP_FIELD_IPV4].value.u16, in print_acl_ipv4_key_add()
200 printf(" priority: 0x%x\n", key->priority); in print_acl_ipv4_key_add()
209 key->field_value[PROTO_FIELD_IPV4].value.u8, in print_acl_ipv4_key_delete()
223 key->field_value[SRCP_FIELD_IPV4].value.u16, in print_acl_ipv4_key_delete()
225 key->field_value[DSTP_FIELD_IPV4].value.u16, in print_acl_ipv4_key_delete()
464 print_acl_ipv4_key_add(&rule->u.key.key_add); in allocate_acl_ipv4_5tuple_rule()
540 &rule->u.key.key_add, in rte_flow_classify_table_entry_add()
[all …]
/dpdk/lib/ipsec/
H A Dipsec_sad.c88 key, rte_hash_crc(key, sad->keysize[RTE_IPSEC_SAD_SPI_ONLY], in EAL_REGISTER_TAILQ()
96 sad->hash[RTE_IPSEC_SAD_SPI_ONLY], key, in EAL_REGISTER_TAILQ()
118 const union rte_ipsec_sad_key *key, in rte_ipsec_sad_add() argument
138 key, rte_hash_crc(key, sad->keysize[key_type], in rte_ipsec_sad_add()
146 key, rte_hash_crc(key, sad->keysize[key_type], in rte_ipsec_sad_add()
182 key, rte_hash_crc(key, sad->keysize[RTE_IPSEC_SAD_SPI_ONLY], in del_specific()
217 const union rte_ipsec_sad_key *key, in rte_ipsec_sad_del() argument
223 if ((sad == NULL) || (key == NULL)) in rte_ipsec_sad_del()
228 key, rte_hash_crc(key, sad->keysize[key_type], in rte_ipsec_sad_del()
234 key, rte_hash_crc(key, sad->keysize[key_type], in rte_ipsec_sad_del()
[all …]
/dpdk/drivers/net/cnxk/
H A Dcnxk_ethdev_devargs.c25 RTE_SET_USED(key); in parse_outb_nb_desc()
38 RTE_SET_USED(key); in parse_outb_nb_crypto_qs()
54 RTE_SET_USED(key); in parse_ipsec_in_spi_range()
70 RTE_SET_USED(key); in parse_ipsec_out_max_sa()
86 RTE_SET_USED(key); in parse_flow_max_priority()
103 RTE_SET_USED(key); in parse_flow_prealloc_size()
120 RTE_SET_USED(key); in parse_reta_size()
147 RTE_SET_USED(key); in parse_pre_l2_hdr_info()
165 RTE_SET_USED(key); in parse_flag()
175 RTE_SET_USED(key); in parse_sqb_count()
[all …]
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym.c53 fsattr_va(&key) = sess->cipher.key.data; in process_crypto_cipher_op()
54 fsattr_pa(&key) = 0; in process_crypto_cipher_op()
55 fsattr_sz(&key) = sess->cipher.key.length; in process_crypto_cipher_op()
59 &dst, &key, &iv); in process_crypto_cipher_op()
92 fsattr_va(&key) = sess->auth.key.data; in process_crypto_auth_op()
93 fsattr_pa(&key) = 0; in process_crypto_auth_op()
94 fsattr_sz(&key) = sess->auth.key.length; in process_crypto_auth_op()
113 &key, &iv); in process_crypto_auth_op()
234 fsattr_va(&key) = sess->aead.key.data; in process_crypto_aead_op()
235 fsattr_pa(&key) = 0; in process_crypto_aead_op()
[all …]
H A Dbcmfs_sym_session.c60 sess->cipher.key.length = cipher_xform->key.length; in crypto_set_session_cipher_parameters()
66 get_key(cipher_xform->key.data, in crypto_set_session_cipher_parameters()
67 sess->cipher.key.length, in crypto_set_session_cipher_parameters()
68 sess->cipher.key.data); in crypto_set_session_cipher_parameters()
84 sess->auth.key.length = auth_xform->key.length; in crypto_set_session_auth_parameters()
90 get_key(auth_xform->key.data, in crypto_set_session_auth_parameters()
91 auth_xform->key.length, in crypto_set_session_auth_parameters()
92 sess->auth.key.data); in crypto_set_session_auth_parameters()
110 sess->aead.key.length = aead_xform->aead.key.length; in crypto_set_session_aead_parameters()
116 aead_xform->aead.key.length, in crypto_set_session_aead_parameters()
[all …]
/dpdk/drivers/net/ionic/
H A Dionic_rx_filter.c56 uint32_t key; in ionic_rx_filter_save() local
71 key = rte_le_to_cpu_16(f->cmd.vlan.vlan); in ionic_rx_filter_save()
74 memcpy(&key, f->cmd.mac.addr, sizeof(key)); in ionic_rx_filter_save()
80 key &= IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_save()
84 LIST_INSERT_HEAD(&lif->rx_filters.by_hash[key], f, by_hash); in ionic_rx_filter_save()
86 key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_save()
88 LIST_INSERT_HEAD(&lif->rx_filters.by_id[key], f, by_id); in ionic_rx_filter_save()
98 uint32_t key = vid & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_by_vlan() local
102 LIST_FOREACH(f, &lif->rx_filters.by_hash[key], by_hash) { in ionic_rx_filter_by_vlan()
115 const uint32_t key = *(const uint32_t *)addr & in ionic_rx_filter_by_addr() local
[all …]
/dpdk/drivers/net/ipn3ke/
H A Dipn3ke_flow.c103 rte_memcpy(&parser->key[0], in ipn3ke_pattern_vxlan()
167 rte_memcpy(parser->key, in ipn3ke_pattern_mac()
238 parser->key[2] = (tci & 0x0ff); in ipn3ke_pattern_qinq()
305 parser->key[2] |= in ipn3ke_pattern_mpls()
307 parser->key[3] = in ipn3ke_pattern_mpls()
310 parser->key[4] = in ipn3ke_pattern_mpls()
918 uint64_t key; in ipn3ke_flow_key_generation() local
921 dst = flow->rule.key; in ipn3ke_flow_key_generation()
933 key = 0; in ipn3ke_flow_key_generation()
941 key = (key << 8) | parser->key[i]; in ipn3ke_flow_key_generation()
[all …]

12345678910>>...23