diff options
author | Eric Dumazet <edumazet@google.com> | 2012-08-03 21:06:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-04 01:27:57 -0700 |
commit | 40384999d142552b81aeb596c2ae663dd3ff60ce (patch) | |
tree | 9ddb875415646dfc0a4362849f3177d404966df3 /include/linux/inetdevice.h | |
parent | 47061bc440b90a16d856fb0dba1cffc36427efa4 (diff) |
ipv4: change inet_addr_hash()
Use net_hash_mix(net) instead of hash_ptr(net, 8), and use
hash_32() instead of using a serie of XOR
Define IN4_ADDR_HSIZE_SHIFT for clarity
__ip_dev_find() can perform the net_eq() call only if ifa_local
matches the key, to avoid unneeded dereferences.
remove inline attributes
# size net/ipv4/devinet.o.before net/ipv4/devinet.o
text data bss dec hex filename
17471 2545 2048 22064 5630 net/ipv4/devinet.o.before
17335 2545 2048 21928 55a8 net/ipv4/devinet.o
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inetdevice.h')
0 files changed, 0 insertions, 0 deletions