diff options
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index a80feee5197a..0a4c3a1bb9cc 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * net/tipc/link.c: TIPC link code | 2 | * net/tipc/link.c: TIPC link code |
3 | * | 3 | * |
4 | * Copyright (c) 1996-2007, 2012, Ericsson AB | 4 | * Copyright (c) 1996-2007, 2012, Ericsson AB |
5 | * Copyright (c) 2004-2007, 2010-2011, Wind River Systems | 5 | * Copyright (c) 2004-2007, 2010-2013, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -1057,40 +1057,6 @@ static int link_send_buf_fast(struct tipc_link *l_ptr, struct sk_buff *buf, | |||
1057 | } | 1057 | } |
1058 | 1058 | ||
1059 | /* | 1059 | /* |
1060 | * tipc_send_buf_fast: Entry for data messages where the | ||
1061 | * destination node is known and the header is complete, | ||
1062 | * inclusive total message length. | ||
1063 | * Returns user data length. | ||
1064 | */ | ||
1065 | int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode) | ||
1066 | { | ||
1067 | struct tipc_link *l_ptr; | ||
1068 | struct tipc_node *n_ptr; | ||
1069 | int res; | ||
1070 | u32 selector = msg_origport(buf_msg(buf)) & 1; | ||
1071 | u32 dummy; | ||
1072 | |||
1073 | read_lock_bh(&tipc_net_lock); | ||
1074 | n_ptr = tipc_node_find(destnode); | ||
1075 | if (likely(n_ptr)) { | ||
1076 | tipc_node_lock(n_ptr); | ||
1077 | l_ptr = n_ptr->active_links[selector]; | ||
1078 | if (likely(l_ptr)) { | ||
1079 | res = link_send_buf_fast(l_ptr, buf, &dummy); | ||
1080 | tipc_node_unlock(n_ptr); | ||
1081 | read_unlock_bh(&tipc_net_lock); | ||
1082 | return res; | ||
1083 | } | ||
1084 | tipc_node_unlock(n_ptr); | ||
1085 | } | ||
1086 | read_unlock_bh(&tipc_net_lock); | ||
1087 | res = msg_data_sz(buf_msg(buf)); | ||
1088 | tipc_reject_msg(buf, TIPC_ERR_NO_NODE); | ||
1089 | return res; | ||
1090 | } | ||
1091 | |||
1092 | |||
1093 | /* | ||
1094 | * tipc_link_send_sections_fast: Entry for messages where the | 1060 | * tipc_link_send_sections_fast: Entry for messages where the |
1095 | * destination processor is known and the header is complete, | 1061 | * destination processor is known and the header is complete, |
1096 | * except for total message length. | 1062 | * except for total message length. |