diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-09-02 23:58:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-15 22:01:41 +0300 |
commit | b7503e0cdb5dbec5d201aa69d8888c14679b5ae8 (patch) | |
tree | 45fde1b18f1b392b12101def200158870687aa71 /drivers/net/vrf.c | |
parent | d08c4f355403840fad98d9918db51a7113f38ee8 (diff) | |
download | linux-b7503e0cdb5dbec5d201aa69d8888c14679b5ae8.tar.xz |
net: Add FIB table id to rtable
Add the FIB table id to rtable to make the information available for
IPv4 as it is for IPv6.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r-- | drivers/net/vrf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index e7094fbd7568..8c9ab5ebea23 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -320,6 +320,7 @@ static void vrf_rtable_destroy(struct net_vrf *vrf) static struct rtable *vrf_rtable_create(struct net_device *dev) { + struct net_vrf *vrf = netdev_priv(dev); struct rtable *rth; rth = dst_alloc(&vrf_dst_ops, dev, 2, @@ -335,6 +336,7 @@ static struct rtable *vrf_rtable_create(struct net_device *dev) rth->rt_pmtu = 0; rth->rt_gateway = 0; rth->rt_uses_gateway = 0; + rth->rt_table_id = vrf->tb_id; INIT_LIST_HEAD(&rth->rt_uncached); rth->rt_uncached_list = NULL; } |