diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-04-24 15:33:39 +0800 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-04-26 10:34:32 +0200 |
commit | 35db0691218959f05efbe26fd623ee67581ebff6 (patch) | |
tree | 4d1653ab048e9a208bed8f2229943bc7c1474ddc /.cocciconfig | |
parent | fd2c83b35752f0a8236b976978ad4658df14a59f (diff) |
xfrm: do the garbage collection after flushing policy
Now xfrm garbage collection can be triggered by 'ip xfrm policy del'.
These is no reason not to do it after flushing policies, especially
considering that 'garbage collection deferred' is only triggered
when it reaches gc_thresh.
It's no good that the policy is gone but the xdst still hold there.
The worse thing is that xdst->route/orig_dst is also hold and can
not be released even if the orig_dst is already expired.
This patch is to do the garbage collection if there is any policy
removed in xfrm_policy_flush.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions