This is a tree wide change and has been kept separate for that reason.

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.  This branch
will be submitted separately to Linus at the end of the merge window
as per normal practice for tree wide changes like this.
IB/rxe, IB/rdmavt: Use dma_virt_ops instead of duplicating it

Make the rxe and rdmavt drivers use dma_virt_ops. Update the
comments that refer to the source files removed by this patch.
Remove struct ib_dma_mapping_ops. Remove ib_device.dma_ops.

Signed-off-by: Bart Van Assche <>
Cc: Andrew Boyer <>
Cc: Dennis Dalessandro <>
Cc: Jonathan Toppins <>
Cc: Alex Estrin <>
Cc: Leon Romanovsky <>
Reviewed-by: Leon Romanovsky <>
Signed-off-by: Doug Ledford <>
13 files changed