OSDN Git Service

net/mlx5: Use xarray to store and manage completion EQs
authorMaher Sanalla <msanalla@nvidia.com>
Mon, 19 Jun 2023 12:01:43 +0000 (15:01 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:50 +0000 (10:53 -0700)
commit273c697fdedc65f8b423a652fb248860a3dbf36d
treeef4920c1221f7a3ab39cfce7018c4ae0948356f2
parent54b2cf41b853e04ea09a2a075e4a6dc30638c298
net/mlx5: Use xarray to store and manage completion EQs

Use xarray to store the completion EQs instead of a linked list.
The xarray offers more scalability, reduced memory overhead, and
facilitates the lookup of a certain EQ given a vector index.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c