tipc: use kconfig to limit numeric ranges
[safe/jmp/linux-2.6] / net / tipc / Kconfig
1 #
2 # TIPC configuration
3 #
4
5 menuconfig TIPC
6         tristate "The TIPC Protocol (EXPERIMENTAL)"
7         depends on INET && EXPERIMENTAL
8         ---help---
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.
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
19           as a module, say M here and read <file:Documentation/kbuild/modules.txt>.
20
21           If in doubt, say N.
22
23 if TIPC
24
25 config TIPC_ADVANCED
26         bool "TIPC: Advanced configuration"
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
33 config TIPC_ZONES
34         int "Maximum number of zones in network"
35         depends on TIPC_ADVANCED
36         range 1 255
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
45 config TIPC_CLUSTERS
46         int "Maximum number of clusters in a zone"
47         depends on TIPC_ADVANCED
48         range 1 1
49         default "1"
50         help
51           ***Only 1 (one cluster in a zone) is supported by current code.***
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
60 config TIPC_NODES
61         int "Maximum number of nodes in cluster"
62         depends on TIPC_ADVANCED
63         range 8 2047
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
72 config TIPC_SLAVE_NODES
73         int "Maximum number of slave nodes in cluster"
74         depends on TIPC_ADVANCED
75         range 0 2047
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
86 config TIPC_PORTS
87         int "Maximum number of ports in a node"
88         depends on TIPC_ADVANCED
89         range 217 65536
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
98 config TIPC_LOG
99         int "Size of log buffer"
100         depends on TIPC_ADVANCED
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
110 config TIPC_DEBUG
111         bool "Enable debugging support"
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
119 endif # TIPC