| /dpdk/drivers/net/softnic/ |
| H A D | rte_eth_softnic_action.c | 32 if (profile == NULL) in softnic_port_in_action_profile_free() 36 free(profile); in softnic_port_in_action_profile_free() 51 return profile; in softnic_port_in_action_profile_find() 154 strlcpy(profile->name, name, sizeof(profile->name)); in softnic_port_in_action_profile_create() 156 profile->ap = ap; in softnic_port_in_action_profile_create() 161 return profile; in softnic_port_in_action_profile_create() 187 free(profile); in softnic_table_action_profile_free() 202 return profile; in softnic_table_action_profile_find() 415 strlcpy(profile->name, name, sizeof(profile->name)); in softnic_table_action_profile_create() 417 profile->ap = ap; in softnic_table_action_profile_create() [all …]
|
| H A D | rte_eth_softnic_meter.c | 86 struct rte_mtr_meter_profile *profile, in meter_profile_check() argument 110 if (profile == NULL) in meter_profile_check() 118 if (profile->alg != RTE_MTR_TRTCM_RFC2698) in meter_profile_check() 126 if (profile->packet_mode) in meter_profile_check() 140 struct rte_mtr_meter_profile *profile, in pmd_mtr_meter_profile_add() argument 164 memcpy(&mp->params, profile, sizeof(mp->params)); in pmd_mtr_meter_profile_add() 577 struct rte_table_action_meter_profile profile; in pmd_mtr_meter_profile_update() local 579 memset(&profile, 0, sizeof(profile)); in pmd_mtr_meter_profile_update() 581 profile.alg = RTE_TABLE_ACTION_METER_TRTCM; in pmd_mtr_meter_profile_update() 582 profile.trtcm.cir = mp_new->params.trtcm_rfc2698.cir; in pmd_mtr_meter_profile_update() [all …]
|
| /dpdk/drivers/net/mvpp2/ |
| H A D | mrvl_mtr.c | 60 return profile; in mrvl_mtr_profile_from_id() 80 if (!profile) in mrvl_meter_profile_add() 110 memcpy(&prof->profile, profile, sizeof(*profile)); in mrvl_meter_profile_add() 134 if (!profile) in mrvl_meter_profile_delete() 244 params.cir = mtr->profile->profile.srtcm_rfc2697.cir; in mrvl_meter_enable() 245 params.cbs = mtr->profile->profile.srtcm_rfc2697.cbs; in mrvl_meter_enable() 246 params.ebs = mtr->profile->profile.srtcm_rfc2697.ebs; in mrvl_meter_enable() 339 if (!profile) in mrvl_create() 359 mtr->profile = profile; in mrvl_create() 444 if (!profile) in mrvl_meter_profile_update() [all …]
|
| H A D | mrvl_tm.c | 97 while (profile) { in mrvl_tm_deinit() 101 rte_free(profile); in mrvl_tm_deinit() 102 profile = next; in mrvl_tm_deinit() 427 if (profile) in mrvl_shaper_profile_add() 432 profile = rte_zmalloc_socket(NULL, sizeof(*profile), 0, in mrvl_shaper_profile_add() 434 if (!profile) in mrvl_shaper_profile_add() 440 rte_memcpy(&profile->params, params, sizeof(profile->params)); in mrvl_shaper_profile_add() 468 if (!profile) in mrvl_shaper_profile_delete() 631 if (!profile) in mrvl_node_add() 675 if (profile) { in mrvl_node_add() [all …]
|
| H A D | mrvl_ethdev.h | 103 struct rte_mtr_meter_profile profile; member 113 struct mrvl_mtr_profile *profile; member 135 struct mrvl_tm_shaper_profile *profile; member
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_nix_tm_ops.c | 107 if (profile->peak.rate && min_rate > profile->peak.rate) in nix_tm_adjust_shaper_pps_rate() 114 profile->commit.rate = profile->commit.rate * 8; in nix_tm_adjust_shaper_pps_rate() 115 profile->peak.rate = profile->peak.rate * 8; in nix_tm_adjust_shaper_pps_rate() 126 profile->peak.rate += (adjust * profile->peak.rate); in nix_tm_adjust_shaper_pps_rate() 169 if (profile->pkt_mode && profile->pkt_len_adj) in nix_tm_shaper_profile_add() 200 id, profile->peak.rate, profile->peak.size, in nix_tm_shaper_profile_add() 201 profile->commit.rate, profile->commit.size, in nix_tm_shaper_profile_add() 202 profile->pkt_len_adj, profile->pkt_mode); in nix_tm_shaper_profile_add() 206 profile->peak.rate = profile->commit.rate; in nix_tm_shaper_profile_add() 207 profile->peak.size = profile->commit.size; in nix_tm_shaper_profile_add() [all …]
|
| H A D | roc_nix_tm_utils.c | 108 if (profile->id == id) in nix_tm_shaper_profile_search() 109 return profile; in nix_tm_shaper_profile_search() 321 if (!profile) in nix_tm_shaper_conf_get() 331 if (profile->peak.rate) in nix_tm_shaper_conf_get() 722 else if (profile) in nix_tm_shaper_reg_prep() 885 if (profile->peak.rate && profile->peak.rate < rate_min) in nix_tm_shaper_profile_rate_min() 888 if (profile->commit.rate && profile->commit.rate < rate_min) in nix_tm_shaper_profile_rate_min() 1102 if (!profile) in nix_tm_shaper_profile_alloc() 1106 return profile; in nix_tm_shaper_profile_alloc() 1112 if (!profile || !profile->free_fn) in nix_tm_shaper_profile_free() [all …]
|
| /dpdk/examples/ip_pipeline/ |
| H A D | action.c | 36 if (strcmp(profile->name, name) == 0) in port_in_action_profile_find() 37 return profile; in port_in_action_profile_find() 132 if (profile == NULL) { in port_in_action_profile_create() 138 strlcpy(profile->name, name, sizeof(profile->name)); in port_in_action_profile_create() 140 profile->ap = ap; in port_in_action_profile_create() 145 return profile; in port_in_action_profile_create() 171 return profile; in table_action_profile_find() 377 if (profile == NULL) { in table_action_profile_create() 383 strlcpy(profile->name, name, sizeof(profile->name)); in table_action_profile_create() 385 profile->ap = ap; in table_action_profile_create() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_aso.c | 690 fmp = fm->profile; in mlx5_aso_mtr_sq_enqueue_single() 691 if (fmp->profile.packet_mode) in mlx5_aso_mtr_sq_enqueue_single() 700 switch (fmp->profile.alg) { in mlx5_aso_mtr_sq_enqueue_single() 927 profile->live_connection); in mlx5_aso_ct_sq_enqueue_single() 934 profile->max_ack_window); in mlx5_aso_ct_sq_enqueue_single() 940 profile->reply_dir.scale); in mlx5_aso_ct_sq_enqueue_single() 945 profile->liberal_mode); in mlx5_aso_ct_sq_enqueue_single() 951 profile->original_dir.scale); in mlx5_aso_ct_sq_enqueue_single() 955 profile->liberal_mode); in mlx5_aso_ct_sq_enqueue_single() 981 profile->reply_dir.max_win); in mlx5_aso_ct_sq_enqueue_single() [all …]
|
| H A D | mlx5_flow_meter.c | 143 if (profile == NULL) in mlx5_flow_meter_profile_validate() 176 if (profile->packet_mode) in mlx5_flow_meter_profile_validate() 182 switch (profile->alg) { in mlx5_flow_meter_profile_validate() 330 switch (fmp->profile.alg) { in mlx5_flow_meter_param_fill() 514 fmp->profile = *profile; in mlx5_flow_meter_profile_add() 1282 fm->profile = fmp; in mlx5_flow_meter_create() 1354 fmp = fm->profile; in mlx5_flow_meter_params_flush() 1359 fm->profile = NULL; in mlx5_flow_meter_params_flush() 1620 old_fmp = fm->profile; in mlx5_flow_meter_profile_update() 1624 fm->profile = fmp; in mlx5_flow_meter_profile_update() [all …]
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_tm.c | 288 profile->profile.id = id; in cnxk_nix_tm_shaper_profile_add() 290 profile->profile.peak_rate = params->peak.rate; in cnxk_nix_tm_shaper_profile_add() 291 profile->profile.commit_sz = params->committed.size; in cnxk_nix_tm_shaper_profile_add() 292 profile->profile.peak_sz = params->peak.size; in cnxk_nix_tm_shaper_profile_add() 295 profile->profile.commit_rate *= 8; in cnxk_nix_tm_shaper_profile_add() 296 profile->profile.peak_rate *= 8; in cnxk_nix_tm_shaper_profile_add() 297 profile->profile.commit_sz *= 8; in cnxk_nix_tm_shaper_profile_add() 298 profile->profile.peak_sz *= 8; in cnxk_nix_tm_shaper_profile_add() 301 profile->profile.pkt_mode = params->packet_mode; in cnxk_nix_tm_shaper_profile_add() 302 profile->profile.free_fn = rte_free; in cnxk_nix_tm_shaper_profile_add() [all …]
|
| H A D | cnxk_ethdev_mtr.c | 252 fmp->profile = *profile; in cnxk_nix_mtr_profile_add() 512 mtr->profile = profile; in cnxk_nix_mtr_create() 1047 struct cnxk_mtr_profile_node *profile = mtr->profile; in nix_mtr_config_map() local 1050 cfg->alg = alg_map[profile->profile.alg]; in nix_mtr_config_map() 1051 cfg->lmode = profile->profile.packet_mode; in nix_mtr_config_map() 1056 cfg->algo2697.cbs = profile->profile.srtcm_rfc2697.cbs; in nix_mtr_config_map() 1057 cfg->algo2697.ebs = profile->profile.srtcm_rfc2697.ebs; in nix_mtr_config_map() 1062 cfg->algo2698.cbs = profile->profile.trtcm_rfc2698.cbs; in nix_mtr_config_map() 1063 cfg->algo2698.pbs = profile->profile.trtcm_rfc2698.pbs; in nix_mtr_config_map() 1068 cfg->algo4115.cbs = profile->profile.trtcm_rfc4115.cbs; in nix_mtr_config_map() [all …]
|
| /dpdk/lib/pipeline/ |
| H A D | rte_port_in_action.c | 226 if ((profile == NULL) || in rte_port_in_action_profile_action_register() 227 profile->frozen || in rte_port_in_action_profile_action_register() 260 if (profile->frozen) in rte_port_in_action_profile_freeze() 263 action_data_offset_set(&profile->data, &profile->cfg); in rte_port_in_action_profile_freeze() 264 profile->frozen = 1; in rte_port_in_action_profile_freeze() 272 if (profile == NULL) in rte_port_in_action_profile_free() 275 free(profile); in rte_port_in_action_profile_free() 326 if ((profile == NULL) || in rte_port_in_action_create() 327 (profile->frozen == 0)) in rte_port_in_action_create() 342 memcpy(&action->cfg, &profile->cfg, sizeof(profile->cfg)); in rte_port_in_action_create() [all …]
|
| H A D | rte_port_in_action.h | 189 rte_port_in_action_profile_free(struct rte_port_in_action_profile *profile); 209 struct rte_port_in_action_profile *profile, 231 rte_port_in_action_profile_freeze(struct rte_port_in_action_profile *profile); 254 rte_port_in_action_create(struct rte_port_in_action_profile *profile,
|
| H A D | rte_table_action.h | 840 rte_table_action_profile_free(struct rte_table_action_profile *profile); 859 rte_table_action_profile_action_register(struct rte_table_action_profile *profile, 880 rte_table_action_profile_freeze(struct rte_table_action_profile *profile); 904 rte_table_action_create(struct rte_table_action_profile *profile, 996 struct rte_table_action_meter_profile *profile);
|
| /dpdk/drivers/net/dpaa2/ |
| H A D | dpaa2_tm.c | 39 while (profile) { in dpaa2_tm_deinit() 43 rte_free(profile); in dpaa2_tm_deinit() 44 profile = next; in dpaa2_tm_deinit() 314 if (profile) in dpaa2_shaper_profile_add() 319 profile = rte_zmalloc_socket(NULL, sizeof(*profile), 0, in dpaa2_shaper_profile_add() 321 if (!profile) in dpaa2_shaper_profile_add() 327 rte_memcpy(&profile->params, params, sizeof(profile->params)); in dpaa2_shaper_profile_add() 342 if (!profile) in dpaa2_shaper_profile_delete() 455 if (!profile) in dpaa2_node_add() 513 if (profile) { in dpaa2_node_add() [all …]
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_tm.c | 174 if (profile->committed.rate) { in hns3_tm_shaper_profile_param_check() 180 if (profile->committed.size) { in hns3_tm_shaper_profile_param_check() 186 if (profile->peak.rate > in hns3_tm_shaper_profile_param_check() 199 if (profile->peak.size) { in hns3_tm_shaper_profile_param_check() 205 if (profile->pkt_length_adjust) { in hns3_tm_shaper_profile_param_check() 211 if (profile->packet_mode) { in hns3_tm_shaper_profile_param_check() 258 memcpy(&shaper_profile->profile, profile, in hns3_tm_shaper_profile_add() 1177 if (profile == NULL) { in hns3_tm_node_shaper_update() 1185 profile, error)) in hns3_tm_node_shaper_update() 1192 if (profile != NULL) in hns3_tm_node_shaper_update() [all …]
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_dcf_sched.c | 21 struct rte_tm_shaper_params *profile, 468 if (profile->committed.size) { in ice_dcf_shaper_profile_param_check() 474 if (profile->peak.size) { in ice_dcf_shaper_profile_param_check() 480 if (profile->pkt_length_adjust) { in ice_dcf_shaper_profile_param_check() 492 struct rte_tm_shaper_params *profile, in ice_dcf_shaper_profile_add() argument 500 if (!profile || !error) in ice_dcf_shaper_profile_add() 521 rte_memcpy(&shaper_profile->profile, profile, in ice_dcf_shaper_profile_add() 750 struct rte_tm_shaper_params *profile; in ice_dcf_hierarchy_commit() local 812 profile = &tm_node->shaper_profile->profile; in ice_dcf_hierarchy_commit() 814 profile->peak.rate / 1000 * BITS_PER_BYTE; in ice_dcf_hierarchy_commit() [all …]
|
| /dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_tm.c | 14 struct rte_tm_shaper_params *profile, 233 if (profile->committed.rate) { in ixgbe_shaper_profile_param_check() 239 if (profile->committed.size) { in ixgbe_shaper_profile_param_check() 245 if (profile->peak.size) { in ixgbe_shaper_profile_param_check() 251 if (profile->pkt_length_adjust) { in ixgbe_shaper_profile_param_check() 263 struct rte_tm_shaper_params *profile, in ixgbe_shaper_profile_add() argument 271 if (!profile || !error) in ixgbe_shaper_profile_add() 274 ret = ixgbe_shaper_profile_param_check(profile, error); in ixgbe_shaper_profile_add() 292 rte_memcpy(&shaper_profile->profile, profile, in ixgbe_shaper_profile_add() 1016 tm_node->shaper_profile->profile.peak.rate) { in ixgbe_hierarchy_commit() [all …]
|
| /dpdk/drivers/net/txgbe/ |
| H A D | txgbe_tm.c | 15 struct rte_tm_shaper_params *profile, 225 if (profile->committed.rate) { in txgbe_shaper_profile_param_check() 231 if (profile->committed.size) { in txgbe_shaper_profile_param_check() 237 if (profile->peak.size) { in txgbe_shaper_profile_param_check() 243 if (profile->pkt_length_adjust) { in txgbe_shaper_profile_param_check() 255 struct rte_tm_shaper_params *profile, in txgbe_shaper_profile_add() argument 262 if (!profile || !error) in txgbe_shaper_profile_add() 265 ret = txgbe_shaper_profile_param_check(profile, error); in txgbe_shaper_profile_add() 283 rte_memcpy(&shaper_profile->profile, profile, in txgbe_shaper_profile_add() 986 tm_node->shaper_profile->profile.peak.rate) { in txgbe_hierarchy_commit() [all …]
|
| /dpdk/drivers/net/i40e/ |
| H A D | i40e_tm.c | 15 struct rte_tm_shaper_params *profile, 224 if (profile->committed.rate) { in i40e_shaper_profile_param_check() 230 if (profile->committed.size) { in i40e_shaper_profile_param_check() 236 if (profile->peak.size) { in i40e_shaper_profile_param_check() 242 if (profile->pkt_length_adjust) { in i40e_shaper_profile_param_check() 254 struct rte_tm_shaper_params *profile, in i40e_shaper_profile_add() argument 261 if (!profile || !error) in i40e_shaper_profile_add() 282 rte_memcpy(&shaper_profile->profile, profile, in i40e_shaper_profile_add() 906 tm_node->shaper_profile->profile.peak.rate) { in i40e_hierarchy_commit() 951 bw = tm_node->shaper_profile->profile.peak.rate; in i40e_hierarchy_commit() [all …]
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | ip_pipeline.rst | 248 Add traffic manager subport profile :: 250 tmgr subport profile 257 Add traffic manager pipe profile :: 259 tmgr pipe profile 282 profile <subport_profile_id> 289 profile <pipe_profile_id> 320 Action profile 325 port in action profile <profile_name> 329 Create action profile for the pipeline table :: 331 table action profile <profile_name> [all …]
|
| /dpdk/drivers/net/iavf/ |
| H A D | iavf_tm.c | 13 struct rte_tm_shaper_params *profile, 490 iavf_shaper_profile_param_check(struct rte_tm_shaper_params *profile, in iavf_shaper_profile_param_check() argument 494 if (profile->committed.size) { in iavf_shaper_profile_param_check() 500 if (profile->peak.size) { in iavf_shaper_profile_param_check() 506 if (profile->pkt_length_adjust) { in iavf_shaper_profile_param_check() 518 struct rte_tm_shaper_params *profile, in iavf_shaper_profile_add() argument 525 if (!profile || !error) in iavf_shaper_profile_add() 528 ret = iavf_shaper_profile_param_check(profile, error); in iavf_shaper_profile_add() 546 rte_memcpy(&shaper_profile->profile, profile, in iavf_shaper_profile_add() 867 tm_node->shaper_profile->profile.peak.rate / in iavf_hierarchy_commit() [all …]
|
| /dpdk/examples/service_cores/ |
| H A D | main.c | 62 struct profile { struct 68 static struct profile profiles[] = { argument 118 struct profile *p = &profiles[profile_id]; in apply_profile()
|
| /dpdk/drivers/net/ipn3ke/ |
| H A D | ipn3ke_tm.c | 733 rate = profile->peak.rate; in ipn3ke_tm_shaper_parame_trans() 767 if (profile == NULL) in ipn3ke_tm_shaper_profile_add() 775 if (profile->peak.rate == 0 || in ipn3ke_tm_shaper_profile_add() 776 profile->peak.rate > IPN3KE_TM_SHAPER_PEAK_RATE_MAX) in ipn3ke_tm_shaper_profile_add() 784 if (profile->peak.size != 0) in ipn3ke_tm_shaper_profile_add() 800 if (profile->pkt_length_adjust != 0) in ipn3ke_tm_shaper_profile_add() 807 if (ipn3ke_tm_shaper_parame_trans(profile, in ipn3ke_tm_shaper_profile_add() 865 if (profile == NULL) in ipn3ke_tm_tdrop_profile_check() 873 if (profile->packet_mode != 0) in ipn3ke_tm_tdrop_profile_check() 882 uint64_t min_th = profile->red_params[color].min_th; in ipn3ke_tm_tdrop_profile_check() [all …]
|