neigh: Protect neigh->ha[] with a seqlock
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 7 Oct 2010 10:44:07 +0000 (10:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2010 19:54:04 +0000 (12:54 -0700)
Add a seqlock in struct neighbour to protect neigh->ha[], and avoid
dirtying neighbour in stress situation (many different flows / dsts)

Dirtying takes place because of read_lock(&n->lock) and n->used writes.

Switching to a seqlock, and writing n->used only on jiffies changes
permits less dirtying.

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

No differences found