diff options
author | Roland Dreier <rolandd@cisco.com> | 2007-04-10 10:33:48 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-10 10:33:48 -0700 |
commit | 3e19c50ee192dfa998007fc12fab997fc75ff252 (patch) | |
tree | 9ce6bc9ed680dc229cf1e1b3ecedfa3ac9994fa4 | |
parent | 93ce630c372d1cd62cca5da3f59f29ad02f67383 (diff) | |
download | libmlx4-3e19c50ee192dfa998007fc12fab997fc75ff252.tar.gz |
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 <rolandd@cisco.com>
-rw-r--r-- | src/verbs.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |