]> git.droids-corp.org - dpdk.git/commit
net/mlx5: add API to configure host port shaper
authorSpike Du <spiked@nvidia.com>
Thu, 16 Jun 2022 08:41:53 +0000 (11:41 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 23 Jun 2022 15:25:04 +0000 (17:25 +0200)
commit2235fcda125763fa1a5b3c341b2799de9e44d479
tree97d294dbc048a7af7bc252ad28b09b32f24ac6ba
parent5c9f3294e678ed1900530bc8a6b3f54496a3ee51
net/mlx5: add API to configure host port shaper

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 available descriptor
threshold event.

Signed-off-by: Spike Du <spiked@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
doc/guides/nics/mlx5.rst
doc/guides/rel_notes/release_22_07.rst
drivers/common/mlx5/linux/meson.build
drivers/common/mlx5/mlx5_prm.h
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_rx.c
drivers/net/mlx5/rte_pmd_mlx5.h
drivers/net/mlx5/version.map