summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mlx5_ib.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2016-02-29 19:07:33 +0200
committerDoug Ledford <dledford@redhat.com>2016-03-04 11:59:35 -0500
commitb005d316471374b1ff26df8c8460cc1ea9186647 (patch)
treeeee7d5f6dd1f268252019d9ef8572ba72d16cf48 /drivers/infiniband/hw/mlx5/mlx5_ib.h
parentf5aa9159a418726d74b67c8815ffd2739afb4c7a (diff)
downloadop-kernel-dev-b005d316471374b1ff26df8c8460cc1ea9186647.zip
op-kernel-dev-b005d316471374b1ff26df8c8460cc1ea9186647.tar.gz
mlx5: Add arbitrary sg list support
Allocate proper context for arbitrary scatterlist registration If ib_alloc_mr is called with IB_MR_MAP_ARB_SG, the driver allocate a private klm list instead of a private page list. Set the UMR wqe correctly when posting the fast registration. Also, expose device cap IB_DEVICE_MAP_ARB_SG according to the device id (until we have a FW bit that correctly exposes it). Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index 3c02b3c..60b8962 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -447,6 +447,7 @@ struct mlx5_ib_mr {
int ndescs;
int max_descs;
int desc_size;
+ int access_mode;
struct mlx5_core_mkey mmkey;
struct ib_umem *umem;
struct mlx5_shared_mr_info *smr_info;
OpenPOWER on IntegriCloud