ipv4: Invalidate nexthop cache nh_saddr more correctly.
Any operation that: 1) Brings up an interface 2) Adds an IP address to an interface 3) Deletes an IP address from an interface can potentially invalidate the nh_saddr value, requiring it to be recomputed. Perform the recomputation lazily using a generation ID. Reported-by:Julian Anastasov <ja@ssi.bg> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip_fib.h 10 additions, 2 deletionsinclude/net/ip_fib.h
- include/net/netns/ipv4.h 1 addition, 0 deletionsinclude/net/netns/ipv4.h
- net/ipv4/fib_frontend.c 7 additions, 4 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/fib_semantics.c 11 additions, 21 deletionsnet/ipv4/fib_semantics.c
- net/ipv4/route.c 4 additions, 2 deletionsnet/ipv4/route.c
Loading
Please register or sign in to comment