net: vrf: Create FIB tables on link create
Tables have to exist for VRFs to function. Ensure they exist when VRF device is created. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f37bd0cced
commit
b3b4663c97
@@ -110,6 +110,7 @@ struct fib_table *fib_new_table(struct net *net, u32 id)
|
||||
hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]);
|
||||
return tb;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(fib_new_table);
|
||||
|
||||
/* caller must hold either rtnl or rcu read lock */
|
||||
struct fib_table *fib_get_table(struct net *net, u32 id)
|
||||
|
Reference in New Issue
Block a user