[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAP-MU4M7qeOdSDorZvFyH9BxvXZEFupftmKnV+pWpMQEyLpwHg@mail.gmail.com>
Date: Wed, 25 Oct 2017 08:56:06 -0700
From: Shannon Nelson <shannon.lee.nelson@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH 05/12] net: Create and use new helper xfrm_dst_child().
On Wed, Oct 25, 2017 at 7:03 AM, David Miller <davem@...emloft.net> 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 xfrm_dst_child() code needs to go before this #ifdef?
sln
>
> +static inline struct dst_entry *xfrm_dst_child(const struct dst_entry *dst)
> +{
> +#ifdef CONFIG_XFRM
> + if (dst->xfrm)
> + return dst->child;
> +#endif
> + return NULL;
> +}
> +
--
==============================================
Mr. Shannon Nelson Parents can't afford to be squeamish.
Powered by blists - more mailing lists