4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but 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.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library.
23 * Copyright (c) 2014, Intel Corporation.
26 * Author: Amir Shehata <amir.shehata@intel.com>
32 #include <libcfs/libcfs_ioctl.h>
33 #include <lnet/types.h>
35 #define MAX_NUM_SHOW_ENTRIES 32
36 #define LNET_MAX_STR_LEN 128
37 #define LNET_MAX_SHOW_NUM_CPT 128
38 #define LNET_UNDEFINED_HOPS ((__u32) -1)
40 struct lnet_ioctl_config_lnd_cmn_tunables {
42 __u32 lct_peer_timeout;
43 __u32 lct_peer_tx_credits;
44 __u32 lct_peer_rtr_credits;
45 __u32 lct_max_tx_credits;
48 struct lnet_ioctl_config_o2iblnd_tunables {
50 __u32 lnd_peercredits_hiw;
51 __u32 lnd_map_on_demand;
52 __u32 lnd_concurrent_sends;
53 __u32 lnd_fmr_pool_size;
54 __u32 lnd_fmr_flush_trigger;
59 struct lnet_ioctl_config_lnd_tunables {
60 struct lnet_ioctl_config_lnd_cmn_tunables lt_cmn;
62 struct lnet_ioctl_config_o2iblnd_tunables lt_o2ib;
66 struct lnet_ioctl_net_config {
67 char ni_interfaces[LNET_MAX_INTERFACES][LNET_MAX_STR_LEN];
69 __u32 ni_cpts[LNET_MAX_SHOW_NUM_CPT];
73 #define LNET_TINY_BUF_IDX 0
74 #define LNET_SMALL_BUF_IDX 1
75 #define LNET_LARGE_BUF_IDX 2
77 /* # different router buffer pools */
78 #define LNET_NRBPOOLS (LNET_LARGE_BUF_IDX + 1)
80 struct lnet_ioctl_pool_cfg {
86 } pl_pools[LNET_NRBPOOLS];
90 struct lnet_ioctl_config_data {
91 struct libcfs_ioctl_hdr cfg_hdr;
105 char net_intf[LNET_MAX_STR_LEN];
106 __s32 net_peer_timeout;
107 __s32 net_peer_tx_credits;
108 __s32 net_peer_rtr_credits;
109 __s32 net_max_tx_credits;
110 __u32 net_cksum_algo;
111 __u32 net_interface_count;
124 struct lnet_ioctl_peer {
125 struct libcfs_ioctl_hdr pr_hdr;
132 char cr_aliveness[LNET_MAX_STR_LEN];
134 __u32 cr_ni_peer_tx_credits;
135 __u32 cr_peer_tx_credits;
136 __u32 cr_peer_rtr_credits;
137 __u32 cr_peer_min_rtr_credits;
138 __u32 cr_peer_tx_qnob;
144 struct lnet_ioctl_lnet_stats {
145 struct libcfs_ioctl_hdr st_hdr;
146 struct lnet_counters st_cntrs;
149 #endif /* LNET_DLC_H */