Searched refs:key (Results 1 - 25 of 134) sorted by relevance

123456

/deb_dpdk/lib/librte_hash/
H A Drte_hash.h66 /** Signature of key that is stored internally. */
70 typedef uint32_t (*rte_hash_function)(const void *key, uint32_t key_len,
73 /** Type of function used to compare the hash key. */
83 uint32_t key_len; /**< Length of hash key. */
156 * Add a key-value pair to an existing hash table.
161 * Hash table to add the key to.
162 * @param key
169 * - -ENOSPC if there is no space in the hash for this key.
172 rte_hash_add_key_data(const struct rte_hash *h, const void *key, void *data);
175 * Add a key
[all...]
H A Drte_fbk_hash.h43 * if a bucket is full, the key is not added even if there is space in other
60 /** Default four-byte key hash function if none is specified. */
83 typedef uint32_t (*rte_fbk_hash_fn)(uint32_t key, uint32_t init_val);
85 /** Parameters used when creating four-byte key hash table. */
95 /** Individual entry in the four-byte key hash table. */
101 uint32_t key; /**< Key used to find value. */ member in struct:rte_fbk_hash_entry::__anon660
106 /** The four-byte key hash table structure. */
112 uint32_t bucket_mask; /**< To find which bucket the key is in. */
122 * Find the offset into hash table of the bucket containing a particular key.
126 * @param key
132 rte_fbk_hash_get_bucket(const struct rte_fbk_hash_table *ht, uint32_t key) argument
155 rte_fbk_hash_add_key_with_bucket(struct rte_fbk_hash_table *ht, uint32_t key, uint16_t value, uint32_t bucket) argument
200 rte_fbk_hash_add_key(struct rte_fbk_hash_table *ht, uint32_t key, uint16_t value) argument
222 rte_fbk_hash_delete_key_with_bucket(struct rte_fbk_hash_table *ht, uint32_t key, uint32_t bucket) argument
265 rte_fbk_hash_delete_key(struct rte_fbk_hash_table *ht, uint32_t key) argument
285 rte_fbk_hash_lookup_with_bucket(const struct rte_fbk_hash_table *ht, uint32_t key, uint32_t bucket) argument
315 rte_fbk_hash_lookup(const struct rte_fbk_hash_table *ht, uint32_t key) argument
[all...]
H A Drte_cuckoo_hash.c260 /* If key is not multiple of 16, use generic memcmp */
317 /* Populate free slots ring. Entry zero is reserved for key misses. */
378 rte_hash_hash(const struct rte_hash *h, const void *key) argument
380 /* calc hash result by key */
381 return h->hash_func(key, h->key_len, h->hash_func_init_val);
384 /* Calc the secondary hash value from the primary hash value of a given key */
412 /* Repopulate the free slots ring. Entry zero is reserved for key misses */
513 __rte_hash_add_key_with_hash(const struct rte_hash *h, const void *key, argument
541 /* Get a new slot for storing the new key */
568 /* Check if key i
677 rte_hash_add_key_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig) argument
685 rte_hash_add_key(const struct rte_hash *h, const void *key) argument
692 rte_hash_add_key_with_hash_data(const struct rte_hash *h, const void *key, hash_sig_t sig, void *data) argument
706 rte_hash_add_key_data(const struct rte_hash *h, const void *key, void *data) argument
719 __rte_hash_lookup_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig, void **data) argument
776 rte_hash_lookup_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig) argument
784 rte_hash_lookup(const struct rte_hash *h, const void *key) argument
791 rte_hash_lookup_with_hash_data(const struct rte_hash *h, const void *key, hash_sig_t sig, void **data) argument
799 rte_hash_lookup_data(const struct rte_hash *h, const void *key, void **data) argument
835 __rte_hash_del_key_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig) argument
897 rte_hash_del_key_with_hash(const struct rte_hash *h, const void *key, hash_sig_t sig) argument
905 rte_hash_del_key(const struct rte_hash *h, const void *key) argument
912 rte_hash_get_key_with_position(const struct rte_hash *h, const int32_t position, void **key) argument
1149 rte_hash_iterate(const struct rte_hash *h, const void **key, void **data, uint32_t *next) argument
[all...]
/deb_dpdk/drivers/net/enic/base/
H A Dvnic_rss.c38 void vnic_set_rss_key(union vnic_rss_key *rss_key, u8 *key) argument
45 p = (u32 *)(key + (10 * i));
46 iowrite32(*p++, &rss_key->key[i].b[0]);
47 iowrite32(*p++, &rss_key->key[i].b[4]);
49 iowrite32(*q, &rss_key->key[i].b[8]);
62 void vnic_get_rss_key(union vnic_rss_key *rss_key, u8 *key) argument
69 p = (u32 *)(key + (10 * i));
70 *p++ = ioread32(&rss_key->key[i].b[0]);
71 *p++ = ioread32(&rss_key->key[i].b[4]);
73 *q = (u16)ioread32(&rss_key->key[
[all...]
H A Dvnic_rss.h37 /* RSS key array */
42 } key[4]; member in union:vnic_rss_key
55 void vnic_set_rss_key(union vnic_rss_key *rss_key, u8 *key);
57 void vnic_get_rss_key(union vnic_rss_key *rss_key, u8 *key);
/deb_dpdk/examples/ip_pipeline/pipeline/
H A Dpipeline_flow_classification.c99 qinq->svlan = rte_cpu_to_be_16(key_in->key.qinq.svlan);
101 qinq->cvlan = rte_cpu_to_be_16(key_in->key.qinq.cvlan);
113 ipv4->proto = key_in->key.ipv4_5tuple.proto;
115 ipv4->ip_src = rte_cpu_to_be_32(key_in->key.ipv4_5tuple.ip_src);
116 ipv4->ip_dst = rte_cpu_to_be_32(key_in->key.ipv4_5tuple.ip_dst);
117 ipv4->port_src = rte_cpu_to_be_16(key_in->key.ipv4_5tuple.port_src);
118 ipv4->port_dst = rte_cpu_to_be_16(key_in->key.ipv4_5tuple.port_dst);
131 ipv6->proto = key_in->key.ipv6_5tuple.proto;
133 memcpy(&ipv6->ip_src, &key_in->key.ipv6_5tuple.ip_src, 16);
134 memcpy(&ipv6->ip_dst, &key_in->key
153 struct pipeline_fc_key key; member in struct:app_pipeline_fc_flow
180 app_pipeline_fc_flow_find(struct app_pipeline_fc *p, struct pipeline_fc_key *key) argument
254 app_pipeline_fc_key_check(struct pipeline_fc_key *key) argument
558 app_pipeline_fc_add(struct app_params *app, uint32_t pipeline_id, struct pipeline_fc_key *key, uint32_t port_id, uint32_t flow_id) argument
650 app_pipeline_fc_add_bulk(struct app_params *app, uint32_t pipeline_id, struct pipeline_fc_key *key, uint32_t *port_id, uint32_t *flow_id, uint32_t n_keys) argument
851 app_pipeline_fc_del(struct app_params *app, uint32_t pipeline_id, struct pipeline_fc_key *key) argument
1232 struct pipeline_fc_key key; local
1295 struct pipeline_fc_key key; local
1378 struct pipeline_fc_key key; local
1677 struct pipeline_fc_key key; local
1715 struct pipeline_fc_key key; local
1773 struct pipeline_fc_key key; local
[all...]
H A Dpipeline_firewall.c55 struct pipeline_firewall_key key; member in struct:app_pipeline_firewall_rule
90 (rule->key.key.ipv4_5tuple.src_ip >> 24) & 0xFF,
91 (rule->key.key.ipv4_5tuple.src_ip >> 16) & 0xFF,
92 (rule->key.key.ipv4_5tuple.src_ip >> 8) & 0xFF,
93 rule->key.key.ipv4_5tuple.src_ip & 0xFF,
94 rule->key
116 app_pipeline_firewall_rule_find(struct app_pipeline_firewall *p, struct pipeline_firewall_key *key) argument
223 app_pipeline_firewall_key_check_and_normalize(struct pipeline_firewall_key *key) argument
376 app_pipeline_firewall_add_rule(struct app_params *app, uint32_t pipeline_id, struct pipeline_firewall_key *key, uint32_t priority, uint32_t port_id) argument
467 app_pipeline_firewall_delete_rule(struct app_params *app, uint32_t pipeline_id, struct pipeline_firewall_key *key) argument
1005 struct pipeline_firewall_key key; local
1215 struct pipeline_firewall_key key; local
[all...]
H A Dpipeline_routing.h47 struct pipeline_routing_route_key *key,
53 struct pipeline_routing_route_key *key);
71 struct pipeline_routing_arp_key *key,
77 struct pipeline_routing_arp_key *key);
H A Dpipeline_routing.c44 struct pipeline_routing_route_key key; member in struct:app_pipeline_routing_route
52 struct pipeline_routing_arp_key key; member in struct:app_pipeline_routing_arp_entry
132 key0.key.ipv4.ip = lp->ip & netmask;
133 key0.key.ipv4.depth = lp->depth;
137 key1.key.ipv4.ip = lp->ip;
138 key1.key.ipv4.depth = 32;
313 const struct pipeline_routing_route_key *key)
319 if ((key->type == it->key.type) &&
320 (key
312 app_pipeline_routing_find_route(struct pipeline_routing *p, const struct pipeline_routing_route_key *key) argument
331 app_pipeline_routing_find_arp_entry(struct pipeline_routing *p, const struct pipeline_routing_arp_key *key) argument
353 const struct pipeline_routing_route_key_ipv4 *key = local
457 app_pipeline_routing_add_route(struct app_params *app, uint32_t pipeline_id, struct pipeline_routing_route_key *key, struct pipeline_routing_route_data *data) argument
561 app_pipeline_routing_delete_route(struct app_params *app, uint32_t pipeline_id, struct pipeline_routing_route_key *key) argument
757 app_pipeline_routing_add_arp_entry(struct app_params *app, uint32_t pipeline_id, struct pipeline_routing_arp_key *key, struct ether_addr *macaddr) argument
853 app_pipeline_routing_delete_arp_entry(struct app_params *app, uint32_t pipeline_id, struct pipeline_routing_arp_key *key) argument
1128 struct pipeline_routing_route_key key; local
1299 struct pipeline_routing_route_key key; local
1440 struct pipeline_routing_arp_key key; local
1510 struct pipeline_routing_arp_key key; local
[all...]
H A Dhash_func.h37 hash_xor_key8(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
39 uint64_t *k = key;
48 hash_xor_key16(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
50 uint64_t *k = key;
59 hash_xor_key24(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
61 uint64_t *k = key;
72 hash_xor_key32(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
74 uint64_t *k = key;
86 hash_xor_key40(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
88 uint64_t *k = key;
102 hash_xor_key48(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
119 hash_xor_key56(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
137 hash_xor_key64(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
160 hash_crc_key8(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
171 hash_crc_key16(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
187 hash_crc_key24(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
206 hash_crc_key32(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
229 hash_crc_key40(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
252 hash_crc_key48(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
276 hash_crc_key56(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
303 hash_crc_key64(void *key, __rte_unused uint32_t key_size, uint64_t seed) argument
[all...]
H A Dpipeline_flow_classification.h73 } key; member in struct:pipeline_fc_key
79 struct pipeline_fc_key *key,
86 struct pipeline_fc_key *key,
94 struct pipeline_fc_key *key);
H A Dpipeline_firewall_be.c612 switch (req->key.type) {
616 req->key.key.ipv4_5tuple.proto;
618 req->key.key.ipv4_5tuple.proto_mask;
620 req->key.key.ipv4_5tuple.src_ip;
622 req->key.key.ipv4_5tuple.src_ip_mask;
624 req->key
[all...]
H A Dpipeline_routing_be.h96 } key; member in struct:pipeline_routing_route_key
149 } key; member in struct:pipeline_routing_arp_key
175 /* key */
176 struct pipeline_routing_route_key key; member in struct:pipeline_routing_route_add_msg_req
195 /* key */
196 struct pipeline_routing_route_key key; member in struct:pipeline_routing_route_delete_msg_req
239 /* key */
240 struct pipeline_routing_arp_key key; member in struct:pipeline_routing_arp_add_msg_req
259 /* key */
260 struct pipeline_routing_arp_key key; member in struct:pipeline_routing_arp_delete_msg_req
[all...]
H A Dpipeline_firewall.h43 struct pipeline_firewall_key *key,
50 struct pipeline_firewall_key *key);
/deb_dpdk/app/test-pipeline/
H A Dpipeline_lpm_ipv6.c150 struct rte_table_lpm_ipv6_key key; local
155 key.depth = 8 + __builtin_popcount(app.n_ports - 1);
159 memcpy(key.ip, &ip, sizeof(uint32_t));
165 key.ip[0], key.ip[1], key.ip[2], key.ip[3],
166 key.ip[4], key.ip[5], key
[all...]
/deb_dpdk/lib/librte_ip_frag/
H A Dip_frag_internal.c60 ip_frag_key_invalidate(&fp->key);
68 const struct ip_frag_key *key, uint64_t tms)
70 fp->key = key[0];
90 ipv4_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) argument
95 p = (const uint32_t *)&key->src_dst;
100 v = rte_hash_crc_4byte(key->id, v);
103 v = rte_jhash_3words(p[0], p[1], key->id, PRIME_VALUE);
111 ipv6_frag_hash(const struct ip_frag_key *key, uint32_t *v1, uint32_t *v2) argument
116 p = (const uint32_t *) &key
67 ip_frag_tbl_add(struct rte_ip_frag_tbl *tbl, struct ip_frag_pkt *fp, const struct ip_frag_key *key, uint64_t tms) argument
272 ip_frag_find(struct rte_ip_frag_tbl *tbl, struct rte_ip_frag_death_row *dr, const struct ip_frag_key *key, uint64_t tms) argument
334 ip_frag_lookup(struct rte_ip_frag_tbl *tbl, const struct ip_frag_key *key, uint64_t tms, struct ip_frag_pkt **free, struct ip_frag_pkt **stale) argument
[all...]
H A Dip_frag_common.h52 #define IPv6_KEY_BYTES(key) \
53 (key)[0], (key)[1], (key)[2], (key)[3]
64 const struct ip_frag_key *key, uint64_t tms);
67 const struct ip_frag_key *key, uint64_t tms,
77 * misc frag key functions
80 /* check if key is empty */
82 ip_frag_key_is_empty(const struct ip_frag_key * key) argument
89 ip_frag_key_invalidate(struct ip_frag_key * key) argument
[all...]
H A Drte_ipv4_reassembly.c135 struct ip_frag_key key; local
146 key.src_dst[0] = psd[0];
147 key.id = ip_hdr->packet_id;
148 key.key_len = IPV4_KEYLEN;
155 ", key: <%" PRIx64 ", %#x>, ofs: %u, len: %d, flags: %#x\n"
159 mb, tms, key.src_dst[0], key.id, ip_ofs, ip_len, ip_flag,
170 if ((fp = ip_frag_find(tbl, dr, &key, tms)) == NULL) {
177 "ipv4_frag_pkt: %p, key: <%" PRIx64 ", %#x>, start: %" PRIu64
181 fp, fp->key
[all...]
/deb_dpdk/lib/librte_kvargs/
H A Drte_kvargs.h45 * The same key can appear several times with the same or a different
46 * value. Indeed, the arguments are stored as a list of key/values
57 /** Maximum number of key/value associations */
63 /** separator character used between key and value */
67 typedef int (*arg_handler_t)(const char *key, const char *value, void *opaque);
69 /** A key/value association */
71 char *key; /**< the name (key) of the association */ member in struct:rte_kvargs_pair
72 char *value; /**< the value associated to that key */
75 /** Store a list of key/valu
[all...]
H A Drte_kvargs.c44 * key=value,key=value,... and insert them into the list.
64 /* browse each key/value pair and add it in kvlist */
74 kvlist->pairs[i].key = strtok_r(str, RTE_KVARGS_KV_DELIM, &ctx2);
76 if (kvlist->pairs[i].key == NULL || kvlist->pairs[i].value == NULL) {
78 "Cannot parse arguments: wrong key or value\n"
91 * Determine whether a key is valid or not by looking
119 ret = is_valid_key(valid, pair->key);
122 "Error parsing device, invalid key <%s>\n",
123 pair->key);
[all...]
/deb_dpdk/app/test/
H A Dtest_hash_functions.c51 * Hash values calculated for key sizes from array "hashtest_key_lens"
53 * Each key will be formed by increasing each byte by 1:
54 * e.g.: key size = 4, key = 0x03020100
55 * key size = 8, key = 0x0706050403020100
96 1, 2, /* Unusual key sizes */
97 4, 8, 16, 32, 48, 64, /* standard key sizes */
127 static uint8_t key[HASHTEST_ITERATIONS][MAX_KEYSIZE]; local
133 key[
178 uint8_t key[64]; local
218 uint8_t key[64]; local
255 uint32_t key[3]; local
[all...]
H A Dtest_hash_scaling.c75 uint64_t i, key; local
85 we use the thread-id in the key computation
87 key = rte_hash_crc(&i, sizeof(i), thr_id);
90 rte_hash_add_key(tbl_scaling_test_params.h, &key);
99 key = rte_hash_crc(&i, sizeof(i), thr_id);
102 rte_hash_add_key(tbl_scaling_test_params.h, &key);
111 key = rte_hash_crc(&i, sizeof(i), thr_id);
113 rte_hash_add_key(tbl_scaling_test_params.h, &key);
131 uint64_t i, key; local
134 .key_len = sizeof(key),
[all...]
/deb_dpdk/examples/l3fwd/
H A Dl3fwd_em_hlm_sse.h44 union ipv4_5tuple_host key[8]; local
72 key[0].xmm = _mm_and_si128(data[0], mask0.x);
73 key[1].xmm = _mm_and_si128(data[1], mask0.x);
74 key[2].xmm = _mm_and_si128(data[2], mask0.x);
75 key[3].xmm = _mm_and_si128(data[3], mask0.x);
76 key[4].xmm = _mm_and_si128(data[4], mask0.x);
77 key[5].xmm = _mm_and_si128(data[5], mask0.x);
78 key[6].xmm = _mm_and_si128(data[6], mask0.x);
79 key[7].xmm = _mm_and_si128(data[7], mask0.x);
81 const void *key_array[8] = {&key[
138 get_ipv6_5tuple(struct rte_mbuf *m0, __m128i mask0, __m128i mask1, union ipv6_5tuple_host *key) argument
168 union ipv6_5tuple_host key[8]; local
[all...]
/deb_dpdk/tools/
H A Dcpu_layout.py66 key = (core["physical id"], core["core id"]) variable
67 if key not in core_map:
68 core_map[key] = []
69 core_map[key].append(core["processor"])
/deb_dpdk/drivers/net/bonding/
H A Drte_eth_bond_args.c129 bond_ethdev_parse_slave_port_kvarg(const char *key __rte_unused,
139 if (strcmp(key, PMD_BOND_SLAVE_PORT_KVARG) == 0) {
152 bond_ethdev_parse_slave_mode_kvarg(const char *key __rte_unused,
185 bond_ethdev_parse_socket_id_kvarg(const char *key __rte_unused,
208 bond_ethdev_parse_primary_slave_port_id_kvarg(const char *key __rte_unused,
226 bond_ethdev_parse_balance_xmit_policy_kvarg(const char *key __rte_unused,
249 bond_ethdev_parse_bond_mac_addr_kvarg(const char *key __rte_unused,
261 bond_ethdev_parse_time_ms_kvarg(const char *key __rte_unused,

Completed in 23 milliseconds

123456