common/mlx5: add glue functions on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 28 Dec 2020 09:54:23 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commit7525ebd8ebb02822b8f7286ba028be0b165d9c40
treebec4224f06fa2892524f0de0cc39af7d35f7835c
parent7ae7f458f8ef1c2b4a0a4c818a0b08ab88826c19
common/mlx5: add glue functions on Windows

Windows glue functions are added to file mlx5/windows/mlx5_glue.c.
The following APIs are supported:
get_device_list, free_device_list, open_device, close_device,
query_device, query_hca_iseg, devx_obj_create, devx_obj_destroy,
devx_obj_query, devx_obj_modify, devx_general_cmd, devx_umem_reg,
devx_umem_dereg, devx_alloc_uar, devx_free_uar, devx_fs_rule_add,
devx_fs_rule_del, devx_query_eqn
New added files:
mlx5_win_defs.h - this file imports missing definitions from Linux
rdma-core library and Linux OS.
mlx5_win_ext.h - this file contains structs that enable a unified
Linux/Windows API. Each struct has an equivalent (but different) Linux
struct. By calling with 'void *' pointers - the Linux/Windows API is
identical.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/rte_common_mlx5_exports.def
drivers/common/mlx5/windows/mlx5_glue.c [new file with mode: 0644]
drivers/common/mlx5/windows/mlx5_glue.h [new file with mode: 0644]
drivers/common/mlx5/windows/mlx5_win_defs.h [new file with mode: 0644]
drivers/common/mlx5/windows/mlx5_win_ext.h [new file with mode: 0644]