diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-01-09 02:27:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-12 16:24:32 -0500 |
commit | 54fef04ad05f15984082c225fe47ce6af8ea1c5c (patch) | |
tree | 64947b8d36dee12d05b51206c25ccc4c6c63da4f /net/tipc/link.c | |
parent | f2f2a96a20d52d65aa79bd4019af43bbfb0e1528 (diff) |
tipc: remove unused tipc_link_get_max_pkt routine
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Tested-by: Tero Aho <Tero.Aho@coriant.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index f2531a8efa54..f23105852cb3 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -2267,33 +2267,6 @@ struct sk_buff *tipc_link_cmd_show_stats(const void *req_tlv_area, int req_tlv_s | |||
2267 | return buf; | 2267 | return buf; |
2268 | } | 2268 | } |
2269 | 2269 | ||
2270 | /** | ||
2271 | * tipc_link_get_max_pkt - get maximum packet size to use when sending to destination | ||
2272 | * @dest: network address of destination node | ||
2273 | * @selector: used to select from set of active links | ||
2274 | * | ||
2275 | * If no active link can be found, uses default maximum packet size. | ||
2276 | */ | ||
2277 | u32 tipc_link_get_max_pkt(u32 dest, u32 selector) | ||
2278 | { | ||
2279 | struct tipc_node *n_ptr; | ||
2280 | struct tipc_link *l_ptr; | ||
2281 | u32 res = MAX_PKT_DEFAULT; | ||
2282 | |||
2283 | if (dest == tipc_own_addr) | ||
2284 | return MAX_MSG_SIZE; | ||
2285 | |||
2286 | n_ptr = tipc_node_find(dest); | ||
2287 | if (n_ptr) { | ||
2288 | tipc_node_lock(n_ptr); | ||
2289 | l_ptr = n_ptr->active_links[selector & 1]; | ||
2290 | if (l_ptr) | ||
2291 | res = l_ptr->max_pkt; | ||
2292 | tipc_node_unlock(n_ptr); | ||
2293 | } | ||
2294 | return res; | ||
2295 | } | ||
2296 | |||
2297 | static void link_print(struct tipc_link *l_ptr, const char *str) | 2270 | static void link_print(struct tipc_link *l_ptr, const char *str) |
2298 | { | 2271 | { |
2299 | struct tipc_bearer *b_ptr; | 2272 | struct tipc_bearer *b_ptr; |