diff mbox

[04/27] Fixed Multicast precreation parsing

Message ID 1343750695-28063-4-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes July 31, 2012, 4:04 p.m. UTC
Now allow to define partition without members with only multicast group
definitions.

Default=0x7fff : ALL;
Default=0x7fff,ipoib:
        mgid=ff12:401b::0719;

Signed-off-by: Tamir Ronen <tamirr@mellanox.com>
Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_prtn_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/opensm/osm_prtn_config.c b/opensm/osm_prtn_config.c
index 6798979..750cbe0 100644
--- a/opensm/osm_prtn_config.c
+++ b/opensm/osm_prtn_config.c
@@ -670,6 +670,7 @@  skip_header:
 		if (q)
 			*q++ = '\0';
 		ret = parse_name_token(p, &name, &flag);
+		len += ret;
 
 		if (strcmp(name, "mgid") == 0) {
 			/* parse an mgid line if specified. */
@@ -685,7 +686,6 @@  skip_header:
 			return -1;
 		}
 		p += ret;
-		len += ret;
 	} while (q);
 
 done: