Home
last modified time | relevance | path

Searched refs:k2 (Results 1 – 13 of 13) sorted by relevance

/dpdk/lib/table/
H A Drte_table_hash_func.h105 uint64_t k0, k2, crc0, crc1;
108 k2 = k[2] & m[2]; in rte_table_hash_crc_key32()
113 crc0 = rte_crc32_u64(crc0, k2); in rte_table_hash_crc_key32()
127 uint64_t k0, k2, crc0, crc1, crc2, crc3; in rte_table_hash_crc_key32()
130 k2 = k[2] & m[2];
135 crc2 = rte_crc32_u64(k2, k[3] & m[3]); in rte_table_hash_crc_key40()
136 crc3 = k2 >> 32; in rte_table_hash_crc_key40()
153 uint64_t k0, k2, crc0, crc1, crc2, crc3; in rte_table_hash_crc_key40()
156 k2 = k[2] & m[2];
161 crc2 = rte_crc32_u64(k2, in rte_table_hash_crc_key48()
89 uint64_t k0, k2, crc0, crc1; rte_table_hash_crc_key24() local
111 uint64_t k0, k2, crc0, crc1, crc2, crc3; rte_table_hash_crc_key32() local
137 uint64_t k0, k2, crc0, crc1, crc2, crc3; rte_table_hash_crc_key40() local
163 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3; rte_table_hash_crc_key48() local
190 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3, crc4, crc5; rte_table_hash_crc_key56() local
220 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3, crc4, crc5; rte_table_hash_crc_key64() local
[all...]
H A Drte_swx_table_selector.c94 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3, crc4, crc5; in hash() local
113 k2 = k[2] & m[2]; in hash()
118 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
119 crc3 = k2 >> 32; in hash()
130 k2 = k[2] & m[2]; in hash()
136 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
137 crc3 = crc32_u64(k2 >> 32, k[4] & m[4]); in hash()
/dpdk/lib/gro/
H A Dgro_tcp6.h143 is_same_tcp6_flow(struct tcp6_flow_key *k1, struct tcp6_flow_key *k2) in is_same_tcp6_flow()
147 if (memcmp(&k1->src_addr, &k2->src_addr, 16)) in is_same_tcp6_flow()
149 if (memcmp(&k1->dst_addr, &k2->dst_addr, 16)) in is_same_tcp6_flow()
155 vtc_flow_diff = (k1->vtc_flow ^ k2->vtc_flow); in is_same_tcp6_flow()
159 return is_same_common_tcp_key(&k1->cmn_key, &k2->cmn_key);
141 is_same_tcp6_flow(struct tcp6_flow_key * k1,struct tcp6_flow_key * k2) is_same_tcp6_flow() argument
H A Dgro_tcp.h32 #define ASSIGN_COMMON_TCP_KEY(k1, k2) \ argument
34 rte_ether_addr_copy(&(k1->eth_saddr), &(k2->eth_saddr)); \
35 rte_ether_addr_copy(&(k1->eth_daddr), &(k2->eth_daddr)); \
36 k2->recv_ack = k1->recv_ack; \
37 k2->src_port = k1->src_port; \
38 k2->dst_port = k1->dst_port; \
194 is_same_common_tcp_key(struct cmn_tcp_key *k1, struct cmn_tcp_key *k2) in is_same_common_tcp_key() argument
196 return (!memcmp(k1, k2, sizeof(struct cmn_tcp_key))); in is_same_common_tcp_key()
H A Dgro_tcp4.h140 is_same_tcp4_flow(struct tcp4_flow_key k1, struct tcp4_flow_key k2) in is_same_tcp4_flow() argument
142 return ((k1.ip_src_addr == k2.ip_src_addr) && in is_same_tcp4_flow()
143 (k1.ip_dst_addr == k2.ip_dst_addr) && in is_same_tcp4_flow()
144 is_same_common_tcp_key(&k1.cmn_key, &k2.cmn_key)); in is_same_tcp4_flow()
H A Dgro_udp4.h177 is_same_udp4_flow(struct udp4_flow_key k1, struct udp4_flow_key k2) in is_same_udp4_flow() argument
179 return (rte_is_same_ether_addr(&k1.eth_saddr, &k2.eth_saddr) && in is_same_udp4_flow()
180 rte_is_same_ether_addr(&k1.eth_daddr, &k2.eth_daddr) && in is_same_udp4_flow()
181 (k1.ip_src_addr == k2.ip_src_addr) && in is_same_udp4_flow()
182 (k1.ip_dst_addr == k2.ip_dst_addr) && in is_same_udp4_flow()
183 (k1.ip_id == k2.ip_id)); in is_same_udp4_flow()
H A Dgro_vxlan_tcp4.c187 struct vxlan_tcp4_flow_key k2) in is_same_vxlan_tcp4_flow() argument
190 &k2.outer_eth_saddr) && in is_same_vxlan_tcp4_flow()
192 &k2.outer_eth_daddr) && in is_same_vxlan_tcp4_flow()
193 (k1.outer_ip_src_addr == k2.outer_ip_src_addr) && in is_same_vxlan_tcp4_flow()
194 (k1.outer_ip_dst_addr == k2.outer_ip_dst_addr) && in is_same_vxlan_tcp4_flow()
195 (k1.outer_src_port == k2.outer_src_port) && in is_same_vxlan_tcp4_flow()
196 (k1.outer_dst_port == k2.outer_dst_port) && in is_same_vxlan_tcp4_flow()
197 (k1.vxlan_hdr.vx_flags == k2.vxlan_hdr.vx_flags) && in is_same_vxlan_tcp4_flow()
198 (k1.vxlan_hdr.vx_vni == k2.vxlan_hdr.vx_vni) && in is_same_vxlan_tcp4_flow()
199 is_same_tcp4_flow(k1.inner_key, k2.inner_key)); in is_same_vxlan_tcp4_flow()
H A Dgro_vxlan_udp4.c184 struct vxlan_udp4_flow_key k2) in is_same_vxlan_udp4_flow() argument
193 &k2.outer_eth_saddr) && in is_same_vxlan_udp4_flow()
195 &k2.outer_eth_daddr) && in is_same_vxlan_udp4_flow()
196 (k1.outer_ip_src_addr == k2.outer_ip_src_addr) && in is_same_vxlan_udp4_flow()
197 (k1.outer_ip_dst_addr == k2.outer_ip_dst_addr) && in is_same_vxlan_udp4_flow()
198 (k1.outer_dst_port == k2.outer_dst_port) && in is_same_vxlan_udp4_flow()
199 (k1.vxlan_hdr.vx_flags == k2.vxlan_hdr.vx_flags) && in is_same_vxlan_udp4_flow()
200 (k1.vxlan_hdr.vx_vni == k2.vxlan_hdr.vx_vni) && in is_same_vxlan_udp4_flow()
201 is_same_udp4_flow(k1.inner_key, k2.inner_key)); in is_same_vxlan_udp4_flow()
/dpdk/lib/ip_frag/
H A Dip_frag_common.h90 ip_frag_key_cmp(const struct ip_frag_key * k1, const struct ip_frag_key * k2) in ip_frag_key_cmp() argument
93 return (k1->id_key_len != k2->id_key_len) || in ip_frag_key_cmp()
94 (k1->key_len == IPV4_KEYLEN ? k1->src_dst[0] != k2->src_dst[0] : in ip_frag_key_cmp()
95 rte_hash_k32_cmp_eq(k1, k2, 32)); in ip_frag_key_cmp()
99 val = k1->id_key_len ^ k2->id_key_len; in ip_frag_key_cmp()
101 val |= k1->src_dst[i] ^ k2->src_dst[i]; in ip_frag_key_cmp()
/dpdk/lib/net/
H A Dnet_crc_sse.c262 uint64_t k1, k2, k5, k6; in rte_net_crc_sse42_init() local
267 k2 = 0x8e10LLU; in rte_net_crc_sse42_init()
274 crc16_ccitt_pclmulqdq.rk1_rk2 = _mm_set_epi64x(k2, k1); in rte_net_crc_sse42_init()
280 k2 = 0x1751997d0LLU; in rte_net_crc_sse42_init()
287 crc32_eth_pclmulqdq.rk1_rk2 = _mm_set_epi64x(k2, k1); in rte_net_crc_sse42_init()
/dpdk/drivers/common/cnxk/
H A Droc_aes.c206 uint8_t k2[16] = {[0 ... 15] = 0x02}; in roc_aes_xcbc_key_derive() local
214 cipher(k2, derived_key, aes_ks, KEY128_ROUNDS, sizeof(k2)); in roc_aes_xcbc_key_derive()
215 derived_key += sizeof(k2); in roc_aes_xcbc_key_derive()
/dpdk/lib/hash/
H A Drte_cmp_x86.h12 const __m128i k2 = _mm_loadu_si128((const __m128i *) key2); in rte_hash_k16_cmp_eq() local
13 const __m128i x = _mm_xor_si128(k1, k2); in rte_hash_k16_cmp_eq()
/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c611 unsigned char k2[AES_BLOCK_SIZE] = {0}; in generate_cmac_subkeys() local
649 prepare_key(k2, k1, AES_BLOCK_SIZE); in generate_cmac_subkeys()
651 *ccp_ctx = k2[i]; in generate_cmac_subkeys()