Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7914FC43381 for ; Thu, 28 Mar 2019 11:46:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 525C020700 for ; Thu, 28 Mar 2019 11:46:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbfC1LqE (ORCPT ); Thu, 28 Mar 2019 07:46:04 -0400 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:47384 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbfC1LqE (ORCPT ); Thu, 28 Mar 2019 07:46:04 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1h9TTt-0005Bs-O9; Thu, 28 Mar 2019 12:46:01 +0100 Date: Thu, 28 Mar 2019 12:46:01 +0100 From: Florian Westphal To: Sabrina Dubroca Cc: Florian Westphal , netdev@vger.kernel.org, steffen.klassert@secunet.com Subject: Re: [PATCH ipsec-next 03/11] xfrm: remove input indirection from xfrm_mode Message-ID: <20190328114601.6l3xqpacsi6svbhz@breakpoint.cc> References: <20190327173140.16891-1-fw@strlen.de> <20190327173140.16891-4-fw@strlen.de> <20190328113901.GC19967@bistromath.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190328113901.GC19967@bistromath.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Sabrina Dubroca wrote: > 2019-03-27, 18:31:32 +0100, Florian Westphal wrote: > > diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c > > index ea5ac053c15d..e3c7edd11e77 100644 > > --- a/net/xfrm/xfrm_input.c > > +++ b/net/xfrm/xfrm_input.c > > @@ -186,6 +186,74 @@ int xfrm_prepare_input(struct xfrm_state *x, struct sk_buff *skb) > > } > > EXPORT_SYMBOL(xfrm_prepare_input); > > > > +/* Remove encapsulation header. > > + * > > + * The IP header will be moved over the top of the encapsulation header. > > + * > > + * On entry, skb->h shall point to where the IP header should be and skb->nh > > + * shall be set to where the IP header currently is. skb->data shall point > > + * to the start of the payload. > > + */ > > +static int xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb) > > +{ > > +#if IS_ENABLED(CONFIG_INET4_XFRM_MODE_TRANSPORT) > > Nit: that should be CONFIG_INET_XFRM_MODE_TRANSPORT (without 4), and > in patch 10. Urgh. Thanks, I'll fix both.