Whamcloud - gitweb
LU-19115 socklnd: fix ksocknal tunables setup 33/59833/3
authorDi Wang <ddiwang@google.com>
Wed, 18 Jun 2025 20:04:18 +0000 (20:04 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jul 2025 03:58:23 +0000 (03:58 +0000)
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>
lnet/klnds/socklnd/socklnd.c

index 3932f38..5fec130 100644 (file)
@@ -2646,8 +2646,6 @@ ksocknal_startup(struct lnet_ni *ni)
        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)
@@ -2668,6 +2666,8 @@ ksocknal_startup(struct lnet_ni *ni)
                        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)) {