net/mlx5: add Linux-specific file with getter functions
authorOphir Munk <ophirmu@mellanox.com>
Wed, 3 Jun 2020 15:05:56 +0000 (15:05 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commitf44b09f9e35a1a37de7ddb73e2eceaeb049f5e6c
tree99ded4a6e5e80249af7481dfe55e05616ac6a29b
parent6e88bc42c7a8c1e0fe60fd0d36f686cc1ca08507
net/mlx5: add Linux-specific file with getter functions

'ctx' type (field in 'struct mlx5_ctx_shared') is changed from 'struct
ibv_context *' to 'void *'.  'ctx' members which are verbs dependent
(e.g. device_name) will be accessed through getter functions which are
added to a new file under Linux directory: linux/mlx5_os.c.

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/Makefile
drivers/net/mlx5/linux/meson.build [new file with mode: 0644]
drivers/net/mlx5/linux/mlx5_os.c [new file with mode: 0644]
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_mp.c