]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
Refresh of sgid
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 Jul 2015 23:59:27 +0000 (16:59 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 29 Jul 2015 23:59:27 +0000 (16:59 -0700)
prov/acmp/src/acmp.c

index 2b85958a4d09371121a727f8704f2e3bbcdde89b..a590058a24a891124fcdca57640301b0156991a1 100644 (file)
@@ -852,12 +852,16 @@ acmp_record_path_addr(struct acmp_ep *ep, struct acmp_dest *dest,
        acm_log(2, "%s\n", dest->name);
        dest->path.pkey = htons(ep->pkey);
        dest->path.dgid = path->dgid;
-       if (path->slid || !ib_any_gid(&path->sgid)) {
-               dest->path.sgid = path->sgid;
+       if (path->slid) {
                dest->path.slid = path->slid;
        } else {
                dest->path.slid = htons(ep->port->lid);
        }
+       if (!ib_any_gid(&path->sgid)) {
+               dest->path.sgid = path->sgid;
+       } else {
+               dest->path.sgid = ep->mc_dest[0].path.sgid;
+       }
        dest->path.dlid = path->dlid;
        dest->state = ACMP_ADDR_RESOLVED;
 }