Whamcloud - gitweb
LU-12511 lnet: don't build gnilnd related code for native client 53/58953/4
authorJames Simmons <jsimmons@infradead.org>
Thu, 24 Apr 2025 23:03:57 +0000 (19:03 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 7 May 2025 21:11:29 +0000 (21:11 +0000)
The gnilnd is not upstream so avoid the code for native client
builds.

Test-Parameters: trivial
Change-Id: I48015da55f2ea8823838a00ca618c9bd1716b7c3
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58953
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-lnet.m4
lnet/utils/lnetconfig/liblnetconfig_lnd.c

index 22c96f3..bc791e8 100644 (file)
@@ -945,6 +945,7 @@ AS_IF([test "x$enable_gni" = xyes], [
        ])
        EXTRA_KCFLAGS="$EXTRA_KCFLAGS_save"
 
+       AC_DEFINE(HAVE_GNILND, 1, [support gemini LND])
        AC_SUBST(ENABLE_GNI, yes)
 ], [
        AC_SUBST(ENABLE_GNI, no)
index a6b8597..eae400c 100644 (file)
@@ -122,6 +122,7 @@ lustre_kfilnd_show_tun(struct cYAML *lndparams,
 }
 #endif
 
+#ifdef HAVE_GNILND
 static int
 lustre_gnilnd_show_tun(struct cYAML *lndparams,
                        struct lnet_ioctl_config_gnilnd_tunables *lnd_cfg)
@@ -132,6 +133,7 @@ lustre_gnilnd_show_tun(struct cYAML *lndparams,
 
        return LUSTRE_CFG_RC_NO_ERR;
 }
+#endif
 
 int
 lustre_net_show_tunables(struct cYAML *tunables,
@@ -184,9 +186,11 @@ lustre_ni_show_tunables(struct cYAML *lnd_tunables,
                                            &lnd->lnd_tun_u.lnd_kfi,
                                            backup);
 #endif
+#ifdef HAVE_GNILND
        else if (net_type == GNILND)
                rc = lustre_gnilnd_show_tun(lnd_tunables,
                                            &lnd->lnd_tun_u.lnd_gni);
+#endif
        return rc;
 }