<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=559090416-25032010>The following patch
is needed in order to allow mads with grh to return
correctly.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=559090416-25032010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=559090416-25032010>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=559090416-25032010>Tzachi</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Index:
al_mad.c<BR>===================================================================<BR>---
al_mad.c (revision 5737)<BR>+++ al_mad.c (working copy)<BR>@@ -335,6
+335,13 @@<BR> p_mad_element->recv_opt =
p_wc->recv.ud.recv_opt;<BR> <BR> p_mad_element->grh_valid =
p_wc->recv.ud.recv_opt & IB_RECV_OPT_GRH_VALID;<BR>+ if
(p_mad_element->grh_valid) {<BR>+ // swap the src and dst gids to
allow replys to return<BR>+ ib_gid_t tmp_gid;<BR>+ tmp_gid
=
p_mad_element->p_grh1->src_gid;<BR>+ p_mad_element->p_grh1->src_gid
=
p_mad_element->p_grh1->dest_gid;<BR>+ p_mad_element->p_grh1->dest_gid
= tmp_gid;<BR>+ }<BR> <BR> if(
p_wc->recv.ud.recv_opt & IB_RECV_OPT_IMMEDIATE
)<BR> p_mad_element->immediate_data =
p_wc->recv.ud.immediate_data;<BR></DIV></FONT></BODY></HTML>