summaryrefslogtreecommitdiffstats
path: root/include/net/netns/ipv4.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-01-30 00:58:09 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-01 02:48:18 +0100
commit349c9e3c7341bbab6efbea39acfadeba9ab19f61 (patch)
treef319fbf97b50c92a29c6bebd61878f8101da32bc /include/net/netns/ipv4.h
parentdrivers: net: cpsw: make cpsw_ale.c a module to allow re-use on Keystone (diff)
downloadlinux-349c9e3c7341bbab6efbea39acfadeba9ab19f61.tar.xz
linux-349c9e3c7341bbab6efbea39acfadeba9ab19f61.zip
ipv4: icmp: use percpu allocation
Get rid of nr_cpu_ids and use modern percpu allocation. Note that the sockets themselves are not yet allocated using NUMA affinity. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns/ipv4.h')
-rw-r--r--include/net/netns/ipv4.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
index 24945cefc4fd..7283f4d39ae2 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -48,7 +48,8 @@ struct netns_ipv4 {
struct hlist_head *fib_table_hash;
struct sock *fibnl;
- struct sock **icmp_sk;
+ struct sock * __percpu *icmp_sk;
+
struct inet_peer_base *peers;
struct tcpm_hash_bucket *tcp_metrics_hash;
unsigned int tcp_metrics_hash_log;