[Fwd: [ofa-general] [PATCH] IB/ipath - Enable loopback of DR SMP responses from userspace]

Hal Rosenstock hrosenstock at xsigo.com
Tue Oct 23 15:07:41 PDT 2007


Hi Roland,

This is patch 3.

Acked-by: Hal Rosenstock <hal at xsigo.com>

-- Hal

-------- Forwarded Message --------
From: Ralph Campbell <ralph.campbell at qlogic.com>
To: openib <general at lists.openfabrics.org>
Subject: [ofa-general] [PATCH] IB/ipath - Enable loopback of DR SMP
responses from userspace
Date: Fri, 19 Oct 2007 13:33:46 -0700
This patch is in response to reviewing a patch to the core MAD processing
which fixes loopback of directed route packets to/from user level
MAD agents. This change enables the core code to work for ib_ipath.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

diff --git a/drivers/infiniband/hw/ipath/ipath_mad.c b/drivers/infiniband/hw/ipath/ipath_mad.c
index 3d1432d..1978c34 100644
--- a/drivers/infiniband/hw/ipath/ipath_mad.c
+++ b/drivers/infiniband/hw/ipath/ipath_mad.c
@@ -1434,7 +1434,7 @@ static int process_subn(struct ib_device *ibdev, int mad_flags,
 		 * before checking for other consumers.
 		 * Just tell the caller to process it normally.
 		 */
-		ret = IB_MAD_RESULT_FAILURE;
+		ret = IB_MAD_RESULT_SUCCESS;
 		goto bail;
 	default:
 		smp->status |= IB_SMP_UNSUP_METHOD;
@@ -1516,7 +1516,7 @@ static int process_perf(struct ib_device *ibdev, u8 port_num,
 		 * before checking for other consumers.
 		 * Just tell the caller to process it normally.
 		 */
-		ret = IB_MAD_RESULT_FAILURE;
+		ret = IB_MAD_RESULT_SUCCESS;
 		goto bail;
 	default:
 		pmp->status |= IB_SMP_UNSUP_METHOD;


_______________________________________________
general mailing list
general at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list