aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-01-31 08:04:45 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-31 22:28:17 -0500
commit5ee31fc1ecdcbc234c8c56dcacef87c8e09909d8 (patch)
tree5fe73acbcf784f9ee326d7d10ae217c7b4eb13ee /include
parent535174efbe0f0454f0595c31b823498c197eeb4f (diff)
[INET]: Consolidate inet(6)_hash_connect.
These two functions are the same except for what they call to "check_established" and "hash" for a socket. This saves half-a-kilo for ipv4 and ipv6. add/remove: 1/0 grow/shrink: 1/4 up/down: 582/-1128 (-546) function old new delta __inet_hash_connect - 577 +577 arp_ignore 108 113 +5 static.hint 8 4 -4 rt_worker_func 376 372 -4 inet6_hash_connect 584 25 -559 inet_hash_connect 586 25 -561 Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/inet_hashtables.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index 761bdc01425d..a34a8f25fc57 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -413,6 +413,11 @@ static inline struct sock *inet_lookup(struct inet_hashinfo *hashinfo,
413 return sk; 413 return sk;
414} 414}
415 415
416extern int __inet_hash_connect(struct inet_timewait_death_row *death_row,
417 struct sock *sk,
418 int (*check_established)(struct inet_timewait_death_row *,
419 struct sock *, __u16, struct inet_timewait_sock **),
420 void (*hash)(struct inet_hashinfo *, struct sock *));
416extern int inet_hash_connect(struct inet_timewait_death_row *death_row, 421extern int inet_hash_connect(struct inet_timewait_death_row *death_row,
417 struct sock *sk); 422 struct sock *sk);
418#endif /* _INET_HASHTABLES_H */ 423#endif /* _INET_HASHTABLES_H */