|
@@ -1271,7 +1271,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg)
|
|
|
|
|
|
fib_release_info(fi_drop);
|
|
fib_release_info(fi_drop);
|
|
if (state & FA_S_ACCESSED)
|
|
if (state & FA_S_ACCESSED)
|
|
- rt_cache_flush(-1);
|
|
|
|
|
|
+ rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
|
|
rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen,
|
|
rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen,
|
|
tb->tb_id, &cfg->fc_nlinfo, NLM_F_REPLACE);
|
|
tb->tb_id, &cfg->fc_nlinfo, NLM_F_REPLACE);
|
|
|
|
|
|
@@ -1316,7 +1316,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg)
|
|
list_add_tail_rcu(&new_fa->fa_list,
|
|
list_add_tail_rcu(&new_fa->fa_list,
|
|
(fa ? &fa->fa_list : fa_head));
|
|
(fa ? &fa->fa_list : fa_head));
|
|
|
|
|
|
- rt_cache_flush(-1);
|
|
|
|
|
|
+ rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
|
|
rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, tb->tb_id,
|
|
rtmsg_fib(RTM_NEWROUTE, htonl(key), new_fa, plen, tb->tb_id,
|
|
&cfg->fc_nlinfo, 0);
|
|
&cfg->fc_nlinfo, 0);
|
|
succeeded:
|
|
succeeded:
|
|
@@ -1664,7 +1664,7 @@ static int fn_trie_delete(struct fib_table *tb, struct fib_config *cfg)
|
|
trie_leaf_remove(t, l);
|
|
trie_leaf_remove(t, l);
|
|
|
|
|
|
if (fa->fa_state & FA_S_ACCESSED)
|
|
if (fa->fa_state & FA_S_ACCESSED)
|
|
- rt_cache_flush(-1);
|
|
|
|
|
|
+ rt_cache_flush(cfg->fc_nlinfo.nl_net, -1);
|
|
|
|
|
|
fib_release_info(fa->fa_info);
|
|
fib_release_info(fa->fa_info);
|
|
alias_free_mem_rcu(fa);
|
|
alias_free_mem_rcu(fa);
|