]> git.baikalelectronics.ru Git - kernel.git/commit
fib_rules: reorder struct fib_rules fields
authorEric Dumazet <edumazet@google.com>
Sat, 3 Aug 2013 18:50:35 +0000 (11:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2013 18:53:54 +0000 (11:53 -0700)
commit67e75193863801c4f67839d347779b4bb032dd46
treee15630906314e3243c2053887bd1f32af8a40f2e
parente6ceaf5933fe3aaabfeae5b5477d86ed97223b17
fib_rules: reorder struct fib_rules fields

Move refcnt, pref, suppress_ifgroup, suppress_prefixlen out of first
cache line, as they are not used in fast path.

Make sure ctarget & fr_net are in first cache line.

(Assuming 64 bit arches and 64 bytes cache lines)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h