common/mlx5: disable RoCE in device context creation
authorMichael Baum <michaelba@nvidia.com>
Tue, 19 Oct 2021 20:55:53 +0000 (23:55 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 21 Oct 2021 13:53:46 +0000 (15:53 +0200)
commit662d0dc67192f424cd85beb4bbcba6e6759c16b9
treed4a82d3149c7196883b4606d4919bfd7b7e64d22
parentca1418ce39108e7c2a778a14448457ad1264b183
common/mlx5: disable RoCE in device context creation

Add option to get IB device after disabling RoCE. It is relevant if
there is vDPA class in device arguments list.

Use common device context in vDPA driver and remove the ctx field from
its private structure.

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
15 files changed:
drivers/common/mlx5/linux/mlx5_common_os.c
drivers/common/mlx5/linux/mlx5_common_os.h
drivers/common/mlx5/linux/mlx5_common_verbs.c
drivers/common/mlx5/linux/mlx5_nl.c
drivers/common/mlx5/linux/mlx5_nl.h
drivers/common/mlx5/mlx5_common.h
drivers/common/mlx5/mlx5_common_defs.h
drivers/common/mlx5/version.map
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_event.c
drivers/vdpa/mlx5/mlx5_vdpa_lm.c
drivers/vdpa/mlx5/mlx5_vdpa_mem.c
drivers/vdpa/mlx5/mlx5_vdpa_steer.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c