diff options
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r-- | net/tipc/core.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c index 6586eac6a50e..bfe8af88469a 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c | |||
@@ -48,18 +48,13 @@ | |||
48 | 48 | ||
49 | 49 | ||
50 | /* global variables used by multiple sub-systems within TIPC */ | 50 | /* global variables used by multiple sub-systems within TIPC */ |
51 | int tipc_random; | 51 | int tipc_random __read_mostly; |
52 | |||
53 | const char tipc_alphabet[] = | ||
54 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_."; | ||
55 | 52 | ||
56 | /* configurable TIPC parameters */ | 53 | /* configurable TIPC parameters */ |
57 | u32 tipc_own_addr; | 54 | u32 tipc_own_addr __read_mostly; |
58 | int tipc_max_ports; | 55 | int tipc_max_ports __read_mostly; |
59 | int tipc_max_subscriptions; | 56 | int tipc_net_id __read_mostly; |
60 | int tipc_max_publications; | 57 | int tipc_remote_management __read_mostly; |
61 | int tipc_net_id; | ||
62 | int tipc_remote_management; | ||
63 | 58 | ||
64 | 59 | ||
65 | /** | 60 | /** |
@@ -101,9 +96,8 @@ int tipc_core_start_net(unsigned long addr) | |||
101 | { | 96 | { |
102 | int res; | 97 | int res; |
103 | 98 | ||
104 | res = tipc_net_start(addr); | 99 | tipc_net_start(addr); |
105 | if (!res) | 100 | res = tipc_eth_media_start(); |
106 | res = tipc_eth_media_start(); | ||
107 | if (res) | 101 | if (res) |
108 | tipc_core_stop_net(); | 102 | tipc_core_stop_net(); |
109 | return res; | 103 | return res; |
@@ -160,8 +154,6 @@ static int __init tipc_init(void) | |||
160 | 154 | ||
161 | tipc_own_addr = 0; | 155 | tipc_own_addr = 0; |
162 | tipc_remote_management = 1; | 156 | tipc_remote_management = 1; |
163 | tipc_max_publications = 10000; | ||
164 | tipc_max_subscriptions = 2000; | ||
165 | tipc_max_ports = CONFIG_TIPC_PORTS; | 157 | tipc_max_ports = CONFIG_TIPC_PORTS; |
166 | tipc_net_id = 4711; | 158 | tipc_net_id = 4711; |
167 | 159 | ||