diff options
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 394db9c941a1..d16ae4623be6 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -1271,7 +1271,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg) | |||
1271 | 1271 | ||
1272 | fib_release_info(fi_drop); | 1272 | fib_release_info(fi_drop); |
1273 | if (state & FA_S_ACCESSED) | 1273 | if (state & FA_S_ACCESSED) |
1274 | rt_cache_flush(-1); | 1274 | rt_cache_flush(cfg->fc_nlinfo.nl_net, -1); |
1275 | rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, | 1275 | rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, |
1276 | tb->tb_id, &cfg->fc_nlinfo, NLM_F_REPLACE); | 1276 | tb->tb_id, &cfg->fc_nlinfo, NLM_F_REPLACE); |
1277 | 1277 | ||
@@ -1316,7 +1316,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg) | |||
1316 | list_add_tail_rcu(&new_fa->fa_list, | 1316 | list_add_tail_rcu(&new_fa->fa_list, |
1317 | (fa ? &fa->fa_list : fa_head)); | 1317 | (fa ? &fa->fa_list : fa_head)); |
1318 | 1318 | ||
1319 | rt_cache_flush(-1); | 1319 | rt_cache_flush(cfg->fc_nlinfo.nl_net, -1); |
1320 | rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, tb->tb_id, | 1320 | rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, tb->tb_id, |
1321 | &cfg->fc_nlinfo, 0); | 1321 | &cfg->fc_nlinfo, 0); |
1322 | succeeded: | 1322 | succeeded: |
@@ -1664,7 +1664,7 @@ static int fn_trie_delete(struct fib_table *tb, struct fib_config *cfg) | |||
1664 | trie_leaf_remove(t, l); | 1664 | trie_leaf_remove(t, l); |
1665 | 1665 | ||
1666 | if (fa->fa_state & FA_S_ACCESSED) | 1666 | if (fa->fa_state & FA_S_ACCESSED) |
1667 | rt_cache_flush(-1); | 1667 | rt_cache_flush(cfg->fc_nlinfo.nl_net, -1); |
1668 | 1668 | ||
1669 | fib_release_info(fa->fa_info); | 1669 | fib_release_info(fa->fa_info); |
1670 | alias_free_mem_rcu(fa); | 1670 | alias_free_mem_rcu(fa); |