net/mlx5: add indexed pool iterator
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 13 Jul 2021 08:44:37 +0000 (11:44 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 13:19:08 +0000 (15:19 +0200)
commit64a80f1c4818ff662f2c54cd0477baca0a7a018f
tree01d85ea1d2714ec6548c1929b9c719b70612c3f4
parentd15c0946beeafb62c7620214667dace2c19f528c
net/mlx5: add indexed pool iterator

In some cases, application may want to know all the allocated
index in order to apply some operations to the allocated index.

This commit adds the indexed pool functions to support foreach
operation.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_utils.c
drivers/net/mlx5/mlx5_utils.h