summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/user.h
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2016-02-29 17:05:30 +0100
committerDoug Ledford <dledford@redhat.com>2016-03-01 17:18:54 +0100
commitd2370e0a573e5c5ea9c96373558727abb3ea71f7 (patch)
tree11e770e07728416ed1a26eb102b2274243b2697a /drivers/infiniband/hw/mlx5/user.h
parentIB/core: Add vendor's specific data to alloc mw (diff)
downloadlinux-d2370e0a573e5c5ea9c96373558727abb3ea71f7.tar.xz
linux-d2370e0a573e5c5ea9c96373558727abb3ea71f7.zip
IB/mlx5: Add memory windows allocation support
This patch adds user-space support for memory windows allocation and deallocation. It also exposes the supported types via query_device_caps verb. Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-by: Yishai Hadas <yishaih@mellanox.com> Tested-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/user.h')
-rw-r--r--drivers/infiniband/hw/mlx5/user.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/user.h b/drivers/infiniband/hw/mlx5/user.h
index b94a55404a59..61bc308bb802 100644
--- a/drivers/infiniband/hw/mlx5/user.h
+++ b/drivers/infiniband/hw/mlx5/user.h
@@ -152,6 +152,13 @@ struct mlx5_ib_create_qp_resp {
__u32 uuar_index;
};
+struct mlx5_ib_alloc_mw {
+ __u32 comp_mask;
+ __u8 num_klms;
+ __u8 reserved1;
+ __u16 reserved2;
+};
+
static inline int get_qp_user_index(struct mlx5_ib_ucontext *ucontext,
struct mlx5_ib_create_qp *ucmd,
int inlen,