]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY
authorSagi Grimberg <sagig@mellanox.com>
Thu, 24 Sep 2015 07:34:23 +0000 (10:34 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 25 Sep 2015 14:46:51 +0000 (10:46 -0400)
commit8a3b3026da8a3b5d01c1e8d555f01ef68d8292c1
tree0584c4826d9ab18d3d54d74842e043a8e1a54524
parentf3c0381aaa4ac380dd781053c4ad95b4f75e13cf
IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY

Commit c2e1929196e6 ("IB/core: Guarantee that a local_dma_lkey
is available") allows ULPs that make use of the local dma key to keep
working as before by allocating a DMA MR with local permissions and
converted these consumers to use the MR associated with the PD
rather then device->local_dma_lkey.

ConnectIB has some known issues with memory registration
using the local_dma_lkey (SEND, RDMA, RECV seems to work ok).

Thus don't expose support for it (remove device->local_dma_lkey
setting), and take advantage of the above commit such that no regression
is introduced to working systems.

The local_dma_lkey support will be restored in CX4 depending on FW
capability query.

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