Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ying Xue and committed by
David S. Miller
54fef04a f2f2a96a

-28
-27
net/tipc/link.c
··· 2267 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 2270 static void link_print(struct tipc_link *l_ptr, const char *str) 2298 2271 { 2299 2272 struct tipc_bearer *b_ptr;
-1
net/tipc/link.h
··· 220 220 int tipc_link_xmit_skb(struct sk_buff *skb, u32 dest, u32 selector); 221 221 int tipc_link_xmit(struct sk_buff_head *list, u32 dest, u32 selector); 222 222 int __tipc_link_xmit(struct tipc_link *link, struct sk_buff_head *list); 223 - u32 tipc_link_get_max_pkt(u32 dest, u32 selector); 224 223 void tipc_link_bundle_rcv(struct sk_buff *buf); 225 224 void tipc_link_proto_xmit(struct tipc_link *l_ptr, u32 msg_typ, int prob, 226 225 u32 gap, u32 tolerance, u32 priority, u32 acked_mtu);