f41a5092e6
Add command line options to support host shaper configure. - Command syntax: mlx5 set port <port_id> host_shaper avail_thresh_triggered <0|1> rate <rate_num> - Example commands: To enable avail_thresh_triggered on port 1 and disable current host shaper: testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 1 rate 0 To disable avail_thresh_triggered and current host shaper on port 1: testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 0 The rate unit is 100Mbps. To disable avail_thresh_triggered and configure a shaper of 5Gbps on port 1: testpmd> mlx5 set port 1 host_shaper avail_thresh_triggered 0 rate 50 Add sample code to handle rxq available descriptor threshold event, it delays a while so that rxq empties, then disables host shaper and rearms available descriptor threshold event. Signed-off-by: Spike Du <spiked@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com> |
||
---|---|---|
.. | ||
5tswap.c | ||
bpf_cmd.c | ||
bpf_cmd.h | ||
cmd_flex_item.c | ||
cmdline_flow.c | ||
cmdline_mtr.c | ||
cmdline_mtr.h | ||
cmdline_tm.c | ||
cmdline_tm.h | ||
cmdline.c | ||
config.c | ||
csumonly.c | ||
flowgen.c | ||
icmpecho.c | ||
ieee1588fwd.c | ||
iofwd.c | ||
macfwd.c | ||
macswap_common.h | ||
macswap_neon.h | ||
macswap_sse.h | ||
macswap.c | ||
macswap.h | ||
meson.build | ||
noisy_vnf.c | ||
parameters.c | ||
rxonly.c | ||
shared_rxq_fwd.c | ||
testpmd.c | ||
testpmd.h | ||
txonly.c | ||
util.c |