diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/flow.c | 3 | ||||
-rw-r--r-- | net/core/neighbour.c | 12 |
2 files changed, 4 insertions, 11 deletions
diff --git a/net/core/flow.c b/net/core/flow.c index 6489f4e24ecf..46b38e06e0d7 100644 --- a/net/core/flow.c +++ b/net/core/flow.c | |||
@@ -352,8 +352,7 @@ static int __init flow_cache_init(void) | |||
352 | flow_lwm = 2 * flow_hash_size; | 352 | flow_lwm = 2 * flow_hash_size; |
353 | flow_hwm = 4 * flow_hash_size; | 353 | flow_hwm = 4 * flow_hash_size; |
354 | 354 | ||
355 | init_timer(&flow_hash_rnd_timer); | 355 | setup_timer(&flow_hash_rnd_timer, flow_cache_new_hashrnd, 0); |
356 | flow_hash_rnd_timer.function = flow_cache_new_hashrnd; | ||
357 | flow_hash_rnd_timer.expires = jiffies + FLOW_HASH_RND_PERIOD; | 356 | flow_hash_rnd_timer.expires = jiffies + FLOW_HASH_RND_PERIOD; |
358 | add_timer(&flow_hash_rnd_timer); | 357 | add_timer(&flow_hash_rnd_timer); |
359 | 358 | ||
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 29b8ee4e35d6..175bbc0a974e 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -270,9 +270,7 @@ static struct neighbour *neigh_alloc(struct neigh_table *tbl) | |||
270 | n->nud_state = NUD_NONE; | 270 | n->nud_state = NUD_NONE; |
271 | n->output = neigh_blackhole; | 271 | n->output = neigh_blackhole; |
272 | n->parms = neigh_parms_clone(&tbl->parms); | 272 | n->parms = neigh_parms_clone(&tbl->parms); |
273 | init_timer(&n->timer); | 273 | setup_timer(&n->timer, neigh_timer_handler, (unsigned long)n); |
274 | n->timer.function = neigh_timer_handler; | ||
275 | n->timer.data = (unsigned long)n; | ||
276 | 274 | ||
277 | NEIGH_CACHE_STAT_INC(tbl, allocs); | 275 | NEIGH_CACHE_STAT_INC(tbl, allocs); |
278 | n->tbl = tbl; | 276 | n->tbl = tbl; |
@@ -1372,15 +1370,11 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl) | |||
1372 | get_random_bytes(&tbl->hash_rnd, sizeof(tbl->hash_rnd)); | 1370 | get_random_bytes(&tbl->hash_rnd, sizeof(tbl->hash_rnd)); |
1373 | 1371 | ||
1374 | rwlock_init(&tbl->lock); | 1372 | rwlock_init(&tbl->lock); |
1375 | init_timer(&tbl->gc_timer); | 1373 | setup_timer(&tbl->gc_timer, neigh_periodic_timer, (unsigned long)tbl); |
1376 | tbl->gc_timer.data = (unsigned long)tbl; | ||
1377 | tbl->gc_timer.function = neigh_periodic_timer; | ||
1378 | tbl->gc_timer.expires = now + 1; | 1374 | tbl->gc_timer.expires = now + 1; |
1379 | add_timer(&tbl->gc_timer); | 1375 | add_timer(&tbl->gc_timer); |
1380 | 1376 | ||
1381 | init_timer(&tbl->proxy_timer); | 1377 | setup_timer(&tbl->proxy_timer, neigh_proxy_process, (unsigned long)tbl); |
1382 | tbl->proxy_timer.data = (unsigned long)tbl; | ||
1383 | tbl->proxy_timer.function = neigh_proxy_process; | ||
1384 | skb_queue_head_init_class(&tbl->proxy_queue, | 1378 | skb_queue_head_init_class(&tbl->proxy_queue, |
1385 | &neigh_table_proxy_queue_class); | 1379 | &neigh_table_proxy_queue_class); |
1386 | 1380 | ||