common/mlx5: share Verbs device match function
authorShiri Kuzin <shirik@nvidia.com>
Tue, 4 May 2021 17:54:56 +0000 (20:54 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 May 2021 20:49:37 +0000 (22:49 +0200)
commitc31f3f7f7b5619d3cc3d3334412de19a1b643fbe
tree99aedc5a48579462fd78323e486089da0be6bf30
parent25245d5dc9ecfa8bc9964c69a756beca6ee1ca72
common/mlx5: share Verbs device match function

The get_ib_device_match function iterates over the list of ib devices
returned by the get_device_list glue function and returns the ib device
matching the provided address.

Since this function is in use by several drivers, in this patch we
share the function in common part.

Signed-off-by: Shiri Kuzin <shirik@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/linux/mlx5_common_os.c
drivers/common/mlx5/linux/mlx5_common_os.h
drivers/common/mlx5/mlx5_common.h
drivers/common/mlx5/version.map
drivers/compress/mlx5/mlx5_compress.c
drivers/regex/mlx5/mlx5_regex.c
drivers/vdpa/mlx5/mlx5_vdpa.c