From: Roland Dreier Date: Tue, 10 Apr 2007 17:33:48 +0000 (-0700) Subject: Don't set last byte of GID for non-global address vectors X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3e19c50ee192dfa998007fc12fab997fc75ff252;p=~shefty%2Flibmlx4.git Don't set last byte of GID for non-global address vectors 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 --- diff --git a/src/verbs.c b/src/verbs.c index 0292945..a74161f 100644 --- a/src/verbs.c +++ b/src/verbs.c @@ -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;