From: David Ahern Subject: Re: [PATCH net-next] net: Move ipv4 set_lwt_redirect helper to lwtunnel Date: Tue, 13 Feb 2018 12:52:50 -0700 Message-ID: <1d200c91-bc72-ad7d-66c9-67e6ed964fa8@gmail.com> References: <20180213164550.1865-1-dsahern@gmail.com> <20180213.144947.1026417908602250422.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, roopa@cumulusnetworks.com To: David Miller Return-path: Received: from mail-pl0-f65.google.com ([209.85.160.65]:43772 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965540AbeBMTwx (ORCPT ); Tue, 13 Feb 2018 14:52:53 -0500 Received: by mail-pl0-f65.google.com with SMTP id f4so7135386plr.10 for ; Tue, 13 Feb 2018 11:52:52 -0800 (PST) In-Reply-To: <20180213.144947.1026417908602250422.davem@davemloft.net> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2/13/18 12:49 PM, David Miller wrote: > 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. leftover from a previous attempt to further consolidate lwt checks. Will remove and send a v2.