]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Invalidate nexthop cache nh_saddr more correctly.
authorDavid S. Miller <davem@davemloft.net>
Fri, 25 Mar 2011 00:42:21 +0000 (17:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Mar 2011 00:42:21 +0000 (17:42 -0700)
commit36307cef57d2b50cd6e19f7fd0f5502bb6e0f713
tree8da6452386b6e900c4226c9b67694d1ea21e847e
parent4df169dea4dad8aa0345398c5d3852792e128ed1
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>
include/net/ip_fib.h
include/net/netns/ipv4.h
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c
net/ipv4/route.c