net/mlx5: support descriptor LWM for Rx queue
authorSpike Du <spiked@nvidia.com>
Thu, 16 Jun 2022 08:41:49 +0000 (11:41 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 23 Jun 2022 15:23:29 +0000 (17:23 +0200)
commit7158e46cb94be6f6071ccdabfc1fa48256955906
tree883970689b84fd40cfa7ee3c4087ff63491e6e29
parentbae645a23a41c7656928b742e0418fbf41095202
net/mlx5: support descriptor LWM for Rx queue

Add LWM (Limit WaterMark) field to Rxq object which indicates the percentage
of Rx queue size used by HW to raise descriptor event to the user.
Allow LWM setting in modify_rq command.
Allow the LWM configuration dynamically by adding RDY2RDY state change.

Signed-off-by: Spike Du <spiked@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_devx.c
drivers/net/mlx5/mlx5_devx.h
drivers/net/mlx5/mlx5_rx.h