aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rdmavt/mr.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-25 16:45:43 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-25 16:45:43 -0500
commitac1820fb286b552b6885d40ab34f1e59b815f1f1 (patch)
treeb9b4e6dc5df8574e6875e4e2f5f27105addc7812 /drivers/infiniband/sw/rdmavt/mr.c
parentedccb59429657b09806146339e2b27594c1d1da0 (diff)
parent0bbb3b7496eabb6779962a998a8a91f4a8e589ff (diff)
Merge tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
Pull rdma DMA mapping updates from Doug Ledford: "Drop IB DMA mapping code and use core DMA code instead. Bart Van Assche noted that the ib DMA mapping code was significantly similar enough to the core DMA mapping code that with a few changes it was possible to remove the IB DMA mapping code entirely and switch the RDMA stack to use the core DMA mapping code. This resulted in a nice set of cleanups, but touched the entire tree and has been kept separate for that reason." * tag 'for-next-dma_ops' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (37 commits) IB/rxe, IB/rdmavt: Use dma_virt_ops instead of duplicating it IB/core: Remove ib_device.dma_device nvme-rdma: Switch from dma_device to dev.parent RDS: net: Switch from dma_device to dev.parent IB/srpt: Modify a debug statement IB/srp: Switch from dma_device to dev.parent IB/iser: Switch from dma_device to dev.parent IB/IPoIB: Switch from dma_device to dev.parent IB/rxe: Switch from dma_device to dev.parent IB/vmw_pvrdma: Switch from dma_device to dev.parent IB/usnic: Switch from dma_device to dev.parent IB/qib: Switch from dma_device to dev.parent IB/qedr: Switch from dma_device to dev.parent IB/ocrdma: Switch from dma_device to dev.parent IB/nes: Remove a superfluous assignment statement IB/mthca: Switch from dma_device to dev.parent IB/mlx5: Switch from dma_device to dev.parent IB/mlx4: Switch from dma_device to dev.parent IB/i40iw: Remove a superfluous assignment statement IB/hns: Switch from dma_device to dev.parent ...
Diffstat (limited to 'drivers/infiniband/sw/rdmavt/mr.c')
-rw-r--r--drivers/infiniband/sw/rdmavt/mr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/sw/rdmavt/mr.c b/drivers/infiniband/sw/rdmavt/mr.c
index c80a69b1ffcb..ae30b6838d79 100644
--- a/drivers/infiniband/sw/rdmavt/mr.c
+++ b/drivers/infiniband/sw/rdmavt/mr.c
@@ -320,8 +320,8 @@ static void __rvt_free_mr(struct rvt_mr *mr)
320 * @acc: access flags 320 * @acc: access flags
321 * 321 *
322 * Return: the memory region on success, otherwise returns an errno. 322 * Return: the memory region on success, otherwise returns an errno.
323 * Note that all DMA addresses should be created via the 323 * Note that all DMA addresses should be created via the functions in
324 * struct ib_dma_mapping_ops functions (see dma.c). 324 * struct dma_virt_ops.
325 */ 325 */
326struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc) 326struct ib_mr *rvt_get_dma_mr(struct ib_pd *pd, int acc)
327{ 327{
@@ -799,7 +799,7 @@ int rvt_lkey_ok(struct rvt_lkey_table *rkt, struct rvt_pd *pd,
799 799
800 /* 800 /*
801 * We use LKEY == zero for kernel virtual addresses 801 * We use LKEY == zero for kernel virtual addresses
802 * (see rvt_get_dma_mr and dma.c). 802 * (see rvt_get_dma_mr() and dma_virt_ops).
803 */ 803 */
804 rcu_read_lock(); 804 rcu_read_lock();
805 if (sge->lkey == 0) { 805 if (sge->lkey == 0) {
@@ -897,7 +897,7 @@ int rvt_rkey_ok(struct rvt_qp *qp, struct rvt_sge *sge,
897 897
898 /* 898 /*
899 * We use RKEY == zero for kernel virtual addresses 899 * We use RKEY == zero for kernel virtual addresses
900 * (see rvt_get_dma_mr and dma.c). 900 * (see rvt_get_dma_mr() and dma_virt_ops).
901 */ 901 */
902 rcu_read_lock(); 902 rcu_read_lock();
903 if (rkey == 0) { 903 if (rkey == 0) {