summaryrefslogtreecommitdiff
path: root/include/rdma/rdmavt_mr.h
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2016-01-22 13:00:35 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:37:25 -0500
commit3b0b3fb3c1bbf50a2f88ea7345448a41dcba3c57 (patch)
treeb8c03fbc1a09006c2036c821823e436169f69989 /include/rdma/rdmavt_mr.h
parent81ba39a82e8a9ed4eba3e967a09e60a9d00d8de4 (diff)
downloadlwn-3b0b3fb3c1bbf50a2f88ea7345448a41dcba3c57.tar.gz
lwn-3b0b3fb3c1bbf50a2f88ea7345448a41dcba3c57.zip
IB/rdmavt: Add modify qp
Add modify qp and supporting functions. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdmavt_mr.h')
-rw-r--r--include/rdma/rdmavt_mr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rdma/rdmavt_mr.h b/include/rdma/rdmavt_mr.h
index ea60476c6b6b..4aa81713b4f3 100644
--- a/include/rdma/rdmavt_mr.h
+++ b/include/rdma/rdmavt_mr.h
@@ -127,4 +127,13 @@ static inline void rvt_get_mr(struct rvt_mregion *mr)
atomic_inc(&mr->refcount);
}
+static inline void rvt_put_ss(struct rvt_sge_state *ss)
+{
+ while (ss->num_sge) {
+ rvt_put_mr(ss->sge.mr);
+ if (--ss->num_sge)
+ ss->sge = *ss->sg_list++;
+ }
+}
+
#endif /* DEF_RDMAVT_INCMRH */