return LUSTRE_CFG_RC_NO_ERR;
}
+#ifdef HAVE_KFILND
static int
lustre_kfilnd_show_tun(struct cYAML *lndparams,
struct lnet_ioctl_config_kfilnd_tunables *lnd_cfg)
return LUSTRE_CFG_RC_NO_ERR;
}
+#endif
int
lustre_net_show_tunables(struct cYAML *tunables,
else if (net_type == SOCKLND)
rc = lustre_socklnd_show_tun(lnd_tunables,
&lnd->lnd_tun_u.lnd_sock);
+#ifdef HAVE_KFILND
else if (net_type == KFILND)
rc = lustre_kfilnd_show_tun(lnd_tunables,
&lnd->lnd_tun_u.lnd_kfi);
-
+#endif
return rc;
}
}
+#ifdef HAVE_KFILND
static void
yaml_extract_kfi_tun(struct cYAML *tree,
struct lnet_ioctl_config_kfilnd_tunables *lnd_cfg)
lnd_cfg->lnd_auth_key =
(auth_key) ? auth_key->cy_valueint : 0;
}
+#endif
static void
yaml_extract_sock_tun(struct cYAML *tree,
else if (net_type == SOCKLND)
yaml_extract_sock_tun(tree,
&tun->lnd_tun_u.lnd_sock);
+#ifdef HAVE_KFILND
else if (net_type == KFILND)
yaml_extract_kfi_tun(tree,
&tun->lnd_tun_u.lnd_kfi);
+#endif
}
return 0;
}
}
-
+#ifdef HAVE_KFILND
if (auth_key > 0 && LNET_NETTYP(nw_descr.nw_id) == KFILND) {
tunables.lt_tun.lnd_tun_u.lnd_kfi.lnd_auth_key = auth_key;
found = true;
}
-
+#endif
if (pto >= 0 || pc > 0 || pbc > 0 || cre > 0 || cpp > -1) {
tunables.lt_cmn.lct_peer_timeout = pto;
tunables.lt_cmn.lct_peer_tx_credits = pc;