summaryrefslogtreecommitdiff
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-03-06 20:23:10 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:23:49 -0700
commit243bbcaa09e8482aa28065cbc2eb99f0ca2fc8d6 (patch)
treee542a4ed151de034779fa311f8d89a55ac90f685 /net/ipv6/udp.c
parent43e683926f808cec9802466c27cee7499eda3d11 (diff)
downloadlwn-243bbcaa09e8482aa28065cbc2eb99f0ca2fc8d6.tar.gz
lwn-243bbcaa09e8482aa28065cbc2eb99f0ca2fc8d6.zip
[IPV4]: Optimize inet_getpeer()
1) Some sysctl vars are declared __read_mostly 2) We can avoid updating stack[] when doing an AVL lookup only. lookup() macro is extended to receive a second parameter, that may be NULL in case of a pure lookup (no need to save the AVL path). This removes unnecessary instructions, because compiler knows if this _stack parameter is NULL or not. text size of net/ipv4/inetpeer.o is 2063 bytes instead of 2107 on x86_64 Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
0 files changed, 0 insertions, 0 deletions