[ALTS] Add testing of AV with GRH.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Oct 2005 20:04:07 +0000 (20:04 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 10 Oct 2005 20:04:07 +0000 (20:04 +0000)
Signed-off-by: Yossi Leybovich (sleybo@mellanox.co.il)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@108 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tests/alts/createdestroyav.c

index 6b7935e..8099c71 100644 (file)
@@ -219,7 +219,12 @@ alts_av(
                alts_av_attr.sl = 0;\r
                alts_av_attr.static_rate = IB_PATH_RECORD_RATE_10_GBS;\r
                alts_av_attr.path_bits = 0;\r
-                alts_av_attr.grh_valid = FALSE;\r
+               alts_av_attr.grh_valid = TRUE;\r
+\r
+               alts_av_attr.grh.dest_gid.unicast.interface_id= ca_guid_array[0];\r
+               alts_av_attr.grh.src_gid.unicast.interface_id = ca_guid_array[0];\r
+               alts_av_attr.grh.hop_limit = 0;\r
+               alts_av_attr.grh.ver_class_flow = 0;\r
                /*\r
                 * step 6: Create a PD\r
                 */\r