[openib-general] [PATCH] Change ib_send/recv_wr struct back to use next member rather than list
Hal Rosenstock
halr at voltaire.com
Tue Sep 14 11:45:37 PDT 2004
Change ib_send/recv_wr struct back to use next member rather than list
(on openib-candidate branch)
Index: access/ib_mad.c
===================================================================
--- access/ib_mad.c (revision 829)
+++ access/ib_mad.c (working copy)
@@ -303,7 +303,7 @@
/* Walk list of send WRs and post each one on send list */
cur_send_wr = send_wr;
while (cur_send_wr) {
- next_send_wr = (struct ib_send_wr *)cur_send_wr->list.next;
+ next_send_wr = (struct ib_send_wr *)cur_send_wr->next;
/* Allocate MAD send WR tracking structure */
mad_send_wr = kmalloc(sizeof *mad_send_wr,
@@ -320,7 +320,7 @@
/* Timeout valid only when MAD is a request !!! */
mad_send_wr->timeout_ms = cur_send_wr->wr.ud.timeout_ms;
- wr.list.next = NULL;
+ wr.next = NULL;
wr.opcode = IB_WR_SEND; /* cur_send_wr->opcode ? */
wr.wr_id = (unsigned long)mad_send_wr;
wr.sg_list = cur_send_wr->sg_list;
@@ -932,7 +932,7 @@
sg_list.lkey = (*port_priv->mr).lkey;
/* Setup receive WR */
- recv_wr.list.next = NULL;
+ recv_wr.next = NULL;
recv_wr.sg_list = &sg_list;
recv_wr.num_sge = 1;
recv_wr.recv_flags = IB_RECV_SIGNALED;
Index: include/ib_verbs.h
===================================================================
--- include/ib_verbs.h (revision 829)
+++ include/ib_verbs.h (working copy)
@@ -519,7 +519,7 @@
};
struct ib_send_wr {
- struct list_head list;
+ struct ib_send_wr *next;
u64 wr_id;
struct ib_sge *sg_list;
int num_sge;
@@ -552,7 +552,7 @@
};
struct ib_recv_wr {
- struct list_head list;
+ struct ib_recv_wr *next;
u64 wr_id;
struct ib_sge *sg_list;
int num_sge;
More information about the general
mailing list