diff options
author | Florian Westphal <fw@strlen.de> | 2017-02-07 15:00:16 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-09 10:22:18 +0100 |
commit | 3d7d25a68ea5153d9d0d01c8c83acf644eab9704 (patch) | |
tree | 1dfb7c8066af07676209f391f9efd51e5017c356 /include/net | |
parent | 2b61997aa0c68ae033d066ac2d9905ada81b761a (diff) | |
download | op-kernel-dev-3d7d25a68ea5153d9d0d01c8c83acf644eab9704.zip op-kernel-dev-3d7d25a68ea5153d9d0d01c8c83acf644eab9704.tar.gz |
xfrm: policy: remove garbage_collect callback
Just call xfrm_garbage_collect_deferred() directly.
This gets rid of a write to afinfo in register/unregister and allows to
constify afinfo later on.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 39037b1..a22368e 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -282,7 +282,6 @@ struct xfrm_dst; struct xfrm_policy_afinfo { unsigned short family; struct dst_ops *dst_ops; - void (*garbage_collect)(struct net *net); struct dst_entry *(*dst_lookup)(struct net *net, int tos, int oif, const xfrm_address_t *saddr, @@ -1169,6 +1168,7 @@ static inline void xfrm_sk_free_policy(struct sock *sk) } void xfrm_garbage_collect(struct net *net); +void xfrm_garbage_collect_deferred(struct net *net); #else |