| /dpdk/app/test/ |
| H A D | test_meter.c | 113 struct rte_meter_trtcm_profile tp; in tm_test_trtcm_config() local 165 struct rte_meter_trtcm_rfc4115_profile tp; in tm_test_trtcm_rfc4115_config() local 265 struct rte_meter_trtcm_profile tp; in tm_test_trtcm_color_blind_check() local 272 if (rte_meter_trtcm_config(&tm, &tp) != 0) in tm_test_trtcm_color_blind_check() 276 &tm, &tp, time, TM_TEST_TRTCM_CBS_DF - 1) in tm_test_trtcm_color_blind_check() 283 if (rte_meter_trtcm_config(&tm, &tp) != 0) in tm_test_trtcm_color_blind_check() 287 &tm, &tp, time, TM_TEST_TRTCM_CBS_DF + 1) in tm_test_trtcm_color_blind_check() 293 if (rte_meter_trtcm_config(&tm, &tp) != 0) in tm_test_trtcm_color_blind_check() 297 &tm, &tp, time, TM_TEST_TRTCM_PBS_DF - 1) in tm_test_trtcm_color_blind_check() 304 if (rte_meter_trtcm_config(&tm, &tp) != 0) in tm_test_trtcm_color_blind_check() [all …]
|
| H A D | test_trace_register.c | 9 RTE_TRACE_POINT_REGISTER(app_dpdk_test_tp, app.dpdk.test.tp)
|
| /dpdk/app/test-bbdev/ |
| H A D | main.c | 203 tp->iter_max = DEFAULT_ITER; in parse_args() 260 tp->snr = strtod(optarg, NULL); in parse_args() 277 tp->init_device = true; in parse_args() 287 if (tp->num_ops == 0) { in parse_args() 291 tp->num_ops = DEFAULT_OPS; in parse_args() 293 if (tp->burst_sz == 0) { in parse_args() 297 tp->burst_sz = DEFAULT_BURST; in parse_args() 299 if (tp->num_lcores == 0) { in parse_args() 306 TEST_ASSERT(tp->burst_sz <= tp->num_ops, in parse_args() 308 tp->burst_sz, tp->num_ops); in parse_args() [all …]
|
| H A D | test_bbdev_perf.c | 2651 &tp->dec_ops[ in dequeue_event_callback() 2656 &tp->dec_ops[ in dequeue_event_callback() 2661 &tp->enc_ops[ in dequeue_event_callback() 2666 &tp->enc_ops[ in dequeue_event_callback() 2822 tp->dev_id, in throughput_intr_lcore_ldpc_dec() 3084 tp->dev_id, in throughput_intr_lcore_ldpc_enc() 3181 tp->iter_count = 0; in throughput_pmd_lcore_dec() 3185 tp->iter_count); in throughput_pmd_lcore_dec() 3301 tp->iter_count = 0; in bler_pmd_lcore_ldpc_dec() 3317 && tp->bler == 0 in bler_pmd_lcore_ldpc_dec() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | tf_em_host.c | 56 tp->pg_count = 0; in tf_em_free_pg_tbl() 57 tfp_free(tp->pg_va_tbl); in tf_em_free_pg_tbl() 58 tp->pg_va_tbl = NULL; in tf_em_free_pg_tbl() 60 tp->pg_pa_tbl = NULL; in tf_em_free_pg_tbl() 76 tp = &tbl->pg_tbl[i]; in tf_em_free_page_table() 81 tp->pg_count); in tf_em_free_page_table() 83 tf_em_free_pg_tbl(tp); in tf_em_free_page_table() 132 tp->pg_count = 0; in tf_em_alloc_pg_tbl() 133 tp->pg_size = pg_size; in tf_em_alloc_pg_tbl() 147 tp->pg_count++; in tf_em_alloc_pg_tbl() [all …]
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_trace.c | 127 struct trace_point *tp; in rte_trace_mode_set() local 187 struct trace_point *tp; in rte_trace_pattern() local 208 struct trace_point *tp; in rte_trace_regexp() local 234 struct trace_point *tp; in rte_trace_point_lookup() local 241 return tp->handle; in rte_trace_point_lookup() 286 struct trace_point *tp; in rte_trace_dump() local 300 trace_point_dump(f, tp); in rte_trace_dump() 457 struct trace_point *tp; in __rte_trace_point_register() local 493 if (tp == NULL) { in __rte_trace_point_register() 516 tp->handle = handle; in __rte_trace_point_register() [all …]
|
| H A D | eal_common_trace_utils.c | 41 struct trace_point *tp; in trace_entry_compare() local 44 STAILQ_FOREACH(tp, tp_list, next) { in trace_entry_compare() 45 if (strncmp(tp->name, name, TRACE_POINT_NAME_SIZE) == 0) in trace_entry_compare() 60 struct trace_point *tp; in trace_has_duplicate_entry() local 63 STAILQ_FOREACH(tp, tp_list, next) in trace_has_duplicate_entry() 64 if (trace_entry_compare(tp->name)) in trace_has_duplicate_entry() 75 struct trace_point *tp; in trace_uuid_generate() local 79 STAILQ_FOREACH(tp, tp_list, next) { in trace_uuid_generate() 80 const uint16_t sz = *tp->handle & __RTE_TRACE_FIELD_SIZE_MASK; in trace_uuid_generate()
|
| H A D | eal_common_trace_ctf.c | 224 meta_event_emit(char **meta, int *offset, struct trace_point *tp) in meta_event_emit() argument 236 "};\n\n", trace_id_get(tp->handle), tp->name, in meta_event_emit() 237 tp->ctf_field != NULL ? tp->ctf_field : ""); in meta_event_emit() 246 struct trace_point *tp; in trace_metadata_create() local 285 STAILQ_FOREACH(tp, tp_list, next) in trace_metadata_create() 286 if (meta_event_emit(&meta, &offset, tp) < 0) in trace_metadata_create()
|
| /dpdk/lib/meter/ |
| H A D | rte_meter.h | 379 uint64_t tp; member 516 tp = m->tp + n_periods_tp * p->pir_bytes_per_period; in rte_meter_trtcm_color_blind_check() 518 tp = p->pbs; in rte_meter_trtcm_color_blind_check() 523 m->tp = tp; in rte_meter_trtcm_color_blind_check() 529 m->tp = tp - pkt_len; in rte_meter_trtcm_color_blind_check() 534 m->tp = tp - pkt_len; in rte_meter_trtcm_color_blind_check() 559 tp = m->tp + n_periods_tp * p->pir_bytes_per_period; in rte_meter_trtcm_color_aware_check() 561 tp = p->pbs; in rte_meter_trtcm_color_aware_check() 566 m->tp = tp; in rte_meter_trtcm_color_aware_check() 572 m->tp = tp - pkt_len; in rte_meter_trtcm_color_aware_check() [all …]
|
| H A D | rte_meter.c | 117 m->tp = p->pbs; in rte_meter_trtcm_config()
|
| /dpdk/lib/eal/windows/include/ |
| H A D | rte_os_shim.h | 88 rte_clock_gettime(clockid_t clock_id, struct timespec *tp) in rte_clock_gettime() argument 96 if (timespec_get(tp, TIME_UTC) != TIME_UTC) in rte_clock_gettime() 104 tp->tv_sec = nsec / NS_PER_SEC; in rte_clock_gettime() 105 tp->tv_nsec = nsec - tp->tv_sec * NS_PER_SEC; in rte_clock_gettime() 111 #define clock_gettime(clock_id, tp) rte_clock_gettime(clock_id, tp) argument
|
| /dpdk/lib/eal/windows/ |
| H A D | eal_hugepages.c | 23 TOKEN_PRIVILEGES tp; in hugepage_claim_privilege() local 37 tp.PrivilegeCount = 1; in hugepage_claim_privilege() 38 tp.Privileges[0].Luid = luid; in hugepage_claim_privilege() 39 tp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; in hugepage_claim_privilege() 42 token, FALSE, &tp, sizeof(tp), NULL, NULL)) { in hugepage_claim_privilege()
|
| /dpdk/lib/ipsec/ |
| H A D | sa.c | 171 uint64_t tp; in fill_sa_type() local 173 tp = 0; in fill_sa_type() 176 tp |= RTE_IPSEC_SATP_PROTO_AH; in fill_sa_type() 183 tp |= RTE_IPSEC_SATP_DIR_OB; in fill_sa_type() 186 tp |= RTE_IPSEC_SATP_DIR_IB; in fill_sa_type() 201 tp |= RTE_IPSEC_SATP_IPV4; in fill_sa_type() 203 tp |= RTE_IPSEC_SATP_IPV6; in fill_sa_type() 210 tp |= RTE_IPSEC_SATP_IPV4; in fill_sa_type() 212 tp |= RTE_IPSEC_SATP_IPV6; in fill_sa_type() 244 tp |= RTE_IPSEC_SATP_SQN_RAW; in fill_sa_type() [all …]
|
| /dpdk/lib/eal/include/ |
| H A D | rte_trace_point.h | 78 #define RTE_TRACE_POINT(tp, args, ...) \ argument 79 __RTE_TRACE_POINT(generic, tp, args, __VA_ARGS__) 99 #define RTE_TRACE_POINT_FP(tp, args, ...) \ argument 100 __RTE_TRACE_POINT(fp, tp, args, __VA_ARGS__) 165 int rte_trace_point_enable(rte_trace_point_t *tp); 177 int rte_trace_point_disable(rte_trace_point_t *tp); 188 bool rte_trace_point_is_enabled(rte_trace_point_t *tp);
|
| H A D | rte_common.h | 858 #define RTE_LEN2MASK(ln, tp) \ argument 859 ((tp)((uint64_t)-1 >> (sizeof(uint64_t) * CHAR_BIT - (ln))))
|
| /dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe_flow.c | 83 adap->params.tp.vlan_shift >= 0) { in cxgbe_tweak_filter_spec() 92 adap->params.tp.vnic_shift >= 0) { in cxgbe_tweak_filter_spec() 109 struct tp_params *tp = &adap->params.tp; in cxgbe_fill_filter_region() local 146 if (tp->protocol_shift >= 0) in cxgbe_fill_filter_region() 148 if (tp->ethertype_shift >= 0) in cxgbe_fill_filter_region() 150 if (tp->port_shift >= 0) in cxgbe_fill_filter_region() 152 if (tp->macmatch_shift >= 0) in cxgbe_fill_filter_region() 156 tp->vlan_shift; in cxgbe_fill_filter_region() 157 if (tp->vnic_shift >= 0) { in cxgbe_fill_filter_region() 164 fs->mask.vf) << tp->vnic_shift; in cxgbe_fill_filter_region() [all …]
|
| H A D | cxgbe_filter.c | 71 adapter->params.tp.vlan_pri_map; in cxgbe_validate_filter() 73 iconf = adapter->params.tp.ingress_config; in cxgbe_validate_filter() 325 struct tp_params *tp = &adap->params.tp; in hash_filter_ntuple() local 329 if (tp->port_shift >= 0 && f->fs.mask.iport) in hash_filter_ntuple() 332 if (tp->protocol_shift >= 0) { in hash_filter_ntuple() 343 if (tp->vlan_shift >= 0 && f->fs.mask.ivlan) in hash_filter_ntuple() 345 tp->vlan_shift; in hash_filter_ntuple() 346 if (tp->vnic_shift >= 0) { in hash_filter_ntuple() 351 tp->vnic_shift; in hash_filter_ntuple() 355 f->fs.val.ovlan) << tp->vnic_shift; in hash_filter_ntuple() [all …]
|
| /dpdk/drivers/net/ipn3ke/ |
| H A D | ipn3ke_tm.c | 902 if (tp->valid) { in ipn3ke_hw_tm_tdrop_wr() 906 tp->th2, in ipn3ke_hw_tm_tdrop_wr() 911 tp->tdrop_profile_id, in ipn3ke_hw_tm_tdrop_wr() 912 tp->th1, in ipn3ke_hw_tm_tdrop_wr() 956 tp->valid = 1; in ipn3ke_tm_tdrop_profile_add() 961 tp->th1 = th1; in ipn3ke_tm_tdrop_profile_add() 962 tp->th2 = th2; in ipn3ke_tm_tdrop_profile_add() 963 rte_memcpy(&tp->params, profile, sizeof(tp->params)); in ipn3ke_tm_tdrop_profile_add() 985 if (tp == NULL) in ipn3ke_tm_tdrop_profile_delete() 993 if (tp->n_users) in ipn3ke_tm_tdrop_profile_delete() [all …]
|
| /dpdk/app/test-flow-perf/ |
| H A D | actions_gen.c | 341 uint32_t tp = para.counter; in add_set_src_tp() local 345 tp = 100; in add_set_src_tp() 348 tp = tp % 0xffff; in add_set_src_tp() 350 set_tp[para.core_idx].port = RTE_BE16(tp & 0xffff); in add_set_src_tp() 362 uint32_t tp = para.counter; in add_set_dst_tp() local 366 tp = 100; in add_set_dst_tp() 369 if (tp > 0xffff) in add_set_dst_tp() 370 tp = tp >> 16; in add_set_dst_tp() 372 set_tp[para.core_idx].port = RTE_BE16(tp & 0xffff); in add_set_dst_tp()
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_flex.c | 229 struct mlx5_flex_item *tp; in mlx5_flex_flow_translate_item() local 236 tp = (struct mlx5_flex_item *)spec->handle; in mlx5_flex_flow_translate_item() 237 MLX5_ASSERT(mlx5_flex_index(dev->data->dev_private, tp) >= 0); in mlx5_flex_flow_translate_item() 238 for (i = 0; i < tp->mapnum; i++) { in mlx5_flex_flow_translate_item() 239 struct mlx5_flex_pattern_field *map = tp->map + i; in mlx5_flex_flow_translate_item() 252 MLX5_ASSERT(id < tp->devx_fp->num_samples); in mlx5_flex_flow_translate_item() 253 if (tp->tunnel_mode == FLEX_TUNNEL_MODE_MULTI && is_inner) { in mlx5_flex_flow_translate_item() 254 uint32_t num_samples = tp->devx_fp->num_samples / 2; in mlx5_flex_flow_translate_item() 256 MLX5_ASSERT(tp->devx_fp->num_samples % 2 == 0); in mlx5_flex_flow_translate_item() 262 tp->devx_fp->sample_ids[id], id); in mlx5_flex_flow_translate_item()
|
| /dpdk/drivers/net/cxgbe/base/ |
| H A D | t4_hw.c | 5154 adap->params.tp.tre = G_TIMERRESOLUTION(v); in t4_init_tp_params() 5155 adap->params.tp.dack_re = G_DELAYEDACKRESOLUTION(v); in t4_init_tp_params() 5159 adap->params.tp.tx_modq[chan] = chan; in t4_init_tp_params() 5176 adap->params.tp.vlan_pri_map = in t4_init_tp_params() 5178 adap->params.tp.filter_mask = in t4_init_tp_params() 5190 &adap->params.tp.vlan_pri_map, 1, in t4_init_tp_params() 5200 adap->params.tp.filter_mask = adap->params.tp.vlan_pri_map; in t4_init_tp_params() 5204 &adap->params.tp.ingress_config, 1, in t4_init_tp_params() 5232 adap->params.tp.hash_filter_mask = v; in t4_init_tp_params() 5234 adap->params.tp.hash_filter_mask |= ((u64)v << 32); in t4_init_tp_params() [all …]
|
| /dpdk/lib/acl/ |
| H A D | acl_run_altivec.h | 112 xmm_t *index_mask, *tp; in transition4() local 141 tp = (xmm_t *)&altivec_acl_const.range_base.u32; in transition4() 142 r = vec_add(r, *tp); in transition4()
|
| /dpdk/doc/guides/tools/ |
| H A D | flow-perf.rst | 337 * ``--set-src-tp`` 338 Add set source tp action to all flows actions. 339 The tp sport header to be set is random each flow. 341 * ``--set-dst-tp`` 342 Add set destination tp action to all flows actions. 343 The tp dport header to be set is random each flow.
|
| /dpdk/lib/bpf/ |
| H A D | bpf_exec.c | 66 #define BPF_ST_XADD_REG(reg, ins, tp) \ argument 67 (rte_atomic##tp##_add((rte_atomic##tp##_t *) \
|
| /dpdk/examples/ptpclient/ |
| H A D | ptpclient.c | 315 time_t tp = ptp_data->new_adj.tv_sec; in print_clock_info() local 318 ctime(&tp), ptp_data->new_adj.tv_usec); in print_clock_info()
|