Whamcloud - gitweb
b=15984, i=maxim:
[fs/lustre-release.git] / lnet / ulnds / ptllnd / ptllnd.c
index 3b504e7..b0ed0ce 100644 (file)
@@ -303,6 +303,10 @@ ptllnd_get_tunables(lnet_ni_t *ni)
                                       PTLLND_MAX_ULND_MSG_SIZE);
         if (rc != 0)
                 return rc;
+        if (plni->plni_peer_credits > PTLLND_MSG_MAX_CREDITS) {
+                CERROR("PTLLND_PEERCREDITS must be <= %d\n", PTLLND_MSG_MAX_CREDITS);
+                return -EINVAL;
+        }
 
         rc = ptllnd_parse_int_tunable(&msgs_per_buffer,
                                       "PTLLND_MSGS_PER_BUFFER", 64);