[PATCH v4 6/7] net/mlx5: add private API to config host port shaper
Ray Kinsella
mdr at ashroe.eu
Fri Jun 3 16:55:58 CEST 2022
Spike Du <spiked at nvidia.com> writes:
> Host port shaper can be configured with QSHR(QoS Shaper Host Register).
> Add check in build files to enable this function or not.
>
> The host shaper configuration affects all the ethdev ports belonging to the
> same host port.
>
> Host shaper can configure shaper rate and lwm-triggered for a host port.
> The shaper limits the rate of traffic from host port to wire port.
> If lwm-triggered is enabled, a 100Mbps shaper is enabled automatically
> when one of the host port's Rx queues receives fill threshold event.
>
> Signed-off-by: Spike Du <spiked at nvidia.com>
> ---
> doc/guides/nics/mlx5.rst | 35 +++++++++++
> doc/guides/rel_notes/release_22_07.rst | 1 +
> drivers/common/mlx5/linux/meson.build | 13 +++++
> drivers/common/mlx5/mlx5_prm.h | 25 ++++++++
> drivers/net/mlx5/mlx5.h | 2 +
> drivers/net/mlx5/mlx5_rx.c | 103 +++++++++++++++++++++++++++++++++
> drivers/net/mlx5/rte_pmd_mlx5.h | 30 ++++++++++
> drivers/net/mlx5/version.map | 2 +
> 8 files changed, 211 insertions(+)
>
Acked-by: Ray Kinsella <mdr at ashroe.eu>
More information about the dev
mailing list