Whamcloud - gitweb
* Added check for portals compatibility mode in LNDs that don't support it
authoreeb <eeb>
Sat, 10 Sep 2005 17:12:16 +0000 (17:12 +0000)
committereeb <eeb>
Sat, 10 Sep 2005 17:12:16 +0000 (17:12 +0000)
    yet.

lnet/klnds/gmlnd/gmlnd_module.c
lnet/klnds/iiblnd/iiblnd.c
lnet/klnds/openiblnd/openiblnd.c
lnet/klnds/ralnd/ralnd.c

index c016d4f..02904eb 100644 (file)
@@ -84,6 +84,11 @@ gmnal_load(void)
        int     status;
        CDEBUG(D_TRACE, "This is the gmnal module initialisation routine\n");
 
+        if (lnet_apini.apini_ptlcompat != 0) {
+                LCONSOLE_ERROR("GM does not support portals compatibility mode\n");
+                return -ENODEV;
+        }
+        
 #if CONFIG_SYSCTL && !CFS_SYSFS_MODULE_PARM
         gmnal_tunables.gm_sysctl =
                 register_sysctl_table(gmnal_top_ctl_table, 0);
index 0b3e9dc..5cb300d 100644 (file)
@@ -1626,6 +1626,11 @@ kibnal_module_init (void)
 {
         int    rc;
 
+        if (lnet_apini.apini_ptlcompat != 0) {
+                LCONSOLE_ERROR("IIB does not support portals compatibility mode\n");
+                return -ENODEV;
+        }
+        
         if (sizeof(kib_wire_connreq_t) > CM_REQUEST_INFO_USER_LEN) {
                 CERROR("sizeof(kib_wire_connreq_t) > CM_REQUEST_INFO_USER_LEN\n");
                 return -EINVAL;
index a39b28e..a4e040f 100644 (file)
@@ -1651,6 +1651,11 @@ kibnal_module_init (void)
 {
         int    rc;
 
+        if (lnet_apini.apini_ptlcompat != 0) {
+                LCONSOLE_ERROR("OpenIB does not support portals compatibility mode\n");
+                return -ENODEV;
+        }
+        
         rc = kibnal_tunables_init();
         if (rc != 0)
                 return rc;
index 5effbf9..7223487 100644 (file)
@@ -1628,6 +1628,11 @@ kranal_module_init (void)
 {
         int    rc;
 
+        if (lnet_apini.apini_ptlcompat != 0) {
+                LCONSOLE_ERROR("RA does not support portals compatibility mode\n");
+                return -ENODEV;
+        }
+        
         rc = kranal_tunables_init();
         if (rc != 0)
                 return rc;