linux/net/xfrm
Xin Long 35db069121 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>
2017-04-26 10:34:32 +02:00
..
Kconfig Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next 2017-02-16 21:25:49 -05:00
Makefile
xfrm_algo.c
xfrm_hash.c
xfrm_hash.h
xfrm_input.c esp: Add a software GRO codepath 2017-02-15 11:04:11 +01:00
xfrm_ipcomp.c
xfrm_output.c xfrm: remove xfrm_state_put_afinfo 2017-01-10 10:57:13 +01:00
xfrm_policy.c xfrm: do the garbage collection after flushing policy 2017-04-26 10:34:32 +02:00
xfrm_proc.c
xfrm_replay.c
xfrm_state.c xfrm: fix possible null deref in xfrm_init_tempstate 2017-01-16 08:36:33 +01:00
xfrm_sysctl.c
xfrm_user.c xfrm_user: validate XFRM_MSG_NEWAE incoming ESN size harder 2017-03-29 08:40:15 -07:00