diff options
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/Kconfig | 75 | ||||
| -rw-r--r-- | net/tipc/core.c | 10 |
2 files changed, 35 insertions, 50 deletions
diff --git a/net/tipc/Kconfig b/net/tipc/Kconfig index 3b30d1130b61..b74f78d0c033 100644 --- a/net/tipc/Kconfig +++ b/net/tipc/Kconfig | |||
| @@ -10,7 +10,7 @@ menuconfig TIPC | |||
| 10 | specially designed for intra cluster communication. This protocol | 10 | specially designed for intra cluster communication. This protocol |
| 11 | originates from Ericsson where it has been used in carrier grade | 11 | originates from Ericsson where it has been used in carrier grade |
| 12 | cluster applications for many years. | 12 | cluster applications for many years. |
| 13 | 13 | ||
| 14 | For more information about TIPC, see http://tipc.sourceforge.net. | 14 | For more information about TIPC, see http://tipc.sourceforge.net. |
| 15 | 15 | ||
| 16 | This protocol support is also available as a module ( = code which | 16 | This protocol support is also available as a module ( = code which |
| @@ -23,91 +23,76 @@ menuconfig TIPC | |||
| 23 | if TIPC | 23 | if TIPC |
| 24 | 24 | ||
| 25 | config TIPC_ADVANCED | 25 | config TIPC_ADVANCED |
| 26 | bool "TIPC: Advanced configuration" | 26 | bool "Advanced TIPC configuration" |
| 27 | default n | 27 | default n |
| 28 | help | 28 | help |
| 29 | Saying Y here will open some advanced configuration | 29 | Saying Y here will open some advanced configuration for TIPC. |
| 30 | for TIPC. Most users do not need to bother, so if | 30 | Most users do not need to bother; if unsure, just say N. |
| 31 | unsure, just say N. | ||
| 32 | 31 | ||
| 33 | config TIPC_ZONES | 32 | config TIPC_ZONES |
| 34 | int "Maximum number of zones in network" | 33 | int "Maximum number of zones in a network" |
| 35 | depends on TIPC_ADVANCED | 34 | depends on TIPC_ADVANCED |
| 35 | range 1 255 | ||
| 36 | default "3" | 36 | default "3" |
| 37 | help | 37 | help |
| 38 | Max number of zones inside TIPC network. Max supported value | 38 | Specifies how many zones can be supported in a TIPC network. |
| 39 | is 255 zones, minimum is 1 | 39 | Can range from 1 to 255 zones; default is 3. |
| 40 | 40 | ||
| 41 | Default is 3 zones in a network; setting this to higher | 41 | Setting this to a smaller value saves some memory; |
| 42 | allows more zones but might use more memory. | 42 | setting it to a higher value allows for more zones. |
| 43 | 43 | ||
| 44 | config TIPC_CLUSTERS | 44 | config TIPC_CLUSTERS |
| 45 | int "Maximum number of clusters in a zone" | 45 | int "Maximum number of clusters in a zone" |
| 46 | depends on TIPC_ADVANCED | 46 | depends on TIPC_ADVANCED |
| 47 | range 1 1 | ||
| 47 | default "1" | 48 | default "1" |
| 48 | help | 49 | help |
| 49 | ***Only 1 (one cluster in a zone) is supported by current code. | 50 | Specifies how many clusters can be supported in a TIPC zone. |
| 50 | Any value set here will be overridden.*** | ||
| 51 | |||
| 52 | (Max number of clusters inside TIPC zone. Max supported | ||
| 53 | value is 4095 clusters, minimum is 1. | ||
| 54 | 51 | ||
| 55 | Default is 1; setting this to smaller value might save | 52 | *** Currently TIPC only supports a single cluster per zone. *** |
| 56 | some memory, setting it to higher | ||
| 57 | allows more clusters and might consume more memory.) | ||
| 58 | 53 | ||
| 59 | config TIPC_NODES | 54 | config TIPC_NODES |
| 60 | int "Maximum number of nodes in cluster" | 55 | int "Maximum number of nodes in a cluster" |
| 61 | depends on TIPC_ADVANCED | 56 | depends on TIPC_ADVANCED |
| 57 | range 8 2047 | ||
| 62 | default "255" | 58 | default "255" |
| 63 | help | 59 | help |
| 64 | Maximum number of nodes inside a TIPC cluster. Maximum | 60 | Specifies how many nodes can be supported in a TIPC cluster. |
| 65 | supported value is 2047 nodes, minimum is 8. | 61 | Can range from 8 to 2047 nodes; default is 255. |
| 66 | |||
| 67 | Setting this to a smaller value saves some memory, | ||
| 68 | setting it to higher allows more nodes. | ||
| 69 | |||
| 70 | config TIPC_SLAVE_NODES | ||
| 71 | int "Maximum number of slave nodes in cluster" | ||
| 72 | depends on TIPC_ADVANCED | ||
| 73 | default "0" | ||
| 74 | help | ||
| 75 | ***This capability is not supported by current code.*** | ||
| 76 | |||
| 77 | Maximum number of slave nodes inside a TIPC cluster. Maximum | ||
| 78 | supported value is 2047 nodes, minimum is 0. | ||
| 79 | 62 | ||
| 80 | Setting this to a smaller value saves some memory, | 63 | Setting this to a smaller value saves some memory; |
| 81 | setting it to higher allows more nodes. | 64 | setting it to higher allows for more nodes. |
| 82 | 65 | ||
| 83 | config TIPC_PORTS | 66 | config TIPC_PORTS |
| 84 | int "Maximum number of ports in a node" | 67 | int "Maximum number of ports in a node" |
| 85 | depends on TIPC_ADVANCED | 68 | depends on TIPC_ADVANCED |
| 69 | range 127 65535 | ||
| 86 | default "8191" | 70 | default "8191" |
| 87 | help | 71 | help |
| 88 | Maximum number of ports within a node. Maximum | 72 | Specifies how many ports can be supported by a node. |
| 89 | supported value is 64535 nodes, minimum is 127. | 73 | Can range from 127 to 65535 ports; default is 8191. |
| 90 | 74 | ||
| 91 | Setting this to a smaller value saves some memory, | 75 | Setting this to a smaller value saves some memory, |
| 92 | setting it to higher allows more ports. | 76 | setting it to higher allows for more ports. |
| 93 | 77 | ||
| 94 | config TIPC_LOG | 78 | config TIPC_LOG |
| 95 | int "Size of log buffer" | 79 | int "Size of log buffer" |
| 96 | depends on TIPC_ADVANCED | 80 | depends on TIPC_ADVANCED |
| 97 | default 0 | 81 | range 0 32768 |
| 82 | default "0" | ||
| 98 | help | 83 | help |
| 99 | Size (in bytes) of TIPC's internal log buffer, which records the | 84 | Size (in bytes) of TIPC's internal log buffer, which records the |
| 100 | occurrence of significant events. Maximum supported value | 85 | occurrence of significant events. Can range from 0 to 32768 bytes; |
| 101 | is 32768 bytes, minimum is 0. | 86 | default is 0. |
| 102 | 87 | ||
| 103 | There is no need to enable the log buffer unless the node will be | 88 | There is no need to enable the log buffer unless the node will be |
| 104 | managed remotely via TIPC. | 89 | managed remotely via TIPC. |
| 105 | 90 | ||
| 106 | config TIPC_DEBUG | 91 | config TIPC_DEBUG |
| 107 | bool "Enable debugging support" | 92 | bool "Enable debug messages" |
| 108 | default n | 93 | default n |
| 109 | help | 94 | help |
| 110 | This will enable debugging of TIPC. | 95 | This enables debugging of TIPC. |
| 111 | 96 | ||
| 112 | Only say Y here if you are having trouble with TIPC. It will | 97 | Only say Y here if you are having trouble with TIPC. It will |
| 113 | enable the display of detailed information about what is going on. | 98 | enable the display of detailed information about what is going on. |
diff --git a/net/tipc/core.c b/net/tipc/core.c index 3256bd7d398f..52c571fedbe0 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
| @@ -189,11 +189,11 @@ static int __init tipc_init(void) | |||
| 189 | tipc_remote_management = 1; | 189 | tipc_remote_management = 1; |
| 190 | tipc_max_publications = 10000; | 190 | tipc_max_publications = 10000; |
| 191 | tipc_max_subscriptions = 2000; | 191 | tipc_max_subscriptions = 2000; |
| 192 | tipc_max_ports = delimit(CONFIG_TIPC_PORTS, 127, 65536); | 192 | tipc_max_ports = CONFIG_TIPC_PORTS; |
| 193 | tipc_max_zones = delimit(CONFIG_TIPC_ZONES, 1, 255); | 193 | tipc_max_zones = CONFIG_TIPC_ZONES; |
| 194 | tipc_max_clusters = delimit(CONFIG_TIPC_CLUSTERS, 1, 1); | 194 | tipc_max_clusters = CONFIG_TIPC_CLUSTERS; |
| 195 | tipc_max_nodes = delimit(CONFIG_TIPC_NODES, 8, 2047); | 195 | tipc_max_nodes = CONFIG_TIPC_NODES; |
| 196 | tipc_max_slaves = delimit(CONFIG_TIPC_SLAVE_NODES, 0, 2047); | 196 | tipc_max_slaves = CONFIG_TIPC_SLAVE_NODES; |
| 197 | tipc_net_id = 4711; | 197 | tipc_net_id = 4711; |
| 198 | 198 | ||
| 199 | if ((res = tipc_core_start())) | 199 | if ((res = tipc_core_start())) |
