]> git.openfabrics.org - ~shefty/libmlx4.git/commitdiff
Don't set last byte of GID for non-global address vectors
authorRoland Dreier <rolandd@cisco.com>
Tue, 10 Apr 2007 17:33:48 +0000 (10:33 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Apr 2007 17:33:48 +0000 (10:33 -0700)
Previous generation HCAs needed the last byte of the GID set to 2 for
non-global address vectors, but ConnectX just ignores the remote GID
field for non-global AVs, so remove the unnecessary code that sets it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/verbs.c

index 0292945858c781962f80bc0bdc940aed3bb793e6..a74161f7ebb0b798469b0df6572eccd765b9bc65 100644 (file)
@@ -554,9 +554,6 @@ struct ibv_ah *mlx4_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr)
                        htonl((attr->grh.traffic_class << 20) |
                                    attr->grh.flow_label);
                memcpy(ah->av.dgid, attr->grh.dgid.raw, 16);
-       } else {
-               /* XXX needed?? low byte of GID must be 2 */
-               ah->av.dgid[3] = htonl(2);
        }
 
        return &ah->ibv_ah;