diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-11 11:01:52 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-11 13:09:16 +0400 |
commit | 8e77327783c753689a1a766ab9d301b81c2529f1 (patch) | |
tree | 5b178d092f57519d809c6ba69b14c36c1c5f8ff0 /net/ipv4/fib_trie.c | |
parent | b48c80ece973e9eddb042f6685b482b261ff0d47 (diff) | |
download | linux-8e77327783c753689a1a766ab9d301b81c2529f1.tar.xz |
inet: Add inetpeer tree roots to the FIB tables.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 3 |
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) if (ll && hlist_empty(&ll->list)) trie_leaf_remove(t, ll); + inetpeer_invalidate_tree(&tb->tb_peers); + pr_debug("trie_flush found=%d\n", found); return found; } @@ -1991,6 +1993,7 @@ struct fib_table *fib_trie_table(u32 id) tb->tb_id = id; tb->tb_default = -1; tb->tb_num_default = 0; + inet_peer_base_init(&tb->tb_peers); t = (struct trie *) tb->tb_data; memset(t, 0, sizeof(*t)); |