rps: rps_sock_flow_table is mostly read
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 17 Apr 2010 07:54:36 +0000 (00:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Apr 2010 07:54:36 +0000 (00:54 -0700)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index d7107ac835fad207da79a52e00227e6067d9e335..7abf9590e3c55ece0b17bb7ef575c01aee87e253 100644 (file)
@@ -2205,7 +2205,7 @@ DEFINE_PER_CPU(struct netif_rx_stats, netdev_rx_stat) = { 0, };
 #ifdef CONFIG_RPS
 
 /* One global table that all flow-based protocols share. */
-struct rps_sock_flow_table *rps_sock_flow_table;
+struct rps_sock_flow_table *rps_sock_flow_table __read_mostly;
 EXPORT_SYMBOL(rps_sock_flow_table);
 
 /*