| /dpdk/lib/hash/ |
| H A D | rte_jhash.h | 45 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument 115 c += k[2]; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() 117 c += k[2] & LOWER24b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() 119 c += k[2] & LOWER16b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() 121 c += k[2] & LOWER8b_MASK; b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() 123 b += k[1]; a += k[0]; break; in __rte_jhash_2hashes() 147 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes() 148 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes() 149 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes() 159 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes() [all …]
|
| /dpdk/app/test/ |
| H A D | test_lpm6_data.h | 1047 int k; in mask_ip6_prefix() local 1050 for (k = 0; k < 16; k++) { in mask_ip6_prefix() 1052 ip_out[k] = ip_in[k]; in mask_ip6_prefix() 1056 ip_out[k] = (ip_in[k] & mask_in) in mask_ip6_prefix() 1071 int k; in check_lpm6_rule() local 1074 for (k = 0; k < 16; k++) { in check_lpm6_rule() 1076 if (ip[k] != ip_rule[k]) in check_lpm6_rule() 1080 if ((ip[k] & mask) == (ip_rule[k] & mask)) in check_lpm6_rule() 1138 k++; in generate_large_ips_table() 1141 k = 0; in generate_large_ips_table() [all …]
|
| H A D | test_ring_stress.c | 11 uint32_t i, k; in run_test() local 13 for (i = 0, k = 0; i != test->nb_case; i++) { in run_test() 19 k += (rc == 0); in run_test() 29 return k; in run_test() 35 uint32_t n, k; in test_ring_stress() local 38 k = 0; in test_ring_stress() 41 k += run_test(&test_ring_mpmc_stress); in test_ring_stress() 44 k += run_test(&test_ring_rts_stress); in test_ring_stress() 47 k += run_test(&test_ring_hts_stress); in test_ring_stress() 62 n, k, n - k); in test_ring_stress() [all …]
|
| H A D | test_hash_perf.c | 162 uint8_t k = 0; in get_input_keys() local 413 for (k = 0; k < BURST_SIZE; k++) in timed_lookups_multi() 414 keys_burst[k] = keys[j * BURST_SIZE + k]; in timed_lookups_multi() 426 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_multi() 433 if (ret_data[k] != expected_data[k]) { in timed_lookups_multi() 436 ret_data[k], expected_data[k]); in timed_lookups_multi() 452 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_multi() 462 if (ret_data[k] != expected_data[k]) { in timed_lookups_multi() 478 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_multi() 494 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_multi() [all …]
|
| H A D | test_member_perf.c | 285 unsigned int i, j, k; in timed_lookups_bulk() local 296 for (k = 0; k < BURST_SIZE; k++) in timed_lookups_bulk() 297 keys_burst[k] = keys[j * BURST_SIZE + k]; in timed_lookups_bulk() 307 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_bulk() 372 unsigned int i, j, k; in timed_lookups_multimatch_bulk() local 384 for (k = 0; k < BURST_SIZE; k++) in timed_lookups_multimatch_bulk() 385 keys_burst[k] = keys[j * BURST_SIZE + k]; in timed_lookups_multimatch_bulk() 397 for (k = 0; k < BURST_SIZE; k++) { in timed_lookups_multimatch_bulk() 521 unsigned int i, j, k; in run_all_tbl_perf_tests() local 540 for (k = 0; k < NUM_SHUFFLES; k++) in run_all_tbl_perf_tests() [all …]
|
| /dpdk/lib/table/ |
| H A D | rte_table_hash_func.h | 79 k0 = k[0] & m[0]; in rte_table_hash_crc_key16() 98 k0 = k[0] & m[0]; in rte_table_hash_crc_key24() 99 k2 = k[2] & m[2]; in rte_table_hash_crc_key24() 120 k0 = k[0] & m[0]; in rte_table_hash_crc_key32() 121 k2 = k[2] & m[2]; in rte_table_hash_crc_key32() 146 k0 = k[0] & m[0]; in rte_table_hash_crc_key40() 147 k2 = k[2] & m[2]; in rte_table_hash_crc_key40() 172 k0 = k[0] & m[0]; in rte_table_hash_crc_key48() 173 k2 = k[2] & m[2]; in rte_table_hash_crc_key48() 174 k5 = k[5] & m[5]; in rte_table_hash_crc_key48() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_nix_tm_utils.c | 496 k++; in nix_tm_tl1_default_prep() 500 k++; in nix_tm_tl1_default_prep() 504 k++; in nix_tm_tl1_default_prep() 565 k++; in nix_tm_topology_reg_prep() 570 k++; in nix_tm_topology_reg_prep() 577 k++; in nix_tm_topology_reg_prep() 581 k++; in nix_tm_topology_reg_prep() 594 k++; in nix_tm_topology_reg_prep() 598 k++; in nix_tm_topology_reg_prep() 617 k++; in nix_tm_topology_reg_prep() [all …]
|
| H A D | roc_nix_debug.c | 868 uint8_t k = 0; in nix_tm_reg_dump_prep() local 872 reg[k] = NIX_AF_SMQX_CFG(schq); in nix_tm_reg_dump_prep() 884 reg[k] = NIX_AF_MDQX_PIR(schq); in nix_tm_reg_dump_prep() 1029 return k; in nix_tm_reg_dump_prep() 1044 uint8_t j, k, rc; in nix_tm_dump_lvl() local 1085 if (!k) in nix_tm_dump_lvl() 1091 req->num_regs = k; in nix_tm_dump_lvl() 1095 for (j = 0; j < k; j++) in nix_tm_dump_lvl() 1110 if (!k) in nix_tm_dump_lvl() 1116 req->num_regs = k; in nix_tm_dump_lvl() [all …]
|
| H A D | roc_nix_tm_mark.c | 46 uint8_t k = 0; in prepare_tm_shaper_red_algo() local 58 reg[k] = NIX_AF_MDQX_SHAPE(schq); in prepare_tm_shaper_red_algo() 59 k++; in prepare_tm_shaper_red_algo() 62 reg[k] = NIX_AF_TL4X_SHAPE(schq); in prepare_tm_shaper_red_algo() 63 k++; in prepare_tm_shaper_red_algo() 66 reg[k] = NIX_AF_TL3X_SHAPE(schq); in prepare_tm_shaper_red_algo() 67 k++; in prepare_tm_shaper_red_algo() 71 k++; in prepare_tm_shaper_red_algo() 77 return k; in prepare_tm_shaper_red_algo() 88 uint8_t k; in nix_tm_update_red_algo() local [all …]
|
| /dpdk/lib/ipsec/ |
| H A D | esp_outb.c | 311 k = 0; in esp_outb_tun_prepare() 325 k++; in esp_outb_tun_prepare() 334 if (k != n && k != 0) in esp_outb_tun_prepare() 459 k = 0; in esp_outb_trs_prepare() 476 k++; in esp_outb_trs_prepare() 485 if (k != n && k != 0) in esp_outb_trs_prepare() 579 iv[k].va = ivbuf[k]; in cpu_outb_pkt_prepare() 589 if (k != n && k != 0) in cpu_outb_pkt_prepare() 631 k = 0; in esp_outb_sqh_process() 772 if (k != num && k != 0) in inline_outb_tun_pkt_process() [all …]
|
| H A D | esp_inb.c | 379 k = 0; in esp_inb_pkt_prepare() 387 k++; in esp_inb_pkt_prepare() 397 if (k != num && k != 0) in esp_inb_pkt_prepare() 439 k = RTE_MIN(k, len - n); in check_pad_bytes() 599 k = 0; in tun_process() 623 k++; in tun_process() 734 if (k != num && k != 0) in esp_inb_pkt_process() 742 move_bad_mbufs(mb, dr, k, k - n); in esp_inb_pkt_process() 787 l4ofs + k, rc, ivbuf[k]); in cpu_inb_pkt_prepare() 790 iv[k].va = ivbuf[k]; in cpu_inb_pkt_prepare() [all …]
|
| H A D | misc.h | 22 uint32_t i, j, k; in move_bad_mbufs() local 26 k = 0; in move_bad_mbufs() 33 mb[k++] = mb[i]; in move_bad_mbufs() 38 mb[k + i] = drb[i]; in move_bad_mbufs() 49 uint32_t k, n, plen; in mbuf_get_seg_ofs() local 60 for (k = rte_pktmbuf_data_len(ms); n >= k; in mbuf_get_seg_ofs() 61 k = rte_pktmbuf_data_len(ms)) { in mbuf_get_seg_ofs() 63 n -= k; in mbuf_get_seg_ofs()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipsec_process.c | 51 k = 0; in enqueue_cop_bulk() 62 k += n; in enqueue_cop_bulk() 205 if (k != 0) in ipsec_prepare_crypto_group() 208 return k; in ipsec_prepare_crypto_group() 270 return k; in ipsec_process_inline_group() 288 k = rte_ipsec_pkt_process(ips, mb, k); in ipsec_process_cpu_group() 290 return k; in ipsec_process_cpu_group() 327 k = 0; in ipsec_process() 348 k = 0; in ipsec_process() 354 free_pkts(pg->m + k, pg->cnt - k); in ipsec_process() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.h | 536 for (k = e_start; k < MLX5_L3T_ET_SIZE; k++) { in mlx5_l3t_get_next() 537 if (!w_e_tbl->entry[k].data) in mlx5_l3t_get_next() 540 (j << MLX5_L3T_MT_OFFSET) | k; in mlx5_l3t_get_next() 546 for (k = e_start; k < MLX5_L3T_ET_SIZE; k++) { in mlx5_l3t_get_next() 547 if (!dw_e_tbl->entry[k].data) in mlx5_l3t_get_next() 550 (j << MLX5_L3T_MT_OFFSET) | k; in mlx5_l3t_get_next() 556 for (k = e_start; k < MLX5_L3T_ET_SIZE; k++) { in mlx5_l3t_get_next() 557 if (!qw_e_tbl->entry[k].data) in mlx5_l3t_get_next() 566 for (k = e_start; k < MLX5_L3T_ET_SIZE; k++) { in mlx5_l3t_get_next() 567 if (!ptr_e_tbl->entry[k].data) in mlx5_l3t_get_next() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | lookup3.h | 16 #define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) argument 121 static inline uint32_t hashword(const uint32_t *k, in hashword() argument 134 a += k[index]; in hashword() 135 b += k[index - 1]; in hashword() 136 c += k[index - 2]; in hashword() 145 c += k[index - 2]; in hashword() 148 b += k[index - 1]; in hashword() 151 a += k[index]; in hashword()
|
| /dpdk/app/test-fib/ |
| H A D | main.c | 328 rt[k].addr = 0; in gen_random_rt_4() 329 rt[k].depth = 0; in gen_random_rt_4() 367 rt[k].depth = 0; in gen_random_rt_6() 898 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v4() 924 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v4() 986 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v4() 997 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v4() 1093 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v6() 1119 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v6() 1185 for (k = config.print_fract, i = 0; k > 0; k--) { in run_v6() [all …]
|
| /dpdk/lib/acl/ |
| H A D | acl_run_avx512.c | 43 uint32_t i, j, k, m, n; in update_flow_mask() local 48 k = __builtin_popcount(m); in update_flow_mask() 51 if (n < k) { in update_flow_mask() 53 for (i = k - n; i != 0; i--) { in update_flow_mask() 58 n = k; in update_flow_mask() 76 uint32_t i, j, k, mi, mn; in resolve_mcle8_avx512x1() local 83 for (k = 0; k != nb_pkt; k++, result += nb_cat) { in resolve_mcle8_avx512x1() 85 mi = match[k] << ACL_MATCH_LOG; in resolve_mcle8_avx512x1() 95 mn = j + (pm[k] << ACL_MATCH_LOG); in resolve_mcle8_avx512x1()
|
| /dpdk/drivers/baseband/turbo_sw/ |
| H A D | bbdev_turbo_software.c | 115 compute_idx(uint16_t k) in compute_idx() argument 119 if (k < RTE_BBDEV_TURBO_MIN_CB_SIZE || k > RTE_BBDEV_TURBO_MAX_CB_SIZE) in compute_idx() 122 if (k > 2048) { in compute_idx() 127 } else if (k <= 512) { in compute_idx() 507 in_length, k); in is_enc_input_valid() 827 RTE_SET_USED(k); in process_enc_cb() 988 uint16_t k, ncb; in enqueue_enc_one_op() local 1039 k = enc->cb_params.k; in enqueue_enc_one_op() 1315 turbo_req.k = k; in process_dec_cb() 1347 RTE_SET_USED(k); in process_dec_cb() [all …]
|
| /dpdk/examples/fips_validation/ |
| H A D | main.c | 1382 for (k = 0; k < TDES_BLOCK_SIZE; k++) { in fips_mct_tdes_test() 1386 val_key.val[k] ^= val.val[k]; in fips_mct_tdes_test() 1391 val_key.val[k] ^= val.val[k]; in fips_mct_tdes_test() 1396 val_key.val[k] ^= val.val[k]; in fips_mct_tdes_test() 1404 for (k = 0; k < 24; k++) in fips_mct_tdes_test() 1482 for (k = 0; k < vec.cipher_auth.key.len; k++) { in fips_mct_aes_ecb_test() 1485 val_key.val[k] ^= val.val[k]; in fips_mct_aes_ecb_test() 1495 val_key.val[k] ^= prev_out[k]; in fips_mct_aes_ecb_test() 1587 for (k = 0; k < vec.cipher_auth.key.len; k++) { in fips_mct_aes_test() 1590 val_key.val[k] ^= val.val[k]; in fips_mct_aes_test() [all …]
|
| /dpdk/drivers/net/dpaa/ |
| H A D | dpaa_flow.c | 164 int k; in set_hash_params_eth() local 166 for (k = 0; k < 2; k++) { in set_hash_params_eth() 189 int k; in set_hash_params_ipv4() local 191 for (k = 0; k < 2; k++) { in set_hash_params_ipv4() 214 int k; in set_hash_params_ipv6() local 216 for (k = 0; k < 2; k++) { in set_hash_params_ipv6() 239 int k; in set_hash_params_udp() local 241 for (k = 0; k < 2; k++) { in set_hash_params_udp() 264 int k; in set_hash_params_tcp() local 266 for (k = 0; k < 2; k++) { in set_hash_params_tcp() [all …]
|
| /dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa_mem.c | 200 uint64_t k; in mlx5_vdpa_mem_register() local 247 for (k = 0; k < empty_region_sz; in mlx5_vdpa_mem_register() 248 k += klm_size) { in mlx5_vdpa_mem_register() 250 k + klm_size > empty_region_sz ? in mlx5_vdpa_mem_register() 251 empty_region_sz - k : klm_size; in mlx5_vdpa_mem_register() 254 klm_array[klm_index].address = sadd + k; in mlx5_vdpa_mem_register() 261 for (k = 0; k < reg->size; k += klm_size) { in mlx5_vdpa_mem_register() 262 klm_array[klm_index].byte_count = k + klm_size > in mlx5_vdpa_mem_register() 263 reg->size ? reg->size - k : klm_size; in mlx5_vdpa_mem_register() 265 klm_array[klm_index].address = reg->guest_phys_addr + k; in mlx5_vdpa_mem_register()
|
| /dpdk/drivers/net/mvpp2/ |
| H A D | mrvl_flow.c | 189 const uint8_t *k, *m; in mrvl_parse_mac() local 211 k[0], k[1], k[2], k[3], k[4], k[5]); in mrvl_parse_mac() 272 uint16_t k; in mrvl_parse_type() local 308 uint16_t k; in mrvl_parse_vlan_id() local 344 uint16_t k; in mrvl_parse_vlan_pri() local 380 uint8_t k, m; in mrvl_parse_ip4_dscp() local 420 struct in_addr k; in mrvl_parse_ip4_addr() local 423 memset(&k, 0, sizeof(k)); in mrvl_parse_ip4_addr() 542 memset(&k, 0, sizeof(k)); in mrvl_parse_ip6_addr() 695 uint16_t k; in mrvl_parse_tcp_port() local [all …]
|
| /dpdk/lib/net/ |
| H A D | net_crc_neon.c | 131 uint64x2_t temp, fold, k; in crc32_eth_calc_pmull() local 169 k = params->rk1_rk2; in crc32_eth_calc_pmull() 179 k = params->rk1_rk2; in crc32_eth_calc_pmull() 182 fold = crcr32_folding_round(temp, k, fold); in crc32_eth_calc_pmull() 199 vgetq_lane_p64(vreinterpretq_p64_u64(k), 0))); in crc32_eth_calc_pmull() 202 vgetq_lane_p64(vreinterpretq_p64_u64(k), 1))); in crc32_eth_calc_pmull() 209 k = params->rk5_rk6; in crc32_eth_calc_pmull() 210 fold = crcr32_reduce_128_to_64(fold, k); in crc32_eth_calc_pmull() 213 k = params->rk7_rk8; in crc32_eth_calc_pmull() 214 n = crcr32_reduce_64_to_32(fold, k); in crc32_eth_calc_pmull()
|
| H A D | net_crc_sse.c | 157 __m128i temp, fold, k; in crc32_eth_calc_pclmulqdq() local 196 k = params->rk1_rk2; in crc32_eth_calc_pclmulqdq() 206 k = params->rk1_rk2; in crc32_eth_calc_pclmulqdq() 209 fold = crcr32_folding_round(temp, k, fold); in crc32_eth_calc_pclmulqdq() 240 temp = _mm_clmulepi64_si128(a, k, 0x01); in crc32_eth_calc_pclmulqdq() 241 fold = _mm_clmulepi64_si128(a, k, 0x10); in crc32_eth_calc_pclmulqdq() 249 k = params->rk5_rk6; in crc32_eth_calc_pclmulqdq() 250 fold = crcr32_reduce_128_to_64(fold, k); in crc32_eth_calc_pclmulqdq() 253 k = params->rk7_rk8; in crc32_eth_calc_pclmulqdq() 254 n = crcr32_reduce_64_to_32(fold, k); in crc32_eth_calc_pclmulqdq()
|
| /dpdk/drivers/net/atlantic/hw_atl/ |
| H A D | hw_atl_utils.c | 91 int k = 0; in hw_atl_utils_soft_reset_flb() local 117 for (k = 0; k < 1000; k++) { in hw_atl_utils_soft_reset_flb() 126 if (k == 1000) { in hw_atl_utils_soft_reset_flb() 147 for (k = 0; k < 1000; k++) { in hw_atl_utils_soft_reset_flb() 154 if (k == 1000) { in hw_atl_utils_soft_reset_flb() 167 int k; in hw_atl_utils_soft_reset_rbl() local 196 for (k = 0; k < 1000; k++) { in hw_atl_utils_soft_reset_rbl() 216 for (k = 0; k < 1000; k++) { in hw_atl_utils_soft_reset_rbl() 223 if (k == 1000) { in hw_atl_utils_soft_reset_rbl() 236 int k; in hw_atl_utils_soft_reset() local [all …]
|