diff options
Diffstat (limited to 'net/tipc')
| -rw-r--r-- | net/tipc/Kconfig | 24 | ||||
| -rw-r--r-- | net/tipc/eth_media.c | 10 |
2 files changed, 17 insertions, 17 deletions
diff --git a/net/tipc/Kconfig b/net/tipc/Kconfig index f9e367d946eb..3b30d1130b61 100644 --- a/net/tipc/Kconfig +++ b/net/tipc/Kconfig | |||
| @@ -2,11 +2,9 @@ | |||
| 2 | # TIPC configuration | 2 | # TIPC configuration |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | menu "TIPC Configuration (EXPERIMENTAL)" | 5 | menuconfig TIPC |
| 6 | depends on INET && EXPERIMENTAL | ||
| 7 | |||
| 8 | config TIPC | ||
| 9 | tristate "The TIPC Protocol (EXPERIMENTAL)" | 6 | tristate "The TIPC Protocol (EXPERIMENTAL)" |
| 7 | depends on INET && EXPERIMENTAL | ||
| 10 | ---help--- | 8 | ---help--- |
| 11 | The Transparent Inter Process Communication (TIPC) protocol is | 9 | The Transparent Inter Process Communication (TIPC) protocol is |
| 12 | specially designed for intra cluster communication. This protocol | 10 | specially designed for intra cluster communication. This protocol |
| @@ -22,9 +20,10 @@ config TIPC | |||
| 22 | 20 | ||
| 23 | If in doubt, say N. | 21 | If in doubt, say N. |
| 24 | 22 | ||
| 23 | if TIPC | ||
| 24 | |||
| 25 | config TIPC_ADVANCED | 25 | config TIPC_ADVANCED |
| 26 | bool "TIPC: Advanced configuration" | 26 | bool "TIPC: Advanced configuration" |
| 27 | depends on TIPC | ||
| 28 | default n | 27 | default n |
| 29 | help | 28 | help |
| 30 | Saying Y here will open some advanced configuration | 29 | Saying Y here will open some advanced configuration |
| @@ -33,7 +32,7 @@ config TIPC_ADVANCED | |||
| 33 | 32 | ||
| 34 | config TIPC_ZONES | 33 | config TIPC_ZONES |
| 35 | int "Maximum number of zones in network" | 34 | int "Maximum number of zones in network" |
| 36 | depends on TIPC && TIPC_ADVANCED | 35 | depends on TIPC_ADVANCED |
| 37 | default "3" | 36 | default "3" |
| 38 | help | 37 | help |
| 39 | Max number of zones inside TIPC network. Max supported value | 38 | Max number of zones inside TIPC network. Max supported value |
| @@ -44,7 +43,7 @@ config TIPC_ZONES | |||
| 44 | 43 | ||
| 45 | config TIPC_CLUSTERS | 44 | config TIPC_CLUSTERS |
| 46 | int "Maximum number of clusters in a zone" | 45 | int "Maximum number of clusters in a zone" |
| 47 | depends on TIPC && TIPC_ADVANCED | 46 | depends on TIPC_ADVANCED |
| 48 | default "1" | 47 | default "1" |
| 49 | help | 48 | help |
| 50 | ***Only 1 (one cluster in a zone) is supported by current code. | 49 | ***Only 1 (one cluster in a zone) is supported by current code. |
| @@ -59,7 +58,7 @@ config TIPC_CLUSTERS | |||
| 59 | 58 | ||
| 60 | config TIPC_NODES | 59 | config TIPC_NODES |
| 61 | int "Maximum number of nodes in cluster" | 60 | int "Maximum number of nodes in cluster" |
| 62 | depends on TIPC && TIPC_ADVANCED | 61 | depends on TIPC_ADVANCED |
| 63 | default "255" | 62 | default "255" |
| 64 | help | 63 | help |
| 65 | Maximum number of nodes inside a TIPC cluster. Maximum | 64 | Maximum number of nodes inside a TIPC cluster. Maximum |
| @@ -70,7 +69,7 @@ config TIPC_NODES | |||
| 70 | 69 | ||
| 71 | config TIPC_SLAVE_NODES | 70 | config TIPC_SLAVE_NODES |
| 72 | int "Maximum number of slave nodes in cluster" | 71 | int "Maximum number of slave nodes in cluster" |
| 73 | depends on TIPC && TIPC_ADVANCED | 72 | depends on TIPC_ADVANCED |
| 74 | default "0" | 73 | default "0" |
| 75 | help | 74 | help |
| 76 | ***This capability is not supported by current code.*** | 75 | ***This capability is not supported by current code.*** |
| @@ -83,7 +82,7 @@ config TIPC_SLAVE_NODES | |||
| 83 | 82 | ||
| 84 | config TIPC_PORTS | 83 | config TIPC_PORTS |
| 85 | int "Maximum number of ports in a node" | 84 | int "Maximum number of ports in a node" |
| 86 | depends on TIPC && TIPC_ADVANCED | 85 | depends on TIPC_ADVANCED |
| 87 | default "8191" | 86 | default "8191" |
| 88 | help | 87 | help |
| 89 | Maximum number of ports within a node. Maximum | 88 | Maximum number of ports within a node. Maximum |
| @@ -94,7 +93,7 @@ config TIPC_PORTS | |||
| 94 | 93 | ||
| 95 | config TIPC_LOG | 94 | config TIPC_LOG |
| 96 | int "Size of log buffer" | 95 | int "Size of log buffer" |
| 97 | depends on TIPC && TIPC_ADVANCED | 96 | depends on TIPC_ADVANCED |
| 98 | default 0 | 97 | default 0 |
| 99 | help | 98 | help |
| 100 | Size (in bytes) of TIPC's internal log buffer, which records the | 99 | Size (in bytes) of TIPC's internal log buffer, which records the |
| @@ -106,7 +105,6 @@ config TIPC_LOG | |||
| 106 | 105 | ||
| 107 | config TIPC_DEBUG | 106 | config TIPC_DEBUG |
| 108 | bool "Enable debugging support" | 107 | bool "Enable debugging support" |
| 109 | depends on TIPC | ||
| 110 | default n | 108 | default n |
| 111 | help | 109 | help |
| 112 | This will enable debugging of TIPC. | 110 | This will enable debugging of TIPC. |
| @@ -114,4 +112,4 @@ config TIPC_DEBUG | |||
| 114 | Only say Y here if you are having trouble with TIPC. It will | 112 | Only say Y here if you are having trouble with TIPC. It will |
| 115 | enable the display of detailed information about what is going on. | 113 | enable the display of detailed information about what is going on. |
| 116 | 114 | ||
| 117 | endmenu | 115 | endif # TIPC |
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 0ee6ded18f3a..77d2d9ce8962 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
| @@ -120,18 +120,20 @@ static int recv_msg(struct sk_buff *buf, struct net_device *dev, | |||
| 120 | 120 | ||
| 121 | static int enable_bearer(struct tipc_bearer *tb_ptr) | 121 | static int enable_bearer(struct tipc_bearer *tb_ptr) |
| 122 | { | 122 | { |
| 123 | struct net_device *dev, *pdev; | 123 | struct net_device *dev = NULL; |
| 124 | struct net_device *pdev = NULL; | ||
| 124 | struct eth_bearer *eb_ptr = ð_bearers[0]; | 125 | struct eth_bearer *eb_ptr = ð_bearers[0]; |
| 125 | struct eth_bearer *stop = ð_bearers[MAX_ETH_BEARERS]; | 126 | struct eth_bearer *stop = ð_bearers[MAX_ETH_BEARERS]; |
| 126 | char *driver_name = strchr((const char *)tb_ptr->name, ':') + 1; | 127 | char *driver_name = strchr((const char *)tb_ptr->name, ':') + 1; |
| 127 | 128 | ||
| 128 | /* Find device with specified name */ | 129 | /* Find device with specified name */ |
| 129 | dev = NULL; | 130 | |
| 130 | for_each_netdev(pdev) | 131 | for_each_netdev(pdev){ |
| 131 | if (!strncmp(dev->name, driver_name, IFNAMSIZ)) { | 132 | if (!strncmp(pdev->name, driver_name, IFNAMSIZ)) { |
| 132 | dev = pdev; | 133 | dev = pdev; |
| 133 | break; | 134 | break; |
| 134 | } | 135 | } |
| 136 | } | ||
| 135 | if (!dev) | 137 | if (!dev) |
| 136 | return -ENODEV; | 138 | return -ENODEV; |
| 137 | 139 | ||
