[openib-general] [PATCH] ibsrpdm: fix service record range problem

John Kingman kingman at austin.rr.com
Thu Nov 17 10:45:39 PST 2005


The start and end values are reversed in the attribute modifier for the
Service Entries attribute.

Tested with our target.

Signed-off-by: John Kingman <kingman at storagegear.com>

--- srp-dm.c	2005-11-15 01:35:40.000000000 -0600
+++ srp-dm.c	2005-11-17 12:09:28.000000000 -0600
@@ -335,7 +335,7 @@
 	struct srp_dm_mad	       *in_dm_mad;
 
 	init_srp_dm_mad(&out_mad, agent[1], dlid, SRP_DM_ATTR_SERVICE_ENTRIES,
-			(ioc << 16) | (start << 8) | end);
+			(ioc << 16) | (end << 8) | start);
 
 again:
 	if (write(fd, &out_mad, sizeof out_mad) != sizeof out_mad) {



More information about the general mailing list