Home
last modified time | relevance | path

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

/dpdk/lib/table/
H A Drte_table_hash_func.h96 uint64_t k0, k2, crc0, crc1; in rte_table_hash_crc_key24() local
99 k2 = k[2] & m[2]; in rte_table_hash_crc_key24()
104 crc0 = rte_crc32_u64(crc0, k2); in rte_table_hash_crc_key24()
121 k2 = k[2] & m[2]; in rte_table_hash_crc_key32()
126 crc2 = rte_crc32_u64(k2, k[3] & m[3]); in rte_table_hash_crc_key32()
127 crc3 = k2 >> 32; in rte_table_hash_crc_key32()
147 k2 = k[2] & m[2]; in rte_table_hash_crc_key40()
152 crc2 = rte_crc32_u64(k2, k[3] & m[3]); in rte_table_hash_crc_key40()
173 k2 = k[2] & m[2]; in rte_table_hash_crc_key48()
200 k2 = k[2] & m[2]; in rte_table_hash_crc_key56()
[all …]
H A Drte_swx_table_learner.c99 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3, crc4, crc5; in hash() local
118 k2 = k[2] & m[2]; in hash()
123 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
124 crc3 = k2 >> 32; in hash()
135 k2 = k[2] & m[2]; in hash()
141 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
142 crc3 = crc32_u64(k2 >> 32, k[4] & m[4]); in hash()
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()
H A Drte_swx_table_em.c91 uint64_t k0, k2, k5, crc0, crc1, crc2, crc3, crc4, crc5; in hash() local
110 k2 = k[2] & m[2]; in hash()
115 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
116 crc3 = k2 >> 32; in hash()
127 k2 = k[2] & m[2]; in hash()
133 crc2 = crc32_u64(k2, k[3] & m[3]); in hash()
134 crc3 = crc32_u64(k2 >> 32, k[4] & m[4]); in hash()
/dpdk/lib/gro/
H A Dgro_tcp4.h187 is_same_tcp4_flow(struct tcp4_flow_key k1, struct tcp4_flow_key k2) in is_same_tcp4_flow() argument
189 return (rte_is_same_ether_addr(&k1.eth_saddr, &k2.eth_saddr) && in is_same_tcp4_flow()
190 rte_is_same_ether_addr(&k1.eth_daddr, &k2.eth_daddr) && in is_same_tcp4_flow()
191 (k1.ip_src_addr == k2.ip_src_addr) && in is_same_tcp4_flow()
192 (k1.ip_dst_addr == k2.ip_dst_addr) && in is_same_tcp4_flow()
193 (k1.recv_ack == k2.recv_ack) && in is_same_tcp4_flow()
194 (k1.src_port == k2.src_port) && in is_same_tcp4_flow()
195 (k1.dst_port == k2.dst_port)); 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.c193 struct vxlan_tcp4_flow_key k2) in is_same_vxlan_tcp4_flow() argument
196 &k2.outer_eth_saddr) && in is_same_vxlan_tcp4_flow()
198 &k2.outer_eth_daddr) && in is_same_vxlan_tcp4_flow()
199 (k1.outer_ip_src_addr == k2.outer_ip_src_addr) && in is_same_vxlan_tcp4_flow()
200 (k1.outer_ip_dst_addr == k2.outer_ip_dst_addr) && in is_same_vxlan_tcp4_flow()
201 (k1.outer_src_port == k2.outer_src_port) && in is_same_vxlan_tcp4_flow()
202 (k1.outer_dst_port == k2.outer_dst_port) && in is_same_vxlan_tcp4_flow()
203 (k1.vxlan_hdr.vx_flags == k2.vxlan_hdr.vx_flags) && in is_same_vxlan_tcp4_flow()
204 (k1.vxlan_hdr.vx_vni == k2.vxlan_hdr.vx_vni) && in is_same_vxlan_tcp4_flow()
205 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/drivers/net/ice/base/
H A Dice_tmatch.h11 u8 k1, k2, v; in ice_ternary_match_byte() local
16 k2 = (u8)(key_inv & (1 << i)); in ice_ternary_match_byte()
19 if (k1 != 0 && k2 != 0) in ice_ternary_match_byte()
21 if (k1 == 0 && k2 == 0) in ice_ternary_match_byte()
/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()
275 _mm_setr_epi64(_mm_cvtsi64_m64(k1), _mm_cvtsi64_m64(k2)); in rte_net_crc_sse42_init()
283 k2 = 0x1751997d0LLU; in rte_net_crc_sse42_init()
291 _mm_setr_epi64(_mm_cvtsi64_m64(k1), _mm_cvtsi64_m64(k2)); in rte_net_crc_sse42_init()
/dpdk/drivers/common/cnxk/
H A Droc_aes.c196 uint8_t k2[16] = {[0 ... 15] = 0x02}; in roc_aes_xcbc_key_derive() local
204 cipher(k2, derived_key, aes_ks); in roc_aes_xcbc_key_derive()
205 derived_key += sizeof(k2); in roc_aes_xcbc_key_derive()
/dpdk/lib/ip_frag/
H A Dip_frag_common.h74 ip_frag_key_cmp(const struct ip_frag_key * k1, const struct ip_frag_key * k2) in ip_frag_key_cmp() argument
78 val = k1->id_key_len ^ k2->id_key_len; in ip_frag_key_cmp()
80 val |= k1->src_dst[i] ^ k2->src_dst[i]; in ip_frag_key_cmp()
/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/ipsec_mb/
H A Dpmd_aesni_mb_priv.h918 uint8_t k2[16] __rte_aligned(16); member
H A Dpmd_aesni_mb.c110 sess->auth.xcbc.k2, sess->auth.xcbc.k3); in aesni_mb_set_session_auth_parameters()
1005 job->u.XCBC._k2 = session->auth.xcbc.k2; in set_cpu_mb_job_params()
1152 job->u.XCBC._k2 = session->auth.xcbc.k2; in set_mb_job_params()
/dpdk/drivers/crypto/qat/
H A Dqat_sym_session.c1234 uint8_t *k1, *k2; in qat_sym_do_precomputes() local
1259 k2 = k1 + ICP_QAT_HW_AES_XCBC_MAC_STATE1_SZ; in qat_sym_do_precomputes()
1262 aes_cmac_key_derive(k1, k2); in qat_sym_do_precomputes()
/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c612 unsigned char k2[AES_BLOCK_SIZE] = {0}; in generate_cmac_subkeys() local
650 prepare_key(k2, k1, AES_BLOCK_SIZE); in generate_cmac_subkeys()
652 *ccp_ctx = k2[i]; in generate_cmac_subkeys()