aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-03-12 17:33:50 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:02 -0400
commit6b2bedc3a659ba228a93afc8e3f008e152abf18a (patch)
treeafe13f455b95fa5c05b9d1362f552cfd146b08e1 /net/core/dev.c
parentc14d2450cb7fe1786e2ec325172baf66922bf597 (diff)
[NET]: network dev read_mostly
For Eric, mark packet type and network device watermarks as read mostly. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 54ffe9db9b02..f9d2b0f0bd58 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -146,8 +146,8 @@
146 */ 146 */
147 147
148static DEFINE_SPINLOCK(ptype_lock); 148static DEFINE_SPINLOCK(ptype_lock);
149static struct list_head ptype_base[16]; /* 16 way hashed list */ 149static struct list_head ptype_base[16] __read_mostly; /* 16 way hashed list */
150static struct list_head ptype_all; /* Taps */ 150static struct list_head ptype_all __read_mostly; /* Taps */
151 151
152#ifdef CONFIG_NET_DMA 152#ifdef CONFIG_NET_DMA
153static struct dma_client *net_dma_client; 153static struct dma_client *net_dma_client;
@@ -1533,9 +1533,9 @@ out:
1533 Receiver routines 1533 Receiver routines
1534 =======================================================================*/ 1534 =======================================================================*/
1535 1535
1536int netdev_max_backlog = 1000; 1536int netdev_max_backlog __read_mostly = 1000;
1537int netdev_budget = 300; 1537int netdev_budget __read_mostly = 300;
1538int weight_p = 64; /* old backlog weight */ 1538int weight_p __read_mostly = 64; /* old backlog weight */
1539 1539
1540DEFINE_PER_CPU(struct netif_rx_stats, netdev_rx_stat) = { 0, }; 1540DEFINE_PER_CPU(struct netif_rx_stats, netdev_rx_stat) = { 0, };
1541 1541