aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 18cbc15b20d5..9b0f25930fbc 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -1843,6 +1843,8 @@ int fib_table_flush(struct fib_table *tb)
1843 if (ll && hlist_empty(&ll->list)) 1843 if (ll && hlist_empty(&ll->list))
1844 trie_leaf_remove(t, ll); 1844 trie_leaf_remove(t, ll);
1845 1845
1846 inetpeer_invalidate_tree(&tb->tb_peers);
1847
1846 pr_debug("trie_flush found=%d\n", found); 1848 pr_debug("trie_flush found=%d\n", found);
1847 return found; 1849 return found;
1848} 1850}
@@ -1991,6 +1993,7 @@ struct fib_table *fib_trie_table(u32 id)
1991 tb->tb_id = id; 1993 tb->tb_id = id;
1992 tb->tb_default = -1; 1994 tb->tb_default = -1;
1993 tb->tb_num_default = 0; 1995 tb->tb_num_default = 0;
1996 inet_peer_base_init(&tb->tb_peers);
1994 1997
1995 t = (struct trie *) tb->tb_data; 1998 t = (struct trie *) tb->tb_data;
1996 memset(t, 0, sizeof(*t)); 1999 memset(t, 0, sizeof(*t));