IB/hfi1, rdmavt: Move SGE state helper routines into rdmavt
authorBrian Welty <brian.welty@intel.com>
Wed, 8 Feb 2017 13:27:37 +0000 (05:27 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:41 +0000 (09:18 -0500)
commit1198fcea8a7810d06069a85256d1ef9ec97d434b
tree42e90b86c9360604916c10dd4313693b5998c177
parent0128fceaf934dbfca4537d4eb8c3a5f7e84562c8
IB/hfi1, rdmavt: Move SGE state helper routines into rdmavt

To improve code reuse, add small SGE state helper routines to rdmavt_mr.h.
Leverage these in hfi1, including refactoring of hfi1_copy_sge.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/ud.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/hfi1/verbs.h
include/rdma/rdmavt_mr.h