[openib-general] [PATCH] ib_mad: For received responses, set the wr_id field of the wc is set to the wr_id of the corresponding send request.

Hal Rosenstock
Sun Oct 24 12:07:18 PDT 2004


ib_mad: For received responses, set the wr_id field of the wc is set to
the wr_id of the corresponding send request.

Index: ib_mad.c
===================================================================
--- ib_mad.c    (revision 1046)
+++ ib_mad.c    (working copy)
@@ -895,6 +895,7 @@
                spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
 
                /* Defined behavior is to complete response before request */
+               recv->header.recv_wc.wc->wr_id = mad_send_wr->wr_id;
                mad_agent_priv->agent.recv_handler(
                                                &mad_agent_priv->agent,
                                                &recv->header.recv_wc);





More information about the openib-general mailing list