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)
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. */
do_gettimeofday(&tv);
net->ibn_incarnation = (((__u64)tv.tv_sec) * 1000000) + tv.tv_usec;
- ni->ni_maxtxcredits = *kiblnd_tunables.kib_credits;
- ni->ni_peertxcredits = *kiblnd_tunables.kib_peercredits;
- ni->ni_peertimeout = *kiblnd_tunables.kib_peertimeout;
+ ni->ni_peertimeout = *kiblnd_tunables.kib_peertimeout;
+ ni->ni_maxtxcredits = *kiblnd_tunables.kib_credits;
+ ni->ni_peertxcredits = *kiblnd_tunables.kib_peertxcredits;
+ ni->ni_peerrtrcredits = *kiblnd_tunables.kib_peerrtrcredits;
spin_lock_init(&net->ibn_tx_lock);
INIT_LIST_HEAD(&net->ibn_idle_txs);
/* 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)) {