Whamcloud - gitweb
LU-7101 lnet: per NI map-on-demand value
[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
24 #ifndef LIB_LND_CONFIG_API_H
25 #define LIB_LND_CONFIG_API_H
26
27 #include <lnet/lib-dlc.h>
28 #include "cyaml.h"
29
30 int
31 lustre_interface_show_net(struct cYAML *interfaces, unsigned int index,
32                           bool detail, struct lnet_ioctl_config_data *data,
33                           struct lnet_ioctl_net_config *net_config);
34
35 void
36 lustre_interface_parse(struct cYAML *lndparams, const char *dev_name,
37                        struct lnet_ioctl_config_lnd_tunables *lnd_cfg);
38
39 #endif /* LIB_LND_CONFIG_API_H */