]> 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)
commitb822760661ae43e60988c89c32d274bbf6f68582
tree0584c4826d9ab18d3d54d74842e043a8e1a54524
parent8b50a00432037df2df1492eddbcb64bbe9d5c879
IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY

Commit 8ddf2796c916 ("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