diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-08-24 06:29:04 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:08:45 -0400 |
commit | c7f5ea3a4d1ae6b3b426e113358fdc57494bc754 (patch) | |
tree | d77be695b79131617029d8586fd729a6b94b56e5 /net/xfrm/xfrm_policy.c | |
parent | 2575b65434d56559bd03854450b9b6aaf19b9c90 (diff) |
[XFRM]: Do not flush all bundles on SA insert.
Instead, simply set all potentially aliasing existing xfrm_state
objects to have the current generation counter value.
This will make routes get relooked up the next time an existing
route mentioning these aliased xfrm_state objects gets used,
via xfrm_dst_check().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 7fc6944ee36f..cfa5c692f2e8 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -1478,16 +1478,6 @@ int xfrm_flush_bundles(void) | |||
1478 | return 0; | 1478 | return 0; |
1479 | } | 1479 | } |
1480 | 1480 | ||
1481 | static int always_true(struct dst_entry *dst) | ||
1482 | { | ||
1483 | return 1; | ||
1484 | } | ||
1485 | |||
1486 | void xfrm_flush_all_bundles(void) | ||
1487 | { | ||
1488 | xfrm_prune_bundles(always_true); | ||
1489 | } | ||
1490 | |||
1491 | void xfrm_init_pmtu(struct dst_entry *dst) | 1481 | void xfrm_init_pmtu(struct dst_entry *dst) |
1492 | { | 1482 | { |
1493 | do { | 1483 | do { |