summaryrefslogtreecommitdiff
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-05-05 04:46:12 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-05-06 19:51:47 (GMT)
commitb3b4663c973bf11ef19243fa4f1a544cbdc2fa8e (patch)
tree6732d3a50a98f9009e8eea89c362cd4ea49441f0 /net/ipv4/fib_frontend.c
parentf37bd0cced37189fc5dd34a85c90710700fd38d5 (diff)
downloadlinux-b3b4663c973bf11ef19243fa4f1a544cbdc2fa8e.tar.xz
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>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 63566ec..ef2ebeb 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -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)