Whamcloud - gitweb
LU-7734 lnet: configure local NI from DLC
[fs/lustre-release.git] / lnet / utils / lnetconfig / liblnd.h
1 /*
2  * LGPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as
8  * published by the Free Software Foundation; either version 2.1 of the
9  * License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * LGPL HEADER END
20  *
21  * Copyright (c) 2015, James Simmons <jsimmons@infradead.org>
22  *
23  * Copyright (c) 2016, Intel Corporation.
24  */
25
26 #ifndef LIB_LND_CONFIG_API_H
27 #define LIB_LND_CONFIG_API_H
28
29 #include <lnet/lib-dlc.h>
30 #include "cyaml.h"
31
32 int
33 lustre_net_show_tunables(struct cYAML *tunables,
34                          struct lnet_ioctl_config_lnd_cmn_tunables *cmn);
35
36 int
37 lustre_ni_show_tunables(struct cYAML *lnd_tunables,
38                         __u32 net_type,
39                         struct lnet_lnd_tunables *lnd);
40
41 void
42 lustre_yaml_extract_lnd_tunables(struct cYAML *tree,
43                                  __u32 net_type,
44                                  struct lnet_lnd_tunables *tun);
45
46 #endif /* LIB_LND_CONFIG_API_H */