[ofw] RE: Fix for mthca bug on mad layer
Tzachi Dar
tzachid at mellanox.co.il
Tue Sep 9 05:46:39 PDT 2008
Applied to both trunk and branch on 1574/5.
Stan, you can create the new build.
Thanks
Tzachi
________________________________
From: Reuven Amitai
Sent: Monday, September 08, 2008 7:26 PM
To: Leonid Keller; Tzachi Dar
Cc: ofw at lists.openfabrics.org
Subject:
Hi,
The patch disable av port checking (part of check-in 1538).
The problem of checking av port happen with mthca card (ConnectX
cards are OK).
OpenSM (runs on one machine) sends MAD request to another at the
beginning.
During request processing an av is created with mad svc port
num. This field is taken from qp_attr.primary_port
after query on the qp, but mthca set primary_port attr to be
zero (among other fields in qp_attr).
That will cause the av creation to fail and in consequence
opensm fails to recognize the remote machine.
Thanks, Reuven.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Index: core/al/al_av.c
===================================================================
--- core/al/al_av.c (revision 1545)
+++ core/al/al_av.c (working copy)
@@ -153,12 +153,17 @@
return IB_INVALID_PD_HANDLE;
}
+ /*
+ This check is disabled due to mthca problem. When registering
mad svc, port num is zero
+ because ibv_query_qp retrun '0' as primary port.
+
status = __check_av_port(h_pd->obj.p_ci_ca, p_av_attr);
if( status != IB_SUCCESS )
{
AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR,
("IB_INVALID_PORT\n") );
return status;
}
+ */
/* Get an AV tracking structure. */
h_av = alloc_av();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080909/e59834b4/attachment.html>
More information about the ofw
mailing list