diff options
| author | David S. Miller <davem@davemloft.net> | 2011-03-24 20:42:21 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-03-24 20:42:21 -0400 |
| commit | 436c3b66ec9824a633724ae42de1c416af4f2063 (patch) | |
| tree | 8da6452386b6e900c4226c9b67694d1ea21e847e /include/net/netns | |
| parent | f7594d42944c0dfca90318f50978a4bdf8504086 (diff) | |
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>
Diffstat (limited to 'include/net/netns')
| -rw-r--r-- | include/net/netns/ipv4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index e2e2ef57eca..542195d9469 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
| @@ -55,6 +55,7 @@ struct netns_ipv4 { | |||
| 55 | int current_rt_cache_rebuild_count; | 55 | int current_rt_cache_rebuild_count; |
| 56 | 56 | ||
| 57 | atomic_t rt_genid; | 57 | atomic_t rt_genid; |
| 58 | atomic_t dev_addr_genid; | ||
| 58 | 59 | ||
| 59 | #ifdef CONFIG_IP_MROUTE | 60 | #ifdef CONFIG_IP_MROUTE |
| 60 | #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES | 61 | #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES |
