fib: introduce fib_alias_accessed() helper
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 20 Oct 2010 22:03:38 +0000 (22:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 10:09:41 +0000 (03:09 -0700)
commit9b0c290e78d667e6a483bde8c7cef7dd15f49017
treeed68f6cbcc9a512106217694b16a846147cdf54a
parent7b5edbc4cfe2297b0915adea5aa1eafcafadbf06
fib: introduce fib_alias_accessed() helper

Perf tools session at NFWS 2010 pointed out a false sharing on struct
fib_alias that can be avoided pretty easily, if we set FA_S_ACCESSED bit
only if needed (ie : not already set)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_hash.c
net/ipv4/fib_lookup.h
net/ipv4/fib_semantics.c
net/ipv4/fib_trie.c