diff options
| author | Sagi Grimberg <sagig@mellanox.com> | 2016-02-29 12:07:33 -0500 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2016-03-04 11:59:35 -0500 |
| commit | b005d316471374b1ff26df8c8460cc1ea9186647 (patch) | |
| tree | eee7d5f6dd1f268252019d9ef8572ba72d16cf48 /drivers/infiniband/hw/mlx5/main.c | |
| parent | f5aa9159a418726d74b67c8815ffd2739afb4c7a (diff) | |
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/main.c')
| -rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 55fa5889d3b2..7e89a547bf34 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c | |||
| @@ -491,6 +491,8 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, | |||
| 491 | props->device_cap_flags |= IB_DEVICE_MEM_WINDOW | | 491 | props->device_cap_flags |= IB_DEVICE_MEM_WINDOW | |
| 492 | IB_DEVICE_MEM_WINDOW_TYPE_2B; | 492 | IB_DEVICE_MEM_WINDOW_TYPE_2B; |
| 493 | props->max_mw = 1 << MLX5_CAP_GEN(mdev, log_max_mkey); | 493 | props->max_mw = 1 << MLX5_CAP_GEN(mdev, log_max_mkey); |
| 494 | /* We support 'Gappy' memory registration too */ | ||
| 495 | props->device_cap_flags |= IB_DEVICE_SG_GAPS_REG; | ||
| 494 | } | 496 | } |
| 495 | props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS; | 497 | props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS; |
| 496 | if (MLX5_CAP_GEN(mdev, sho)) { | 498 | if (MLX5_CAP_GEN(mdev, sho)) { |
