This patch series modified the ib_sg_dma API to eliminate the .dma_len and .dma_address methods.
In all present cases that overload these methods (ipath, qib, ehca), the lack of these methods are compensated for by code changes to the driver .map_sg to insure that the vanilla sg_dma_address() and sg_dma_len() will do the same thing as the equivalent former ib_sg_dma_address() and ib_sg_dma_len() calls into the drivers. This patch series is a followup to this recent submission http://marc.info/?l=linux-rdma&m=139602422108727&w=2 and Bart's similar comment in http://marc.info/?l=linux-netdev&m=135643746610259&w=2. Roland, I'm not sure of the history of these methods and what rationale caused them to be added? There is obviously an interim step that could be done here to preseve the overload by not changing verbs, yet change qib/ipath/echa to not overload them. This would allow the drivers to work even when the "correct" API's had not been used by the ULP. --- Mike Marciniszyn (4): IB/core: Remove overload in ib_sg_dma* IB/qib: remove ib_sg_dma_address() and ib_sg_dma_len() overloads IB/ipath: remove ib_sg_dma_address() and ib_sg_dma_len() overloads IB/ehca: remove ib_sg_dma_address() and ib_sg_dma_len() overloads drivers/infiniband/hw/ehca/ehca_mrmw.c | 12 --------- drivers/infiniband/hw/ipath/ipath_dma.c | 43 +++++++++++-------------------- drivers/infiniband/hw/qib/qib_dma.c | 21 +++------------ include/rdma/ib_verbs.h | 14 ++++------ 4 files changed, 25 insertions(+), 65 deletions(-) -- Mike -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
