* [PATCH 5/29v2] Change saving of user's send wr_id in MAD
@ 2005-07-11 19:47 Hal Rosenstock
0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2005-07-11 19:47 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, openib-general
Move saving of user's send wr_id to better match layering of received
response handling.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <halr@voltaire.com>
This patch depends on patch 4/29.
--
mad.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -uprN linux-2.6.13-rc2-mm1-4/drivers/infiniband/core/mad.c linux-2.6.13-rc2-mm1-5/drivers/infiniband/core/mad.c
-- linux-2.6.13-rc2-mm1-4/drivers/infiniband/core/mad.c 2005-07-11 13:35:26.000000000 -0400
+++ linux-2.6.13-rc2-mm1-5/drivers/infiniband/core/mad.c 2005-07-11 13:35:56.000000000 -0400
@@ -847,9 +847,8 @@ static int ib_send_mad(struct ib_mad_age
unsigned long flags;
int ret;
- /* Replace user's WR ID with our own to find WR upon completion */
+ /* Set WR ID to find mad_send_wr upon completion */
qp_info = mad_agent_priv->qp_info;
- mad_send_wr->wr_id = mad_send_wr->send_wr.wr_id;
mad_send_wr->send_wr.wr_id = (unsigned long)&mad_send_wr->mad_list;
mad_send_wr->mad_list.mad_queue = &qp_info->send_queue;
@@ -948,6 +947,7 @@ int ib_post_send_mad(struct ib_mad_agent
mad_send_wr->send_wr.sg_list = mad_send_wr->sg_list;
memcpy(mad_send_wr->sg_list, send_wr->sg_list,
sizeof *send_wr->sg_list * send_wr->num_sge);
+ mad_send_wr->wr_id = mad_send_wr->send_wr.wr_id;
mad_send_wr->send_wr.next = NULL;
mad_send_wr->tid = send_wr->wr.ud.mad_hdr->tid;
mad_send_wr->agent = mad_agent;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-11 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-11 19:47 [PATCH 5/29v2] Change saving of user's send wr_id in MAD Hal Rosenstock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).