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_net_config {
41 char ni_interfaces[LNET_MAX_INTERFACES][LNET_MAX_STR_LEN];
43 __u32 ni_cpts[LNET_MAX_SHOW_NUM_CPT];
46 #define LNET_TINY_BUF_IDX 0
47 #define LNET_SMALL_BUF_IDX 1
48 #define LNET_LARGE_BUF_IDX 2
50 /* # different router buffer pools */
51 #define LNET_NRBPOOLS (LNET_LARGE_BUF_IDX + 1)
53 struct lnet_ioctl_pool_cfg {
59 } pl_pools[LNET_NRBPOOLS];
63 struct lnet_ioctl_config_data {
64 struct libcfs_ioctl_hdr cfg_hdr;
78 char net_intf[LNET_MAX_STR_LEN];
79 __s32 net_peer_timeout;
80 __s32 net_peer_tx_credits;
81 __s32 net_peer_rtr_credits;
82 __s32 net_max_tx_credits;
97 struct lnet_ioctl_peer {
98 struct libcfs_ioctl_hdr pr_hdr;
105 char cr_aliveness[LNET_MAX_STR_LEN];
107 __u32 cr_ni_peer_tx_credits;
108 __u32 cr_peer_tx_credits;
109 __u32 cr_peer_rtr_credits;
110 __u32 cr_peer_min_rtr_credits;
111 __u32 cr_peer_tx_qnob;
117 struct lnet_ioctl_lnet_stats {
118 struct libcfs_ioctl_hdr st_hdr;
119 struct lnet_counters st_cntrs;
122 #endif /* LNET_DLC_H */