Re: [RFC PATCH 05/12] net: Create and use new helper xfrm_dst_child().

2017-10-25 Thread David Miller
From: Shannon Nelson Date: Wed, 25 Oct 2017 08:56:06 -0700 > On Wed, Oct 25, 2017 at 7:03 AM, David Miller wrote: >> >> >> diff --git a/include/net/xfrm.h b/include/net/xfrm.h >> index f002a2c5e33c..4fa951112873 100644 >> --- a/include/net/xfrm.h >> +++ b/include/net/xfrm.h >> @@ -994,6 +994,15

Re: [RFC PATCH 05/12] net: Create and use new helper xfrm_dst_child().

2017-10-25 Thread Shannon Nelson
On Wed, Oct 25, 2017 at 7:03 AM, David Miller wrote: > > > diff --git a/include/net/xfrm.h b/include/net/xfrm.h > index f002a2c5e33c..4fa951112873 100644 > --- a/include/net/xfrm.h > +++ b/include/net/xfrm.h > @@ -994,6 +994,15 @@ struct xfrm_dst { > }; > > #ifdef CONFIG_XFRM Perhaps the new xf

[RFC PATCH 05/12] net: Create and use new helper xfrm_dst_child().

2017-10-25 Thread David 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/ipv4/xfrm4_mode_tunnel.c | 2 +- net/ipv6/xfrm6_mode_tunnel.c | 2 +- net/ipv6/xfrm6_poli