Whamcloud - gitweb
i=liang,b=18450:
[fs/lustre-release.git] / lnet / klnds / o2iblnd / o2iblnd.c
index 9549b50..7ccaad0 100644 (file)
@@ -1439,7 +1439,7 @@ kiblnd_find_rd_dma_mr(kib_net_t *net, kib_rdma_desc_t *rd)
         LASSERT (net->ibn_dev->ibd_mrs[0] != NULL);
 
         if (*kiblnd_tunables.kib_map_on_demand > 0 &&
-            *kiblnd_tunables.kib_map_on_demand < rd->rd_nfrags)
+            *kiblnd_tunables.kib_map_on_demand <= rd->rd_nfrags)
                 return NULL;
 
         if (net->ibn_dev->ibd_nmrs == 1)
@@ -1678,7 +1678,7 @@ kiblnd_dev_get_attr(kib_dev_t *ibdev)
                 return rc;
         }
 
-#if 1
+#ifdef HAVE_OFED_TRANSPORT_IWARP
         /* XXX We can't trust this value returned by Chelsio driver, it's wrong
          * and we have reported the bug, remove these in the future when Chelsio
          * bug got fixed. */
@@ -2125,6 +2125,9 @@ kiblnd_startup (lnet_ni_t *ni)
 
                 /* Binding should have assigned me an IB device */
                 LASSERT (id->device != NULL);
+                CDEBUG(D_CONSOLE, "Listener bound to %s:%u.%u.%u.%u:%d:%s\n",
+                       ifname, HIPQUAD(ip), *kiblnd_tunables.kib_service,
+                       id->device->name);
 
                 pd = ib_alloc_pd(id->device);
                 if (IS_ERR(pd)) {