net/mlx5: handle Rx descriptor LWM event
authorSpike Du <spiked@nvidia.com>
Thu, 16 Jun 2022 08:41:51 +0000 (11:41 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 23 Jun 2022 15:25:00 +0000 (17:25 +0200)
commit25025da3c5c38674ef786ad61bab8844cbce7371
tree60f3fe93b1b9878e8695c3207f0684252e63f17e
parent72d7efe464b114cac4cbb6b7b6cbad333773234d
net/mlx5: handle Rx descriptor LWM event

When LWM meets RQ WQE, the kernel driver raises an event to SW.
Use devx event_channel to catch this and to notify the user.
Allocate this channel per shared device.
The channel has a cookie that informs the specific event port and queue.

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