mlx5: Fix missing device local_dma_lkey
authorSagi Grimberg <sagig@mellanox.com>
Mon, 20 Jul 2015 16:54:36 +0000 (19:54 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 29 Aug 2015 02:54:46 +0000 (22:54 -0400)
commita3c874200cbcd95ed914ba84f33f571a0ef7adfa
tree07ed51041215501b61f6f0d7672bafcbfa6e4062
parentc13dcf9f2d6f5f06ef1bf79ec456df614c5e058b
mlx5: Fix missing device local_dma_lkey

The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY
but does not set the the device local_dma_lkey. This breaks
rpcrdma drivers.

Query and set this lkey when creating the device resources.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/fw.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h