From: Spike Du > 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 <spi...@nvidia.com> Acked-by: Matan Azrad <ma...@nvidia.com>
- [PATCH v5 5/7] net/mlx5: support Rx queue based available... Spike Du
- [PATCH v5 7/7] app/testpmd: add Host Shaper command Spike Du
- Re: [PATCH v5 7/7] app/testpmd: add Host Shaper comm... Andrew Rybchenko
- [PATCH v6] app/testpmd: add Host Shaper command Spike Du
- [PATCH v6] app/testpmd: add Host Shaper command Spike Du
- Re: [PATCH v6] app/testpmd: add Host Shaper ... Singh, Aman Deep
- RE: [PATCH v6] app/testpmd: add Host Shaper ... Spike Du
- [PATCH v7] app/testpmd: add Host Shaper comm... Spike Du
- [PATCH v7] app/testpmd: add Host Shaper comm... Spike Du
- RE: [PATCH v7] app/testpmd: add Host Shaper ... Matan Azrad
- Re: [PATCH v7] app/testpmd: add Host Shaper ... Thomas Monjalon
- [PATCH v8 0/6] introduce per-queue available... Spike Du
- [PATCH v8 2/6] common/mlx5: share interrupt ... Spike Du
- [PATCH v8 5/6] net/mlx5: add private API to ... Spike Du
- [PATCH v8 1/6] net/mlx5: add LWM support for... Spike Du
- [PATCH v9 0/6] introduce per-queue available... Spike Du
- [PATCH v9 1/6] net/mlx5: add LWM support for... Spike Du
- [PATCH v10 0/6] introduce per-queue availabl... Spike Du
- [PATCH v10 1/6] net/mlx5: add LWM support fo... Spike Du
- [PATCH v10 2/6] common/mlx5: share interrupt... Spike Du