tmp_suning_uos_patched/include
Eric Dumazet 8e602ce298 netns: reorder fields in struct net
In a network bench, I noticed an unfortunate false sharing between
'loopback_dev' and 'count' fields in "struct net".

'count' is written each time a socket is created or destroyed, while
loopback_dev might be often read in routing code.

Move loopback_dev in a read mostly section of "struct net"

Note: struct netns_xfrm is cache line aligned on SMP.
(It contains a "struct dst_ops")
Move it at the end to avoid holes, and reduce sizeof(struct net) by 128
bytes on ia32.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-17 13:49:14 -07:00
..
acpi ACPI: Fix typos 2010-09-28 21:38:19 -04:00
asm-generic
crypto
drm drm: Hold the mutex when dropping the last GEM reference (v2) 2010-10-01 21:08:45 +10:00
keys
linux net: allocate skbs on local node 2010-10-16 11:13:19 -07:00
math-emu
media
mtd
net netns: reorder fields in struct net 2010-10-17 13:49:14 -07:00
pcmcia
rdma
rxrpc
scsi
sound
trace
video
xen
Kbuild