[openib-general] [PATCH 3/4] uverbs: export ib_copy_ah_attr_to_user
Sean Hefty
sean.hefty at intel.com
Tue Jun 6 19:52:47 PDT 2006
Export the ib_copy_ah_attr_to_user() routine to allow copy ib_ah_attr
to userspace to support UD QPs.
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
Index: core/uverbs_marshall.c
===================================================================
--- core/uverbs_marshall.c (revision 7758)
+++ core/uverbs_marshall.c (working copy)
@@ -32,8 +32,8 @@
#include <rdma/ib_marshall.h>
-static void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
- struct ib_ah_attr *src)
+void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
+ struct ib_ah_attr *src)
{
memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid);
dst->grh.flow_label = src->grh.flow_label;
@@ -47,6 +47,7 @@ static void ib_copy_ah_attr_to_user(stru
dst->is_global = src->ah_flags & IB_AH_GRH ? 1 : 0;
dst->port_num = src->port_num;
}
+EXPORT_SYMBOL(ib_copy_ah_attr_to_user);
void ib_copy_qp_attr_to_user(struct ib_uverbs_qp_attr *dst,
struct ib_qp_attr *src)
Index: include/rdma/ib_marshall.h
===================================================================
--- include/rdma/ib_marshall.h (revision 7758)
+++ include/rdma/ib_marshall.h (working copy)
@@ -41,6 +41,9 @@
void ib_copy_qp_attr_to_user(struct ib_uverbs_qp_attr *dst,
struct ib_qp_attr *src);
+void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
+ struct ib_ah_attr *src);
+
void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
struct ib_sa_path_rec *src);
More information about the general
mailing list