[PATCH v4 2/7] common/mlx5: share interrupt management
Ray Kinsella
mdr at ashroe.eu
Fri Jun 3 16:30:20 CEST 2022
Spike Du <spiked at nvidia.com> writes:
> There are many duplicate code of creating and initializing rte_intr_handle.
> Add a new mlx5_os API to do this, replace all PMD related code with this
> API.
>
> Signed-off-by: Spike Du <spiked at nvidia.com>
> ---
> drivers/common/mlx5/linux/mlx5_common_os.c | 131 ++++++++++++++++++++++++++
> drivers/common/mlx5/linux/mlx5_common_os.h | 11 +++
> drivers/common/mlx5/version.map | 2 +
> drivers/common/mlx5/windows/mlx5_common_os.h | 24 +++++
> drivers/net/mlx5/linux/mlx5_ethdev_os.c | 71 --------------
> drivers/net/mlx5/linux/mlx5_os.c | 132 ++++++---------------------
> drivers/net/mlx5/linux/mlx5_socket.c | 53 ++---------
> drivers/net/mlx5/mlx5.h | 2 -
> drivers/net/mlx5/mlx5_txpp.c | 28 ++----
> drivers/net/mlx5/windows/mlx5_ethdev_os.c | 22 -----
> drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 48 ++--------
> 11 files changed, 217 insertions(+), 307 deletions(-)
>
Acked-by: Ray Kinsella <mdr at ashroe.eu>
More information about the dev
mailing list