aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_hash.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-07-05 22:00:44 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-05 22:00:44 -0400
commit76e6ebfb40a2455c18234dcb0f9df37533215461 (patch)
treef3b435e8b27a297f330fc7d497a0ef44022e7239 /net/ipv4/fib_hash.c
parentf43798c27684ab925adde7d8acc34c78c6e50df8 (diff)
netns: add namespace parameter to rt_cache_flush
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_hash.c')
-rw-r--r--net/ipv4/fib_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c
index eeec4bf982b8..c8cac6c7f881 100644
--- a/net/ipv4/fib_hash.c
+++ b/net/ipv4/fib_hash.c
@@ -472,7 +472,7 @@ static int fn_hash_insert(struct fib_table *tb, struct fib_config *cfg)
472 472
473 fib_release_info(fi_drop); 473 fib_release_info(fi_drop);
474 if (state & FA_S_ACCESSED) 474 if (state & FA_S_ACCESSED)
475 rt_cache_flush(-1); 475 rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
476 rtmsg_fib(RTM_NEWROUTE, key, fa, cfg->fc_dst_len, tb->tb_id, 476 rtmsg_fib(RTM_NEWROUTE, key, fa, cfg->fc_dst_len, tb->tb_id,
477 &cfg->fc_nlinfo, NLM_F_REPLACE); 477 &cfg->fc_nlinfo, NLM_F_REPLACE);
478 return 0; 478 return 0;
@@ -532,7 +532,7 @@ static int fn_hash_insert(struct fib_table *tb, struct fib_config *cfg)
532 532
533 if (new_f) 533 if (new_f)
534 fz->fz_nent++; 534 fz->fz_nent++;
535 rt_cache_flush(-1); 535 rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
536 536
537 rtmsg_fib(RTM_NEWROUTE, key, new_fa, cfg->fc_dst_len, tb->tb_id, 537 rtmsg_fib(RTM_NEWROUTE, key, new_fa, cfg->fc_dst_len, tb->tb_id,
538 &cfg->fc_nlinfo, 0); 538 &cfg->fc_nlinfo, 0);
@@ -614,7 +614,7 @@ static int fn_hash_delete(struct fib_table *tb, struct fib_config *cfg)
614 write_unlock_bh(&fib_hash_lock); 614 write_unlock_bh(&fib_hash_lock);
615 615
616 if (fa->fa_state & FA_S_ACCESSED) 616 if (fa->fa_state & FA_S_ACCESSED)
617 rt_cache_flush(-1); 617 rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
618 fn_free_alias(fa, f); 618 fn_free_alias(fa, f);
619 if (kill_fn) { 619 if (kill_fn) {
620 fn_free_node(f); 620 fn_free_node(f);