Whamcloud - gitweb
i=liang,b=13065:
[fs/lustre-release.git] / lnet / ulnds / ptllnd / ptllnd.c
index b0ed0ce..0b70023 100644 (file)
@@ -48,7 +48,6 @@ lnd_t               the_ptllnd = {
         .lnd_send       = ptllnd_send,
         .lnd_recv       = ptllnd_recv,
         .lnd_eager_recv = ptllnd_eager_recv,
-        .lnd_notify     = ptllnd_notify,
         .lnd_wait       = ptllnd_wait,
         .lnd_setasync   = ptllnd_setasync,
 };
@@ -292,9 +291,8 @@ ptllnd_get_tunables(lnet_ni_t *ni)
                                       "PTLLND_PEERCREDITS", PTLLND_PEERCREDITS);
         if (rc != 0)
                 return rc;
-        /* kptl_msg_t::ptlm_credits is only a __u8 */
-        if (plni->plni_peer_credits > 255) {
-                CERROR("PTLLND_PEERCREDITS must be <= 255\n");
+        if (plni->plni_peer_credits > PTLLND_MSG_MAX_CREDITS) {
+                CERROR("PTLLND_PEERCREDITS must be <= %d\n", PTLLND_MSG_MAX_CREDITS);
                 return -EINVAL;
         }
 
@@ -303,10 +301,6 @@ 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);