]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Force a cache line split in hh_cache in SMP.
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 8 Dec 2006 08:08:43 +0000 (00:08 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 9 Dec 2006 01:19:29 +0000 (17:19 -0800)
commitd39c5067d80dc32c41d4c69aa727c21b6c8eb743
treeb5f505b4bfbc770c1e15d7177fec4944e2df9c28
parent9f3e122e801e5f422d3ad88d282ee951024740c8
[NET]: Force a cache line split in hh_cache in SMP.

hh_lock was converted from rwlock to seqlock by Stephen.

To have a 100% benefit of this change, I suggest to place read mostly fields
of hh_cache in a separate cache line, because hh_refcnt may be changed quite
frequently on some busy machines.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h