summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-10-16 04:02:20 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-20 01:02:06 -0700
commit94b059520d6c0cea852dc9a3e9033c6f123df7c1 (patch)
tree591e57d7d41edf0469695a35c36cfeb4d2b265b3 /Kbuild
parent7b6856a0296a8f187bb88ba31fa83a08abba7966 (diff)
downloadlinux-3.10-94b059520d6c0cea852dc9a3e9033c6f123df7c1.tar.gz
linux-3.10-94b059520d6c0cea852dc9a3e9033c6f123df7c1.tar.bz2
linux-3.10-94b059520d6c0cea852dc9a3e9033c6f123df7c1.zip
af_packet: Avoid cache line dirtying
While doing multiple captures, I found af_packet was dirtying cache line containing its prot_hook. This slow down machines where several cpus are necessary to handle capture traffic, as each prot_hook is traversed for each packet coming in or out the host. This patches moves "struct packet_type prot_hook" to the end of packet_sock, and uses a ____cacheline_aligned_in_smp to make sure this remains shared by all cpus. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions