ksocknal tunables should be setup after default ni interface is
initialized, otherwise NIC speed to connection count conversion
will be skipped.
Signed-off-by: Di Wang <ddiwang@google.com>
Change-Id: I4726773ae99e79a3bb1a4871992c12966fc48075
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59833
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
net->ksnn_incarnation = ktime_get_real_ns();
ni->ni_data = net;
- ksocknal_tunables_setup(ni);
-
rc = lnet_inet_enumerate(&ifaces, ni->ni_net_ns,
the_lnet.ln_nis_use_large_nids);
if (rc < 0)
CWARN("ksocklnd failed to allocate ni_interface\n");
}
+ ksocknal_tunables_setup(ni);
+
ni->ni_dev_cpt = ifaces[if_idx].li_cpt;
ksi->ksni_index = ifaces[if_idx].li_index;
if (ifaces[if_idx].li_size == sizeof(struct in6_addr)) {