numam-dpdk/app/test-pmd
Spike Du f41a5092e6 app/testpmd: add host shaper command
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>
2022-06-23 17:25:04 +02:00
..
5tswap.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
bpf_cmd.c app/testpmd: mark most cmdline symbols as static 2022-05-31 16:59:27 +02:00
bpf_cmd.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
cmd_flex_item.c app/testpmd: fix flow rule with flex input link 2022-03-14 22:21:07 +01:00
cmdline_flow.c ethdev: add IPv4/IPv6 ECN header rewrite action 2022-06-02 11:58:38 +02:00
cmdline_mtr.c app/testpmd: mark most cmdline symbols as static 2022-05-31 16:59:27 +02:00
cmdline_mtr.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_tm.c app/testpmd: mark most cmdline symbols as static 2022-05-31 16:59:27 +02:00
cmdline_tm.h app/testpmd: add TM command for non-leaf and packet mode 2020-09-18 18:55:10 +02:00
cmdline.c net/i40e: move testpmd commands 2022-06-20 19:48:39 +02:00
config.c net/i40e: move testpmd commands 2022-06-20 19:48:39 +02:00
csumonly.c app/testpmd: revert MAC update in checksum forwarding 2022-06-17 14:41:04 +02:00
flowgen.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
icmpecho.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
ieee1588fwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
iofwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
macfwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
macswap_common.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
macswap_neon.h
macswap_sse.h
macswap.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build net/bonding: move testpmd commands 2022-06-20 19:48:39 +02:00
noisy_vnf.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
parameters.c app/testpmd: add help messages for multi-process 2022-06-09 16:56:41 +02:00
rxonly.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
shared_rxq_fwd.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
testpmd.c app/testpmd: add host shaper command 2022-06-23 17:25:04 +02:00
testpmd.h net/i40e: move testpmd commands 2022-06-20 19:48:39 +02:00
txonly.c app/testpmd: do not poll stopped queues 2022-05-25 17:25:22 +02:00
util.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00