]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Add arbitrary sg list support
authorSagi Grimberg <sagig@mellanox.com>
Mon, 29 Feb 2016 17:07:33 +0000 (19:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 4 Mar 2016 16:59:35 +0000 (11:59 -0500)
commit13704ca8a46cb14fd92603e87466527e16be64e5
treeeee7d5f6dd1f268252019d9ef8572ba72d16cf48
parent3ab26033dfc06f0fab13cd283076ff5e1f3b11bd
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>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/qp.c