Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 95) sorted by relevance

1234

/dpdk/examples/qos_sched/
H A Dprofile_ov.cfg17 tb rate = 8400000 ; Bytes per second
20 tc 0 rate = 8400000 ; Bytes per second
21 tc 1 rate = 8400000 ; Bytes per second
22 tc 2 rate = 8400000 ; Bytes per second
23 tc 3 rate = 8400000 ; Bytes per second
24 tc 4 rate = 8400000 ; Bytes per second
25 tc 5 rate = 8400000 ; Bytes per second
26 tc 6 rate = 8400000 ; Bytes per second
27 tc 7 rate = 8400000 ; Bytes per second
28 tc 8 rate = 8400000 ; Bytes per second
[all …]
H A Dprofile.cfg7 ; - Subport rate set to 100% of port rate
8 ; - Each of the 13 traffic classes has rate set to 100% of port rate
10 ; - Pipe rate set to 1/4K of port rate
11 ; - Each of the 13 traffic classes has rate set to 100% of pipe rate
32 tb rate = 1250000000 ; Bytes per second
35 tc 0 rate = 1250000000 ; Bytes per second
36 tc 1 rate = 1250000000 ; Bytes per second
37 tc 2 rate = 1250000000 ; Bytes per second
38 tc 3 rate = 1250000000 ; Bytes per second
39 tc 4 rate = 1250000000 ; Bytes per second
[all …]
/dpdk/drivers/common/cnxk/
H A Droc_nix_tm_ops.c97 if (profile->commit.rate && in nix_tm_adjust_shaper_pps_rate()
102 if (profile->peak.rate && in nix_tm_adjust_shaper_pps_rate()
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()
125 profile->commit.rate += (adjust * profile->commit.rate); in nix_tm_adjust_shaper_pps_rate()
126 profile->peak.rate += (adjust * profile->peak.rate); in nix_tm_adjust_shaper_pps_rate()
206 profile->peak.rate = profile->commit.rate; in nix_tm_shaper_profile_add()
208 profile->commit.rate = 0; in nix_tm_shaper_profile_add()
1001 if (rate == 0) { in roc_nix_tm_rlimit_sq()
[all …]
H A Droc_nix_tm_utils.c325 if (profile->commit.rate) in nix_tm_shaper_conf_get()
326 cir->rate = nix_tm_shaper_rate_conv( in nix_tm_shaper_conf_get()
331 if (profile->peak.rate) in nix_tm_shaper_conf_get()
332 pir->rate = nix_tm_shaper_rate_conv( in nix_tm_shaper_conf_get()
731 pir.rate, pir.burst, cir.rate, cir.burst, adjust, in nix_tm_shaper_reg_prep()
738 regval[k] = (pir.rate && pir.burst) ? in nix_tm_shaper_reg_prep()
885 if (profile->peak.rate && profile->peak.rate < rate_min) in nix_tm_shaper_profile_rate_min()
886 rate_min = profile->peak.rate; in nix_tm_shaper_profile_rate_min()
888 if (profile->commit.rate && profile->commit.rate < rate_min) in nix_tm_shaper_profile_rate_min()
889 rate_min = profile->commit.rate; in nix_tm_shaper_profile_rate_min()
[all …]
/dpdk/drivers/net/atlantic/hw_atl/
H A Dhw_atl_utils_fw2x.c98 rate |= FW2X_RATE_10G; in link_speed_mask_2fw2x_ratemask()
101 rate |= FW2X_RATE_5G; in link_speed_mask_2fw2x_ratemask()
104 rate |= FW2X_RATE_5G; in link_speed_mask_2fw2x_ratemask()
107 rate |= FW2X_RATE_2G5; in link_speed_mask_2fw2x_ratemask()
110 rate |= FW2X_RATE_1G; in link_speed_mask_2fw2x_ratemask()
113 rate |= FW2X_RATE_100M; in link_speed_mask_2fw2x_ratemask()
115 return rate; in link_speed_mask_2fw2x_ratemask()
120 u32 rate = 0; in fw2x_to_eee_mask() local
126 rate |= AQ_NIC_RATE_EEE_5G; in fw2x_to_eee_mask()
132 rate |= AQ_NIC_RATE_EEE_1G; in fw2x_to_eee_mask()
[all …]
/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_nsp_eth.c125 enum nfp_eth_rate rate; member
137 nfp_eth_rate2speed(enum nfp_eth_rate rate) in nfp_eth_rate2speed() argument
142 if (nsp_eth_rate_tbl[i].rate == rate) in nfp_eth_rate2speed()
155 return nsp_eth_rate_tbl[i].rate; in nfp_eth_speed2rate()
173 unsigned int rate; in nfp_eth_port_translate() local
190 rate = nfp_eth_rate2speed(FIELD_GET(NSP_ETH_STATE_RATE, state)); in nfp_eth_port_translate()
191 dst->speed = dst->lanes * rate; in nfp_eth_port_translate()
636 enum nfp_eth_rate rate; in __nfp_eth_set_speed() local
638 rate = nfp_eth_speed2rate(speed); in __nfp_eth_set_speed()
639 if (rate == RATE_INVALID) { in __nfp_eth_set_speed()
[all …]
/dpdk/doc/guides/prog_guide/
H A Dmetrics_lib.rst171 Bit-rate statistics library
174 The bit-rate library calculates the exponentially-weighted moving
179 - ``mean_bits_in``: Average inbound bit-rate
180 - ``mean_bits_out``: Average outbound bit-rate
181 - ``ewma_bits_in``: Average inbound bit-rate (EWMA smoothed)
182 - ``ewma_bits_out``: Average outbound bit-rate (EWMA smoothed)
183 - ``peak_bits_in``: Peak inbound bit-rate
184 - ``peak_bits_out``: Peak outbound bit-rate
193 ``rte_stats_bitrate_create()``, which will return a bit-rate
208 Controlling the sampling rate
[all …]
H A Dtraffic_management.rst21 * Traffic shaping: single/dual rate, private (per node) and
49 nodes at the level, type of the shaper(dual rate, single rate) supported at
55 support is available for private shaper, dual rate shaper, maximum and minimum
56 shaper rate, etc. is exposed by node level capability API.
78 The TM API provides support for single rate and dual rate shapers (rate
89 of shaper profiles. Any shaper profile (single rate or dual rate shaper) can be
92 Single rate shapers use a single token bucket. Therefore, single rate shaper is
93 configured by setting the rate of the committed bucket to zero, which
94 effectively disables this bucket. The peak bucket is used to limit the rate
95 and the burst size for the single rate shaper. Dual rate shapers use both the
[all …]
/dpdk/lib/meter/
H A Drte_meter.c20 rte_meter_get_tb_params(uint64_t hz, uint64_t rate, uint64_t *tb_period, uint64_t *tb_bytes_per_per… in rte_meter_get_tb_params() argument
24 if (rate == 0) { in rte_meter_get_tb_params()
30 period = ((double) hz) / ((double) rate); in rte_meter_get_tb_params()
37 *tb_period = (hz * (*tb_bytes_per_period)) / rate; in rte_meter_get_tb_params()
/dpdk/lib/sched/
H A Drte_sched.c228 uint64_t rate; member
394 uint64_t rate) in subport_profile_check() argument
697 uint64_t rate) in rte_sched_pipe_profile_convert() argument
709 / (double) rate; in rte_sched_pipe_profile_convert()
720 rate); in rte_sched_pipe_profile_convert()
754 uint64_t rate) in rte_sched_subport_profile_convert() argument
809 uint64_t rate) in rte_sched_port_config_subport_profile_table() argument
827 uint64_t rate) in rte_sched_subport_check_params() argument
998 port->rate = params->rate; in rte_sched_port_config()
1011 / params->rate; in rte_sched_port_config()
[all …]
/dpdk/app/test/
H A Dtest_mempool_perf.c232 uint64_t rate; in launch_cores() local
279 rate = 0; in launch_cores()
281 rate += (stats[lcore_id].enq_count / TIME_S); in launch_cores()
283 printf("rate_persec=%" PRIu64 "\n", rate); in launch_cores()
H A Dtest_sched.c73 .rate = 0, /* computed */
154 port_param.rate = (uint64_t) 10000 * 1000 * 1000 / 8; in test_sched()
/dpdk/drivers/net/hns3/
H A Dhns3_dcb.c412 shap_cfg_cmd->pg_rate = rte_cpu_to_le_32(rate); in hns3_dcb_pg_shapping_cfg()
440 shaper_para, rate); in hns3_pg_shaper_rate_cfg()
455 shaper_para, rate); in hns3_pg_shaper_rate_cfg()
469 uint32_t rate; in hns3_dcb_pg_shaper_cfg() local
479 rate = hw->dcb_info.pg_info[i].bw_limit; in hns3_dcb_pg_shaper_cfg()
480 ret = hns3_pg_shaper_rate_cfg(hw, i, rate); in hns3_dcb_pg_shaper_cfg()
575 shaper_para, rate); in hns3_pri_shaper_rate_cfg()
591 shaper_para, rate); in hns3_pri_shaper_rate_cfg()
606 uint32_t rate; in hns3_dcb_pri_shaper_cfg() local
614 rate = hw->dcb_info.tc_info[i].bw_limit; in hns3_dcb_pri_shaper_cfg()
[all …]
H A Dhns3_tm.c174 if (profile->committed.rate) { in hns3_tm_shaper_profile_param_check()
186 if (profile->peak.rate > in hns3_tm_shaper_profile_param_check()
193 if (profile->peak.rate < hns3_tm_rate_convert_firmware2tm(1)) { in hns3_tm_shaper_profile_param_check()
908 uint64_t rate; in hns3_tm_config_port_rate() local
912 rate = shaper_profile->profile.peak.rate; in hns3_tm_config_port_rate()
913 firmware_rate = hns3_tm_rate_convert_tm2firmware(rate); in hns3_tm_config_port_rate()
936 uint64_t rate; in hns3_tm_config_tc_rate() local
940 rate = shaper_profile->profile.peak.rate; in hns3_tm_config_tc_rate()
941 firmware_rate = hns3_tm_rate_convert_tm2firmware(rate); in hns3_tm_config_tc_rate()
/dpdk/drivers/net/dpaa2/mc/
H A Dfsl_dpdmux_cmd.h158 uint32_t rate; member
188 uint32_t rate; member
208 uint32_t rate; member
H A Dfsl_dpdmux.h288 uint32_t rate; member
366 uint32_t rate; member
386 uint32_t rate; member
H A Ddpdmux.c646 attr->rate = le32_to_cpu(rsp_params->rate); in dpdmux_if_get_attributes()
804 cmd_params->rate = cpu_to_le32(cfg->rate); in dpdmux_if_set_link_cfg()
847 state->rate = le32_to_cpu(rsp_params->rate); in dpdmux_if_get_link_state()
/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_niccfg.c1406 struct hinic_port_anti_attack_rate rate; in hinic_set_anti_attack() local
1407 u16 out_size = sizeof(rate); in hinic_set_anti_attack()
1415 memset(&rate, 0, sizeof(rate)); in hinic_set_anti_attack()
1417 rate.func_id = hinic_global_func_id(hwdev); in hinic_set_anti_attack()
1418 rate.enable = enable; in hinic_set_anti_attack()
1419 rate.cir = ANTI_ATTACK_DEFAULT_CIR; in hinic_set_anti_attack()
1420 rate.xir = ANTI_ATTACK_DEFAULT_XIR; in hinic_set_anti_attack()
1421 rate.cbs = ANTI_ATTACK_DEFAULT_CBS; in hinic_set_anti_attack()
1422 rate.xbs = ANTI_ATTACK_DEFAULT_XBS; in hinic_set_anti_attack()
1425 &rate, sizeof(rate), &rate, &out_size); in hinic_set_anti_attack()
[all …]
/dpdk/drivers/net/mvpp2/
H A Dmrvl_tm.c36 mrvl_get_max_rate(struct rte_eth_dev *dev, uint64_t *rate) in mrvl_get_max_rate() argument
60 *rate = (uint64_t)ethtool_cmd_speed(&edata) * 1000 * 1000 / 8; in mrvl_get_max_rate()
399 if (params->committed.rate) in mrvl_shaper_profile_add()
409 if (params->peak.rate < MRVL_RATE_MIN || in mrvl_shaper_profile_add()
410 params->peak.rate > priv->rate_max) in mrvl_shaper_profile_add()
880 node->profile->params.peak.rate * 8 / 1000; in mrvl_hierarchy_commit()
911 node->profile->params.peak.rate * 8 / 1000; in mrvl_hierarchy_commit()
/dpdk/doc/guides/howto/
H A Dvfd.rst229 VF rate limit
232 Run a testpmd runtime command on the PF to all queues' rate limit for a
235 set port 0 vf 0 rate 10 queue_mask 1
237 This is a function to set the rate limit for all the queues in the
238 ``queue_mask`` bitmap. It is not used to set the summary of the rate
239 limit. The rate limit of every queue will be set equally to the assigned rate
/dpdk/doc/guides/tools/
H A Dflow-perf.rst8 The application provides the ability to test insertion rate of specific
19 To assess the rule insertion rate, the flow performance tool breaks
25 The application also provides the ability to measure rte flow deletion rate,
79 the application will measure the insertion rate 10 times
81 insertion rate across the 10 measurements.
87 * ``--deletion-rate``
88 Enable deletion rate calculations.
/dpdk/examples/ip_pipeline/
H A Dtmgr.h45 uint64_t rate; member
H A Dtmgr.c186 p.rate = params->rate; in tmgr_port_create()
/dpdk/drivers/net/ipn3ke/
H A Dipn3ke_tm.c731 uint64_t rate; in ipn3ke_tm_shaper_parame_trans() local
733 rate = profile->peak.rate; in ipn3ke_tm_shaper_parame_trans()
735 if (rate >= r->low && in ipn3ke_tm_shaper_parame_trans()
736 rate <= r->high) { in ipn3ke_tm_shaper_parame_trans()
737 local_profile->m = (rate / 4) / r->exp2; in ipn3ke_tm_shaper_parame_trans()
739 local_profile->rate = rate; in ipn3ke_tm_shaper_parame_trans()
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()
792 if (profile->committed.rate > IPN3KE_TM_SHAPER_COMMITTED_RATE_MAX) in ipn3ke_tm_shaper_profile_add()
/dpdk/drivers/net/mlx5/
H A Dmlx5_txpp.c83 uint64_t rate; in mlx5_txpp_alloc_pp_index() local
87 rate = NS_PER_S / sh->txpp.tick; in mlx5_txpp_alloc_pp_index()
88 if (rate * sh->txpp.tick != NS_PER_S) in mlx5_txpp_alloc_pp_index()
100 rate = (rate * len) / (1000ul / CHAR_BIT); in mlx5_txpp_alloc_pp_index()
101 DRV_LOG(INFO, "Packet pacing rate set to %" PRIu64, rate); in mlx5_txpp_alloc_pp_index()
103 MLX5_SET(set_pp_rate_limit_context, &pp, rate_limit, rate); in mlx5_txpp_alloc_pp_index()

1234