]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[INET]: Consolidate inet(6)_hash_connect.
authorPavel Emelyanov <xemul@openvz.org>
Thu, 31 Jan 2008 13:04:45 +0000 (05:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:17 +0000 (19:28 -0800)
commit5ee31fc1ecdcbc234c8c56dcacef87c8e09909d8
tree5fe73acbcf784f9ee326d7d10ae217c7b4eb13ee
parent535174efbe0f0454f0595c31b823498c197eeb4f
[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>
include/net/inet_hashtables.h
net/ipv4/inet_hashtables.c
net/ipv6/inet6_hashtables.c