]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: reorder struct neighbour
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 11 Nov 2010 06:57:19 +0000 (06:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Nov 2010 18:29:40 +0000 (10:29 -0800)
commit47cdc44aa106970177596257c7d0aea57499bdab
tree435ef8301a89c04f56b305b219ddcece068bb273
parent336fe14f0eabda93cf871b3c0b9c5aa7b5f53689
neigh: reorder struct neighbour

It is important to move nud_state outside of the often modified cache
line (because of refcnt), to reduce false sharing in neigh_event_send()

This is a followup of commit b84d3d4d47ea (neigh: Protect neigh->ha[]
with a seqlock)

This gives a 7% speedup on routing test with IP route cache disabled.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h