diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-03-07 05:23:10 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:23:49 +0200 |
commit | 243bbcaa09e8482aa28065cbc2eb99f0ca2fc8d6 (patch) | |
tree | e542a4ed151de034779fa311f8d89a55ac90f685 /sound | |
parent | [TCP] TCP Yeah: cleanup (diff) | |
download | linux-243bbcaa09e8482aa28065cbc2eb99f0ca2fc8d6.tar.xz linux-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 'sound')
0 files changed, 0 insertions, 0 deletions