Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1321074pxf; Fri, 19 Mar 2021 04:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCp4zz5fWMgSN6C5871RfhtzrB5WIaOuFGHJqil6e7sCRolxABEUpfED7ZXCpwH/Y0twlc X-Received: by 2002:a17:906:f203:: with SMTP id gt3mr3751839ejb.346.1616154353243; Fri, 19 Mar 2021 04:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616154353; cv=none; d=google.com; s=arc-20160816; b=SSIVURQQumiVqbYP62nc3+E+WZYdN7PXYYPGhtOQJtliRMwP0uwGsS8SDJgmZAuH1T 6yvFghrYXmhCCIGIZUGwRePari22WPnSC8HwMzU3O7T4C2yU08lroRpTJFGEZPktNDIT tBZfeWfqf/xe0YIrdmL6e6qFp10JwLyNbqHaWYV30irDoCNhgeWUxnD1mYR71ycAxDuj ESBKAkzU0pvNdykS87jfMfnoM4uu8riKXab0yre8IhEywhy5NhMdlZA04tc3IBuLaozP kjAGSFEAobbfEZoT72llkVqVwVeuxGb88/jtWrANuib/4eNuaj/8G/0l5sXgUhQm4898 bGKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=Aj1LIFzD3jCKfUK9OleOTxL83QpbtToqIeBLj0fUe8g=; b=0ix9ajhNP+om18t4DTZoOSMZ/xTgLllXlfl498anlqLYiX46kiGby85JcvCiDe6pv8 AxM1y8y3TOla5fkiRq2zjCZOTg0RiWm6UJy72Tp79ZNgtBGvRZU4PiSuf9nHQ17ZJgua QFdwtmEKCfmy5uJVPYamZFgo6pND4Scc9Bgk1BxLH7JKV4q1VlzvU+3/iRhsG3xLX+KG XybJhPcJLORaakczbXoLmdrINfQEofteSBpnPAPjqAWlUf3RVZPCuUj4UsPzW7sioHfe PBCvJs7bhglb6WvClcYLaNoADvu4ujV0Hh90I+aIAnP8Yl53bCrg+HyQPHfY8EpkaHUm QNdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=GIxfBvA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz17si3958797ejc.25.2021.03.19.04.45.30; Fri, 19 Mar 2021 04:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=GIxfBvA2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbhCSLnT (ORCPT + 99 others); Fri, 19 Mar 2021 07:43:19 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:56583 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhCSLnT (ORCPT ); Fri, 19 Mar 2021 07:43:19 -0400 Date: Fri, 19 Mar 2021 11:43:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1616154197; bh=Aj1LIFzD3jCKfUK9OleOTxL83QpbtToqIeBLj0fUe8g=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=GIxfBvA2qmUsnccro0/YVr/fg65qKni6etnme6t8bxZ7+A1Ucos+gbvjYlsyp8Z2z y/c3/jprMP+Re7NO7J9j4d4w44DYFRed1MVWo3BdMF3dHOISOSpOTaHWlw6Jzb3DGK RQWAtYyaFE6skUyk7PbuLGoYa48BMqf5hgsunNyuGoMPZPowESWY8kEVZyHnWScbph 52j+Tsyv/CYtg+hFqak+FiEj6sT5JlTHhyCDovDx7h9bvDxIJYRWKXcoVc1w0AiR4j Caw75PhCR9+gkjpSZt5o7X446Cl+OY1WfA5yuJ6RwZUy4xpwtk+6IDRC6yAFJwosfF u8yqe75Xm6pkQ== To: Paolo Abeni From: Alexander Lobakin Cc: Alexander Lobakin , "David S. Miller" , Jakub Kicinski , Mauro Carvalho Chehab , Kirill Tkhai , Bartosz Golaszewski , Leon Romanovsky , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: Re: [PATCH net-next 2/4] gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper Message-ID: <20210319114300.108808-1-alobakin@pm.me> In-Reply-To: <20210319111315.3069-1-alobakin@pm.me> References: <20210318184157.700604-1-alobakin@pm.me> <20210318184157.700604-3-alobakin@pm.me> <1ebd301832ff86cc414dd17eee0b3dfc91ff3c08.camel@redhat.com> <20210319111315.3069-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Lobakin Date: Fri, 19 Mar 2021 11:13:25 +0000 > From: Paolo Abeni > Date: Fri, 19 Mar 2021 11:53:42 +0100 > > > Hello, > > Hi! > > > On Thu, 2021-03-18 at 18:42 +0000, Alexander Lobakin wrote: > > > call_gro_receive() is used to limit GRO recursion, but it works only > > > with callback pointers. > > > There's a combined version of call_gro_receive() + INDIRECT_CALL_2() > > > in , but it doesn't check for IPv6 modularity. > > > > AFAICS, ip6_offload is builtin even when IPv6 is a module, so the above > > should not be needed. > > Aww, you are right. I overlooked that since dev_gro_receive() still > use INDIRECT_CALL_INET(), though all GRO callbacks were made > built-in. I'm not sure if you did it on purpose in commit aaa5d90b395a7 ("net: use indirect call wrappers at GRO network layer"). Was that intentional for the sake of more optimized path for the kernels with moduled IPv6, or I can replace INDIRECT_CALL_INET() with INDIRECT_CALL_2() here too? I want to keep GRO callbacks that make use of indirect call wrappers unified. > Seems like more code can be optimized, thanks! > > > Cheers, > > > > Paolo > > Al Thanks, Al