aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-24 06:29:04 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:08:45 -0400
commitc7f5ea3a4d1ae6b3b426e113358fdc57494bc754 (patch)
treed77be695b79131617029d8586fd729a6b94b56e5 /net/xfrm/xfrm_policy.c
parent2575b65434d56559bd03854450b9b6aaf19b9c90 (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.c10
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
1481static int always_true(struct dst_entry *dst)
1482{
1483 return 1;
1484}
1485
1486void xfrm_flush_all_bundles(void)
1487{
1488 xfrm_prune_bundles(always_true);
1489}
1490
1491void xfrm_init_pmtu(struct dst_entry *dst) 1481void xfrm_init_pmtu(struct dst_entry *dst)
1492{ 1482{
1493 do { 1483 do {