Re: [RFC v2 PATCH 04/11] net: Create and use new helper xfrm_dst_child().

2017-10-31 Thread David Miller
From: Eric Dumazet Date: Tue, 31 Oct 2017 11:39:22 -0700 > On Tue, 2017-10-31 at 23:10 +0900, David S. Miller wrote: >> @@ -116,12 +116,14 @@ EXPORT_SYMBOL(dst_alloc); >> >> struct dst_entry *dst_destroy(struct dst_entry * dst) >> { >> -struct dst_entry *child; >> +struct dst_entry *c

Re: [RFC v2 PATCH 04/11] net: Create and use new helper xfrm_dst_child().

2017-10-31 Thread Eric Dumazet
On Tue, 2017-10-31 at 23:10 +0900, David S. Miller wrote: > Only IPSEC routes have a non-NULL dst->child pointer. And IPSEC > routes are identified by a non-NULL dst->xfrm pointer. > > Signed-off-by: David S. Miller > --- > include/net/xfrm.h | 9 + > net/core/dst.c

[RFC v2 PATCH 04/11] net: Create and use new helper xfrm_dst_child().

2017-10-31 Thread David S. Miller
Only IPSEC routes have a non-NULL dst->child pointer. And IPSEC routes are identified by a non-NULL dst->xfrm pointer. Signed-off-by: David S. Miller --- include/net/xfrm.h | 9 + net/core/dst.c | 8 +--- net/ipv4/xfrm4_mode_tunnel.c | 2 +- net/ipv6/xfrm6