[openib-general] [PATCH 1/2] osmtest/osmtest.c: Add off subnet PathRecord requests

Hal Rosenstock halr at voltaire.com
Tue Jan 2 09:01:33 PST 2007


osmtest/osmtest.c: Add off subnet PathRecord requests

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/osm/osmtest/osmtest.c b/osm/osmtest/osmtest.c
index b4543ee..f8648da 100644
--- a/osm/osmtest/osmtest.c
+++ b/osm/osmtest/osmtest.c
@@ -5802,6 +5802,23 @@ osmtest_validate_against_db( IN osmtest_
   /* Can't check status as don't know whether port is running IPoIB */
   osmtest_get_path_rec_by_gid_pair( p_osmt, portgid, mgid, &context);
 
+  /* Off subnet unicast PathRecord */
+  memset( &context, 0, sizeof( context ) );
+  ib_gid_set_default( &portgid, portguid );
+  ib_gid_set_default( &mgid, portguid );
+  mgid.raw[7] = 0xff;	/* not default GID prefix */
+  /* Can't check status as don't know whether ??? */
+  osmtest_get_path_rec_by_gid_pair( p_osmt, portgid, mgid, &context);
+
+  /* More than link local scope multicast PathRecord */
+  memset( &context, 0, sizeof( context ) );
+  ib_gid_set_default( &portgid, portguid );
+  /* Set IPoIB broadcast MGID */
+  mgid.unicast.prefix = CL_HTON64(0xff15401bffff0000ULL); /* site local */
+  mgid.unicast.interface_id = CL_HTON64(0x00000000ffffffffULL);
+  /* Can't check status as don't know whether port is running IPoIB */
+  osmtest_get_path_rec_by_gid_pair( p_osmt, portgid, mgid, &context);
+
 #if defined (VENDOR_RMPP_SUPPORT) && defined (DUAL_SIDED_RMPP)
   memset( &context, 0, sizeof( context ) );
   memset( &request, 0, sizeof( request ) );







More information about the general mailing list