4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright (c) 2013, Intel Corporation, All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 3.0 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library.
30 #include <libcfs/libcfs_ioctl.h>
31 #include <lnet/lib-types.h>
33 #define MAX_NUM_SHOW_ENTRIES 32
34 #define LNET_MAX_STR_LEN 128
35 #define LNET_MAX_SHOW_NUM_CPT 128
37 struct lnet_ioctl_net_config {
38 char ni_interfaces[LNET_MAX_INTERFACES][LNET_MAX_STR_LEN];
40 __u32 ni_cpts[LNET_MAX_SHOW_NUM_CPT];
43 struct lnet_ioctl_pool_cfg {
49 } pl_pools[LNET_NRBPOOLS];
53 struct lnet_ioctl_config_data {
54 struct libcfs_ioctl_hdr cfg_hdr;
68 char net_intf[LNET_MAX_STR_LEN];
69 __s32 net_peer_timeout;
70 __s32 net_peer_tx_credits;
71 __s32 net_peer_rtr_credits;
72 __s32 net_max_tx_credits;
85 struct lnet_ioctl_peer {
86 struct libcfs_ioctl_hdr pr_hdr;
93 char cr_aliveness[LNET_MAX_STR_LEN];
95 __u32 cr_ni_peer_tx_credits;
96 __u32 cr_peer_tx_credits;
97 __u32 cr_peer_rtr_credits;
98 __u32 cr_peer_min_rtr_credits;
99 __u32 cr_peer_tx_qnob;
105 struct lnet_ioctl_lnet_stats {
106 struct libcfs_ioctl_hdr st_hdr;
107 struct lnet_counters st_cntrs;
110 #endif /* LNET_DLC_H */