| /dpdk/examples/pipeline/examples/ |
| H A D | ipsec_sa.txt | 17 // : cipher <ciher_alg> key <cipher_key> 22 // : auth <authentication_alg> key <authentication_key> 27 // : aead <aead_alg> key <aead_key> 49 encrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 tunnel ipv4 src… 50 encrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 tunnel ipv6 src… 51 encrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 transport 52 decrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 tunnel ipv4 src… 53 decrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 tunnel ipv6 src… 54 decrypt aead aes-gcm-128 key 0x000102030405060708090a0b0c0d0e0f10111213 esp spi 100 transport 59 encrypt aead aes-gcm-192 key 0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b esp spi 100… [all …]
|
| /dpdk/lib/ip_frag/ |
| H A D | ip_frag_internal.c | 19 const struct ip_frag_key *key, uint64_t tms) in ip_frag_tbl_add() argument 21 fp->key = key[0]; in ip_frag_tbl_add() 41 ipv4_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) in ipv4_frag_hash() argument 46 p = (const uint32_t *)&key->src_dst; in ipv4_frag_hash() 51 v = rte_hash_crc_4byte(key->id, v); in ipv4_frag_hash() 54 v = rte_jhash_3words(p[0], p[1], key->id, PRIME_VALUE); in ipv4_frag_hash() 62 ipv6_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) in ipv6_frag_hash() argument 67 p = (const uint32_t *) &key->src_dst; in ipv6_frag_hash() 78 v = rte_hash_crc_4byte(key->id, v); in ipv6_frag_hash() 83 v = rte_jhash_3words(p[6], p[7], key->id, v); in ipv6_frag_hash() [all …]
|
| H A D | ip_frag_common.h | 40 #define IPv6_KEY_BYTES(key) \ argument 41 (key)[0], (key)[1], (key)[2], (key)[3] 58 const struct ip_frag_key *key, uint64_t tms); 61 const struct ip_frag_key *key, uint64_t tms, 76 ip_frag_key_is_empty(const struct ip_frag_key * key) in ip_frag_key_is_empty() argument 78 return (key->key_len == 0); in ip_frag_key_is_empty() 83 ip_frag_key_invalidate(struct ip_frag_key * key) in ip_frag_key_invalidate() argument 85 key->key_len = 0; in ip_frag_key_invalidate() 139 fp->key.src_dst[0], fp->key.id); in ip_frag_free_immediate() 152 if (ip_frag_key_is_empty(&fp->key)) { in ip_frag_inuse() [all …]
|
| /dpdk/lib/hash/ |
| H A D | rte_fbk_hash.h | 14 * if a bucket is full, the key is not added even if there is space in other 45 typedef uint32_t (*rte_fbk_hash_fn)(uint32_t key, uint32_t init_val); 47 /** Parameters used when creating four-byte key hash table. */ 57 /** Individual entry in the four-byte key hash table. */ 63 uint32_t key; /**< Key used to find value. */ member 68 /** The four-byte key hash table structure. */ 74 uint32_t bucket_mask; /**< To find which bucket the key is in. */ 84 * Find the offset into hash table of the bucket containing a particular key. 88 * @param key 94 rte_fbk_hash_get_bucket(const struct rte_fbk_hash_table *ht, uint32_t key) in rte_fbk_hash_get_bucket() argument 118 rte_fbk_hash_add_key_with_bucket(struct rte_fbk_hash_table * ht,uint32_t key,uint16_t value,uint32_t bucket) rte_fbk_hash_add_key_with_bucket() argument 163 rte_fbk_hash_add_key(struct rte_fbk_hash_table * ht,uint32_t key,uint16_t value) rte_fbk_hash_add_key() argument 185 rte_fbk_hash_delete_key_with_bucket(struct rte_fbk_hash_table * ht,uint32_t key,uint32_t bucket) rte_fbk_hash_delete_key_with_bucket() argument 227 rte_fbk_hash_delete_key(struct rte_fbk_hash_table * ht,uint32_t key) rte_fbk_hash_delete_key() argument 248 rte_fbk_hash_lookup_with_bucket(const struct rte_fbk_hash_table * ht,uint32_t key,uint32_t bucket) rte_fbk_hash_lookup_with_bucket() argument 277 rte_fbk_hash_lookup(const struct rte_fbk_hash_table * ht,uint32_t key) rte_fbk_hash_lookup() argument [all...] |
| H A D | rte_hash.h | 65 typedef uint32_t (*rte_hash_function)(const void *key, uint32_t key_len, 244 rte_hash_add_key_data(const struct rte_hash *h, const void *key, void *data); 273 rte_hash_add_key_with_hash_data(const struct rte_hash *h, const void *key, 295 rte_hash_add_key(const struct rte_hash *h, const void *key); 319 rte_hash_add_key_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig); 349 rte_hash_del_key(const struct rte_hash *h, const void *key); 381 rte_hash_del_key_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig); 402 void **key); 450 rte_hash_lookup_data(const struct rte_hash *h, const void *key, void **data); 475 rte_hash_lookup_with_hash_data(const struct rte_hash *h, const void *key, [all …]
|
| /dpdk/app/test/ |
| H A D | test_hash_functions.c | 98 static uint8_t key[HASHTEST_ITERATIONS][MAX_KEYSIZE]; in run_hash_func_perf_test() local 104 key[i][j] = (uint8_t) rte_rand(); in run_hash_func_perf_test() 109 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() 157 hash = rte_jhash(key, hashtest_key_lens[i], in verify_precalculated_hash_func_tests() 167 hash = rte_hash_crc(key, hashtest_key_lens[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() 199 hash = rte_jhash(key, hashtest_key_lens[i], in verify_jhash_32bits() [all …]
|
| H A D | test_cryptodev_security_tls_record_test_vectors.h | 16 .key = { 62 .key.length = 16, 83 .key = { 132 .key.length = 16, 153 .key = { 204 .key.length = 32, 224 .key = { 284 .key.length = 20, 296 .key.length = 16, 316 .key = { [all …]
|
| H A D | test_cryptodev_zuc_test_vectors.h | 12 } key; member 58 .key = { 99 .key = { 158 .key = { 241 .key = { 362 .key = { 521 .key = { 576 .key = { 649 .key = { 677 .key = { [all …]
|
| H A D | test_cryptodev_security_docsis_test_vectors.h | 21 } key; member 52 .key = { 105 .key = { 158 .key = { 213 .key = { 270 .key = { 337 .key = { 406 .key = { 475 .key = { 528 .key = { [all …]
|
| H A D | test_cryptodev_kasumi_hash_test_vectors.h | 12 } key; member 31 .key = { 54 .key = { 78 .key = { 104 .key = { 131 .key = { 167 .key = { 200 .key = {
|
| H A D | test_cryptodev_security_ipsec_test_vectors.h | 23 .key = { 117 .key.length = 16, 128 .key = { 216 .key.length = 24, 227 .key = { 318 .key.length = 32, 329 .key = { 419 .key.length = 32, 435 .key = { 526 .key.length = 16, [all …]
|
| /dpdk/drivers/net/gve/ |
| H A D | gve_rss.c | 30 gve_rss_conf->key = rte_zmalloc("rss key", in gve_init_rss_config() 31 key_size * sizeof(*gve_rss_conf->key), in gve_init_rss_config() 33 if (!gve_rss_conf->key) in gve_init_rss_config() 47 rte_free(gve_rss_conf->key); in gve_init_rss_config() 62 memcpy(gve_rss_conf->key, priv->rss_config.key, in gve_init_rss_config_from_priv() 63 gve_rss_conf->key_size * sizeof(*gve_rss_conf->key)); in gve_init_rss_config_from_priv() 75 rte_free(gve_rss_conf->key); in gve_free_rss_config() 76 gve_rss_conf->key = NULL; in gve_free_rss_config() 87 if (config->key_size == 0 || !config->key) in gve_update_priv_rss_config() 96 key_bytes = priv_config->key_size * sizeof(*priv_config->key); in gve_update_priv_rss_config() [all …]
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation_tdes.c | 72 writeback_tdes_hex_str(const char *key, char *dst, struct fips_val *val); 75 parse_tdes_uint8_hex_str(const char *key, char *src, struct fips_val *val); 78 parse_tdes_interim(const char *key, char *text, struct fips_val *val); 81 {KEYS_STR, parse_tdes_uint8_hex_str, &vec.cipher_auth.key}, 82 {KEY1_STR, parse_tdes_uint8_hex_str, &vec.cipher_auth.key}, 83 {KEY2_STR, parse_tdes_uint8_hex_str, &vec.cipher_auth.key}, 84 {KEY3_STR, parse_tdes_uint8_hex_str, &vec.cipher_auth.key}, 102 {KEY1_STR, writeback_tdes_hex_str, &vec.cipher_auth.key}, 103 {KEY2_STR, writeback_tdes_hex_str, &vec.cipher_auth.key}, 104 {KEY3_STR, writeback_tdes_hex_str, &vec.cipher_auth.key}, [all …]
|
| H A D | fips_dev_self_test.c | 27 } key; member 100 .key = { 146 .key = { 197 .key = { 247 .key = { 300 .key = { 348 .key = { 399 .key = { 447 .key = { 489 .key = { [all …]
|
| /dpdk/lib/member/ |
| H A D | rte_member.c | 192 rte_member_add(const struct rte_member_setsum *setsum, const void *key, in rte_member_add() argument 195 if (setsum == NULL || key == NULL) in rte_member_add() 200 return rte_member_add_ht(setsum, key, set_id); in rte_member_add() 202 return rte_member_add_vbf(setsum, key, set_id); in rte_member_add() 204 return rte_member_add_sketch(setsum, key, set_id); in rte_member_add() 212 const void *key, uint32_t byte_count) in rte_member_add_byte_count() argument 214 if (setsum == NULL || key == NULL || byte_count == 0) in rte_member_add_byte_count() 219 return rte_member_add_sketch_byte_count(setsum, key, byte_count); in rte_member_add_byte_count() 226 rte_member_lookup(const struct rte_member_setsum *setsum, const void *key, in rte_member_lookup() argument 229 if (setsum == NULL || key == NULL || set_id == NULL) in rte_member_lookup() [all …]
|
| H A D | rte_member_heap.h | 34 void *key; member 47 hash_table_insert(const void *key, int value, int key_len, struct hash *table) in hash_table_insert() argument 49 uint32_t hash = MEMBER_HASH_FUNC(key, key_len, table->seed); in hash_table_insert() 67 hash_table_update(const void *key, int old_value, int value, int key_len, struct hash *table) in hash_table_update() argument 69 uint32_t hash = MEMBER_HASH_FUNC(key, key_len, table->seed); in hash_table_update() 85 hash_table_del(const void *key, uint16_t value, int key_len, struct hash *table) in hash_table_del() argument 87 uint32_t hash = MEMBER_HASH_FUNC(key, key_len, table->seed); in hash_table_del() 104 hash_table_lookup(const void *key, int key_len, struct minheap *hp) in hash_table_lookup() argument 107 uint32_t hash = MEMBER_HASH_FUNC(key, key_len, table->seed); in hash_table_lookup() 116 if (memcmp(hp->elem[hp_idx].key, key, hp->key_len) == 0) in hash_table_lookup() [all …]
|
| H A D | rte_member_sketch.c | 260 sketch_lookup_scalar(const struct rte_member_setsum *ss, const void *key) in sketch_lookup_scalar() argument 269 col[cur_row] = MEMBER_HASH_FUNC(key, ss->key_len, in sketch_lookup_scalar() 302 sketch_delete_scalar(const struct rte_member_setsum *ss, const void *key) in sketch_delete_scalar() argument 309 col[cur_row] = MEMBER_HASH_FUNC(key, ss->key_len, in sketch_delete_scalar() 319 const void *key, in rte_member_query_sketch() argument 322 uint64_t count = ss->sketch_lookup(ss, key); in rte_member_query_sketch() 335 uint64_t count = ss->sketch_lookup(ss, runtime_var->heap.elem[i].key); in rte_member_update_heap() 343 void **key, in rte_member_report_heavyhitter_sketch() argument 353 key[i] = runtime_var->report_array[i].key; in rte_member_report_heavyhitter_sketch() 362 const void *key, member_set_t *set_id) in rte_member_lookup_sketch() argument [all …]
|
| H A D | rte_member_sketch.h | 29 const void *key, member_set_t *set_id); 33 const void *key, 38 const void *key, uint32_t byte_count); 42 const void *key, 47 const void *key); 51 const void *key); 55 const void *key); 59 const void *key, uint64_t *output); 69 void **key, uint64_t *count);
|
| /dpdk/lib/ipsec/ |
| H A D | ipsec_sad.c | 67 add_specific(struct rte_ipsec_sad *sad, const void *key, in EAL_REGISTER_TAILQ() 76 ret = rte_hash_lookup_with_hash(sad->hash[key_type], key, in EAL_REGISTER_TAILQ() 77 rte_hash_crc(key, sad->keysize[key_type], sad->init_val)); in EAL_REGISTER_TAILQ() 81 ret = rte_hash_add_key_with_hash_data(sad->hash[key_type], key, in EAL_REGISTER_TAILQ() 82 rte_hash_crc(key, sad->keysize[key_type], sad->init_val), sa); in EAL_REGISTER_TAILQ() 88 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() 97 rte_hash_crc(key, sad->keysize[RTE_IPSEC_SAD_SPI_ONLY], in EAL_REGISTER_TAILQ() 103 ret = rte_hash_lookup_with_hash(sad->hash[RTE_IPSEC_SAD_SPI_ONLY], key, in EAL_REGISTER_TAILQ() 104 rte_hash_crc(key, sad->keysize[RTE_IPSEC_SAD_SPI_ONLY], in EAL_REGISTER_TAILQ() [all …]
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_rx_filter.c | 56 uint32_t key; in ionic_rx_filter_save() local 70 key = rte_le_to_cpu_16(f->cmd.vlan.vlan); in ionic_rx_filter_save() 73 memcpy(&key, f->cmd.mac.addr, sizeof(key)); in ionic_rx_filter_save() 79 key &= IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_save() 83 LIST_INSERT_HEAD(&lif->rx_filters.by_hash[key], f, by_hash); in ionic_rx_filter_save() 85 key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_save() 87 LIST_INSERT_HEAD(&lif->rx_filters.by_id[key], f, by_id); in ionic_rx_filter_save() 97 uint32_t key = vid & IONIC_RX_FILTER_HLISTS_MASK; in ionic_rx_filter_by_vlan() local 101 LIST_FOREACH(f, &lif->rx_filters.by_hash[key], by_hash) { in ionic_rx_filter_by_vlan() 114 const uint32_t key = *(const uint32_t *)addr & in ionic_rx_filter_by_addr() local [all …]
|
| /dpdk/drivers/crypto/mlx5/ |
| H A D | mlx5_crypto_dek.c | 18 const uint8_t **key, in mlx5_crypto_dek_get_key() argument 22 *key = xform->cipher.key.data; in mlx5_crypto_dek_get_key() 23 *key_len = xform->cipher.key.length; in mlx5_crypto_dek_get_key() 25 *key = xform->aead.key.data; in mlx5_crypto_dek_get_key() 26 *key_len = xform->aead.key.length; in mlx5_crypto_dek_get_key() 28 *key = NULL; in mlx5_crypto_dek_get_key() 48 const uint8_t *key; in mlx5_crypto_dek_prepare() local 58 if (mlx5_crypto_dek_get_key(xform, &key, &key_len)) in mlx5_crypto_dek_prepare() 60 key64 = __rte_raw_cksum(key, key_len, 0); in mlx5_crypto_dek_prepare() 103 const uint8_t *key; in mlx5_crypto_dek_match_cb() local [all …]
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_sym.c | 28 struct fsattr src, dst, iv, key; in process_crypto_cipher_op() local 53 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() 74 struct fsattr src, dst, mac, key, iv; in process_crypto_auth_op() local 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() [all …]
|
| /dpdk/lib/eal/unix/ |
| H A D | rte_thread.c | 319 rte_thread_key_create(rte_thread_key *key, void (*destructor)(void *)) in rte_thread_key_delete() 323 *key = malloc(sizeof(**key)); in rte_thread_key_delete() 324 if ((*key) == NULL) { in rte_thread_key_delete() 325 EAL_LOG(DEBUG, "Cannot allocate TLS key."); in rte_thread_key_delete() 329 err = pthread_key_create(&((*key)->thread_index), destructor); in rte_thread_key_delete() 333 free(*key); in rte_thread_key_delete() 341 rte_thread_key_delete(rte_thread_key key) in rte_thread_value_set() 345 if (!key) { in rte_thread_value_set() 346 EAL_LOG(DEBUG, "Invalid TLS key in rte_thread_value_set() 294 rte_thread_key_create(rte_thread_key * key,void (* destructor)(void *)) rte_thread_key_create() argument 316 rte_thread_key_delete(rte_thread_key key) rte_thread_key_delete() argument 338 rte_thread_value_set(rte_thread_key key,const void * value) rte_thread_value_set() argument 358 rte_thread_value_get(rte_thread_key key) rte_thread_value_get() argument [all...] |
| /dpdk/drivers/net/tap/bpf/ |
| H A D | tap_rss.c | 38 softrss_be(const __u32 *input_tuple, __u32 input_len, const __u32 *key) in softrss_be() argument 47 hash ^= key[j] << i | key[j + 1] >> (32 - i); in softrss_be() 58 parse_ipv4(const struct __sk_buff *skb, __u32 hash_type, const __u32 *key) in parse_ipv4() argument 78 return softrss_be((__u32 *)&v4_tuple, sizeof(v4_tuple) / sizeof(__u32) - 1, key); in parse_ipv4() 95 return softrss_be((__u32 *)&v4_tuple, sizeof(v4_tuple) / sizeof(__u32), key); in parse_ipv4() 154 parse_ipv6(const struct __sk_buff *skb, __u32 hash_type, const __u32 *key) in parse_ipv6() argument 177 return softrss_be((__u32 *)&v6_tuple, sizeof(v6_tuple) / sizeof(__u32) - 1, key); in parse_ipv6() 200 return softrss_be((__u32 *)&v6_tuple, sizeof(v6_tuple) / sizeof(__u32), key); in parse_ipv6() 230 const __u32 *key; in rss_flow_action() local 246 key = (const __u32 *)rsskey->key; in rss_flow_action() [all …]
|
| /dpdk/lib/kvargs/ |
| H A D | rte_kvargs.c | 16 * key=value,key=value,... and insert them into the list. 38 /* browse each key/value pair and add it in kvlist */ in rte_kvargs_tokenize() 40 start = str; /* start of current key or value */ in rte_kvargs_tokenize() 43 case '=': /* End of key. */ in rte_kvargs_tokenize() 78 /* Continue if not end of key or value. */ in rte_kvargs_tokenize() 91 kvlist->pairs[kvlist->count].key = start; in rte_kvargs_tokenize() 114 * Determine whether a key is valid or not by looking 142 ret = is_valid_key(valid, pair->key); in check_for_valid_keys() 150 * Return the number of times a given arg_name exists in the key/valu 208 rte_kvargs_get_with_value(const struct rte_kvargs * kvlist,const char * key,const char * value) rte_kvargs_get_with_value() argument 227 rte_kvargs_get(const struct rte_kvargs * kvlist,const char * key) rte_kvargs_get() argument [all...] |