[openib-general] PATCH *next to list

Sean Hefty mshefty at ichips.intel.com
Wed Aug 4 10:45:50 PDT 2004


Here's a patch that converts *next fields to using struct list_head.

- Sean

Index: ib_verbs.h
===================================================================
--- ib_verbs.h	(revision 571)
+++ ib_verbs.h	(working copy)
@@ -460,7 +460,7 @@
 };
 
 struct ib_send_wr {
-	struct ib_send_wr	*next;
+	struct list_head	list;
 	u64			wr_id;
 	struct ib_sge		*sg_list;
 	int			num_sge;
@@ -488,7 +488,7 @@
 };
 
 struct ib_recv_wr {
-	struct _ib_recv_wr	*next;
+	struct list_head	list;
 	u64			wr_id;
 	struct ib_sge		*sg_list;
 	int			num_sge;
Index: ib_mad.h
===================================================================
--- ib_mad.h	(revision 584)
+++ ib_mad.h	(working copy)
@@ -43,7 +43,7 @@
 };
 
 struct ib_mad_msg {
-	struct ib_mad_msg	*next;
+	struct list_head	list;
 
 	/* See about zero-copy... */
 	void			*buf;



More information about the general mailing list