tipc: use kconfig to limit numeric ranges
[linux-block.git] / net / tipc / Kconfig
CommitLineData
b97bf3fd
PL
1#
2# TIPC configuration
3#
4
a31b19c5 5menuconfig TIPC
b97bf3fd 6 tristate "The TIPC Protocol (EXPERIMENTAL)"
a31b19c5 7 depends on INET && EXPERIMENTAL
b97bf3fd 8 ---help---
c11ac3f2
PL
9 The Transparent Inter Process Communication (TIPC) protocol is
10 specially designed for intra cluster communication. This protocol
11 originates from Ericsson where it has been used in carrier grade
12 cluster applications for many years.
13
14 For more information about TIPC, see http://tipc.sourceforge.net.
b97bf3fd
PL
15
16 This protocol support is also available as a module ( = code which
17 can be inserted in and removed from the running kernel whenever you
18 want). The module will be called tipc. If you want to compile it
39f5fb30 19 as a module, say M here and read <file:Documentation/kbuild/modules.txt>.
b97bf3fd
PL
20
21 If in doubt, say N.
22
a31b19c5
JE
23if TIPC
24
b97bf3fd
PL
25config TIPC_ADVANCED
26 bool "TIPC: Advanced configuration"
b97bf3fd
PL
27 default n
28 help
29 Saying Y here will open some advanced configuration
30 for TIPC. Most users do not need to bother, so if
31 unsure, just say N.
32
33config TIPC_ZONES
34 int "Maximum number of zones in network"
a31b19c5 35 depends on TIPC_ADVANCED
ee983ac7 36 range 1 255
b97bf3fd
PL
37 default "3"
38 help
39 Max number of zones inside TIPC network. Max supported value
40 is 255 zones, minimum is 1
41
42 Default is 3 zones in a network; setting this to higher
43 allows more zones but might use more memory.
44
45config TIPC_CLUSTERS
46 int "Maximum number of clusters in a zone"
a31b19c5 47 depends on TIPC_ADVANCED
ee983ac7 48 range 1 1
b97bf3fd
PL
49 default "1"
50 help
ee983ac7 51 ***Only 1 (one cluster in a zone) is supported by current code.***
b97bf3fd
PL
52
53 (Max number of clusters inside TIPC zone. Max supported
54 value is 4095 clusters, minimum is 1.
55
56 Default is 1; setting this to smaller value might save
57 some memory, setting it to higher
58 allows more clusters and might consume more memory.)
59
60config TIPC_NODES
61 int "Maximum number of nodes in cluster"
a31b19c5 62 depends on TIPC_ADVANCED
ee983ac7 63 range 8 2047
b97bf3fd
PL
64 default "255"
65 help
66 Maximum number of nodes inside a TIPC cluster. Maximum
67 supported value is 2047 nodes, minimum is 8.
68
69 Setting this to a smaller value saves some memory,
70 setting it to higher allows more nodes.
71
72config TIPC_SLAVE_NODES
73 int "Maximum number of slave nodes in cluster"
a31b19c5 74 depends on TIPC_ADVANCED
ee983ac7 75 range 0 2047
b97bf3fd
PL
76 default "0"
77 help
78 ***This capability is not supported by current code.***
79
80 Maximum number of slave nodes inside a TIPC cluster. Maximum
81 supported value is 2047 nodes, minimum is 0.
82
83 Setting this to a smaller value saves some memory,
84 setting it to higher allows more nodes.
85
86config TIPC_PORTS
87 int "Maximum number of ports in a node"
a31b19c5 88 depends on TIPC_ADVANCED
ee983ac7 89 range 217 65536
b97bf3fd
PL
90 default "8191"
91 help
92 Maximum number of ports within a node. Maximum
93 supported value is 64535 nodes, minimum is 127.
94
95 Setting this to a smaller value saves some memory,
96 setting it to higher allows more ports.
97
98config TIPC_LOG
99 int "Size of log buffer"
a31b19c5 100 depends on TIPC_ADVANCED
b97bf3fd
PL
101 default 0
102 help
103 Size (in bytes) of TIPC's internal log buffer, which records the
104 occurrence of significant events. Maximum supported value
105 is 32768 bytes, minimum is 0.
106
107 There is no need to enable the log buffer unless the node will be
108 managed remotely via TIPC.
109
110config TIPC_DEBUG
111 bool "Enable debugging support"
b97bf3fd
PL
112 default n
113 help
114 This will enable debugging of TIPC.
115
116 Only say Y here if you are having trouble with TIPC. It will
117 enable the display of detailed information about what is going on.
118
a31b19c5 119endif # TIPC