Files
linux/include/net
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
..
2010-08-02 14:28:34 -05:00
2010-09-23 14:33:39 -07:00
2010-10-17 13:49:14 -07:00
2010-09-23 14:33:39 -07:00
2010-10-16 11:13:24 -07:00
2009-11-04 05:06:25 -08:00
2010-10-07 14:41:28 -04:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2009-03-21 19:06:54 -07:00
2010-10-03 22:17:54 -07:00
2008-07-05 21:26:57 -07:00
2009-11-04 05:06:25 -08:00
2010-09-23 14:33:39 -07:00
2010-04-13 01:41:33 -07:00
2010-06-03 03:21:52 -07:00
2010-10-05 20:39:38 -07:00
2010-09-08 10:39:57 -07:00
2010-09-23 14:33:39 -07:00
2008-06-11 21:00:38 -07:00
2010-09-27 21:30:42 -07:00
2010-09-23 14:33:39 -07:00
2010-06-03 03:21:52 -07:00
2009-12-26 20:46:28 -08:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2009-01-06 11:38:15 -07:00
2010-06-23 12:58:40 -07:00
2009-11-20 15:35:04 -08:00
2009-03-21 19:06:50 -07:00
2009-11-04 05:06:25 -08:00
2009-07-26 19:11:14 -07:00
2010-09-23 14:33:39 -07:00
2010-06-30 13:31:19 -07:00
2010-09-26 18:53:07 -07:00
2008-07-05 21:25:39 -07:00
2010-09-08 21:45:01 -07:00
2009-10-07 16:39:43 -04:00