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, 2016, 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 __s32 lct_peer_timeout;
43 __s32 lct_peer_tx_credits;
44 __s32 lct_peer_rtr_credits;
45 __s32 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_lnd_tunables {
61 struct lnet_ioctl_config_o2iblnd_tunables lnd_o2ib;
65 struct lnet_ioctl_config_lnd_tunables {
66 struct lnet_ioctl_config_lnd_cmn_tunables lt_cmn;
67 struct lnet_lnd_tunables lt_tun;
70 struct lnet_ioctl_net_config {
71 char ni_interfaces[LNET_MAX_INTERFACES][LNET_MAX_STR_LEN];
73 __u32 ni_cpts[LNET_MAX_SHOW_NUM_CPT];
77 #define LNET_TINY_BUF_IDX 0
78 #define LNET_SMALL_BUF_IDX 1
79 #define LNET_LARGE_BUF_IDX 2
81 /* # different router buffer pools */
82 #define LNET_NRBPOOLS (LNET_LARGE_BUF_IDX + 1)
84 struct lnet_ioctl_pool_cfg {
90 } pl_pools[LNET_NRBPOOLS];
94 struct lnet_ioctl_config_data {
95 struct libcfs_ioctl_hdr cfg_hdr;
109 char net_intf[LNET_MAX_STR_LEN];
110 __s32 net_peer_timeout;
111 __s32 net_peer_tx_credits;
112 __s32 net_peer_rtr_credits;
113 __s32 net_max_tx_credits;
114 __u32 net_cksum_algo;
115 __u32 net_interface_count;
128 struct lnet_ioctl_peer {
129 struct libcfs_ioctl_hdr pr_hdr;
136 char cr_aliveness[LNET_MAX_STR_LEN];
138 __u32 cr_ni_peer_tx_credits;
139 __u32 cr_peer_tx_credits;
140 __u32 cr_peer_rtr_credits;
141 __u32 cr_peer_min_rtr_credits;
142 __u32 cr_peer_tx_qnob;
148 struct lnet_ioctl_lnet_stats {
149 struct libcfs_ioctl_hdr st_hdr;
150 struct lnet_counters st_cntrs;
153 #endif /* LNET_DLC_H */