]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: use __read_mostly on kmem_cache_t , DEFINE_SNMP_STAT pointers
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 26 Aug 2005 19:05:31 +0000 (12:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 23:11:18 +0000 (16:11 -0700)
commitba89966c1984513f4f2cc0a6c182266be44ddd03
tree6e5766fc5c287708c03e0a162531dfd4785b0703
parent29cb9f9c5502f6218cd3ea574efe46a5e55522d2
[NET]: use __read_mostly on kmem_cache_t , DEFINE_SNMP_STAT pointers

This patch puts mostly read only data in the right section
(read_mostly), to help sharing of these data between CPUS without
memory ping pongs.

On one of my production machine, tcp_statistics was sitting in a
heavily modified cache line, so *every* SNMP update had to force a
reload.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
29 files changed:
net/bridge/br_fdb.c
net/core/flow.c
net/core/skbuff.c
net/dccp/ccids/ccid3.c
net/dccp/proto.c
net/decnet/dn_table.c
net/ipv4/af_inet.c
net/ipv4/fib_hash.c
net/ipv4/fib_trie.c
net/ipv4/icmp.c
net/ipv4/inetpeer.c
net/ipv4/ip_input.c
net/ipv4/ipmr.c
net/ipv4/ipvs/ip_vs_conn.c
net/ipv4/netfilter/ip_conntrack_core.c
net/ipv4/netfilter/ipt_hashlimit.c
net/ipv4/tcp.c
net/ipv4/udp.c
net/ipv6/icmp.c
net/ipv6/ip6_fib.c
net/ipv6/ipv6_sockglue.c
net/ipv6/udp.c
net/ipv6/xfrm6_tunnel.c
net/sctp/protocol.c
net/socket.c
net/sunrpc/rpc_pipe.c
net/sunrpc/sched.c
net/xfrm/xfrm_input.c
net/xfrm/xfrm_policy.c