From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: Move ipv4 set_lwt_redirect helper to lwtunnel Date: Tue, 13 Feb 2018 14:49:47 -0500 (EST) Message-ID: <20180213.144947.1026417908602250422.davem@davemloft.net> References: <20180213164550.1865-1-dsahern@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, roopa@cumulusnetworks.com To: dsahern@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:43894 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965551AbeBMTtt (ORCPT ); Tue, 13 Feb 2018 14:49:49 -0500 In-Reply-To: <20180213164550.1865-1-dsahern@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern Date: Tue, 13 Feb 2018 08:45:50 -0800 > @@ -127,6 +127,19 @@ int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb); > int lwtunnel_input(struct sk_buff *skb); > int lwtunnel_xmit(struct sk_buff *skb); > > +static inline void lwtunnel_set_redirect(struct dst_entry *dst) > +{ > + if (dst->lwtstate) { This test is new, and doesn't exist in the ipv4 nor the ipv6 code you are deriving this from. If it is needed, explain why. Thank you.