ipv6: Add hook to bump sernum for a route to stubs
Add hook to ipv6 stub to bump the sernum up to the root node for a route. This is needed by the nexthop code when a nexthop config changes. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
68a9b13d92
commit
cdaa16a4f7
@@ -1222,6 +1222,14 @@ void fib6_update_sernum_upto_root(struct net *net, struct fib6_info *rt)
|
||||
__fib6_update_sernum_upto_root(rt, fib6_new_sernum(net));
|
||||
}
|
||||
|
||||
/* allow ipv4 to update sernum via ipv6_stub */
|
||||
void fib6_update_sernum_stub(struct net *net, struct fib6_info *f6i)
|
||||
{
|
||||
spin_lock_bh(&f6i->fib6_table->tb6_lock);
|
||||
fib6_update_sernum_upto_root(net, f6i);
|
||||
spin_unlock_bh(&f6i->fib6_table->tb6_lock);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add routing information to the routing tree.
|
||||
* <destination addr>/<source addr>
|
||||
|
Reference in New Issue
Block a user