net/mlx5: support Rx descriptor threshold event
authorSpike Du <spiked@nvidia.com>
Thu, 16 Jun 2022 08:41:52 +0000 (11:41 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 23 Jun 2022 15:25:02 +0000 (17:25 +0200)
commit5c9f3294e678ed1900530bc8a6b3f54496a3ee51
tree25e09c6ddcd383203c1600c22c49631c118b08ed
parent25025da3c5c38674ef786ad61bab8844cbce7371
net/mlx5: support Rx descriptor threshold event

Add mlx5 specific available descriptor threshold configuration
and query handler.
In mlx5 PMD, available descriptor threshold is also called
LWM (limit watermark).
While the Rx queue fullness reaches the LWM limit, the driver catches
an HW event and invokes the user callback.
The query handler finds the next Rx queue with pending LWM event
if any, starting from the given Rx queue index.

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/mlx5_prm.h
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_rx.c
drivers/net/mlx5/mlx5_rx.h