]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: keep track of routes using src
authorPaolo Abeni <pabeni@redhat.com>
Wed, 20 Nov 2019 12:47:34 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 22:45:55 +0000 (14:45 -0800)
commitbefddfe30f9bb1629dad540f27dac43bc4e3e017
tree0bd274edeababf25ed5d1c9d76b180984e787afa
parent99e071c65802065b3416bf3e87bc82bce45d8221
ipv6: keep track of routes using src

Use a per namespace counter, increment it on successful creation
of any route using the source address, decrement it on deletion
of such routes.

This allows us to check easily if the routing decision in the
current namespace depends on the packet source. Will be used
by the next patch.

Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/netns/ipv6.h
net/ipv6/ip6_fib.c
net/ipv6/route.c