Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1303014pxf; Fri, 19 Mar 2021 04:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVruKwKXH4aXnC4XEqNKk1hxG+WqynsF3KW+43nRh9ZRHQ8DdJpf5CzUcHP5Kcu93QOQSk X-Received: by 2002:a05:6402:5189:: with SMTP id q9mr8822123edd.168.1616152617227; Fri, 19 Mar 2021 04:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616152617; cv=none; d=google.com; s=arc-20160816; b=q0kkJoxszwBSShU+TyXWqF2jqYp5oGaFAf4WBxzb3fsiwVTth+ombst1AqKcp4bK0X EmbARxvwo5IvQVyh4eb71YUCLZR8lw4DGcG3644K08/93DoeWUXYj0kejJjCy3X8kTWh n7cBGgKOZQg8sTz1JTcirBE4clcm3l3ztbQyCkKn7Vd2vp8bUbPmaCjsnCZje+enNY6u nW1eJREmLuHAX9uu3ADgJLpBC9FLlzlJFOJe4ilCUAD2Xa64jI7OoRoLdkzmTigQFiYZ ts2MQKSMliLKmbJGnlUBmpii77RKMNCX5K+hcm6iE0AzHMoTMWPRHebtssBPsSDf6n96 bYCg== 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=f0jBdzh822UNIDPJ7CXVNsDu6Zz6BcE8iLULPD9/gMQ=; b=rtRFXy2+NOi8YDmmkiU2EzKK0vebZUoYnnZtlhWhoLto/jSDJTI7SE/PDOw4Cr6R1Z 9JV7b3ZoYCrd7aE8IggYZPt7XjoasUj0m4CkXWhqsbP9RXHXLcN9wsAEoN+gvbFH6deS hxcQCjw4EqITYfCuOKj6DBZxtw/XY4VfzpjqtyIV3X9jLGLX3SpM8F2Lz3mUNrTegreb 6t9tkp6QVNUjHwhhGK68fIu20XGtzD+MfDY9vkqFULsOPwBZFcAxeH4HeR0f34Z3g5LG tERCgV1dq94wYSHV80sIYJrZYntIFgKhGhInjgFDpxQv+qLCaaxzUhn2Y9e/xHSIv9Rv zMCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=osxblJeH; 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 do13si3851791ejc.87.2021.03.19.04.16.34; Fri, 19 Mar 2021 04:16:57 -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=osxblJeH; 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 S229821AbhCSLNh (ORCPT + 99 others); Fri, 19 Mar 2021 07:13:37 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:52294 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbhCSLNb (ORCPT ); Fri, 19 Mar 2021 07:13:31 -0400 Date: Fri, 19 Mar 2021 11:13:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1616152408; bh=f0jBdzh822UNIDPJ7CXVNsDu6Zz6BcE8iLULPD9/gMQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=osxblJeHb5/ssJypOEeqeaBbYiR6woII61Klt3hS3YT5MKEhXsA6U5aqnIIxB+Xp7 62TmMpSF22mGrd68bHEF/32bGdVMysNt4DmEtCOGVcpr6QTosYEjbk8vTuL+AyLaiP 4RD1ywfQftgM74A5g67f+YBen8z/i7m6fQP+IgiCzWeir6VxKJxW/LjZhfA9gL42OS 3ZdsMIxHH2snXUMoCY22O8fxxVQJF+VRSQXTbb9gSyGb0dvRUwqIGGOuosWcabA1Y/ /7rzNWT9321jFf4EwqojOk9bB98XZloPa1ikGbCBPfgMUK5r7ghKYd4XN45nqGLN+n rCmBq23gZ4tAw== 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: <20210319111315.3069-1-alobakin@pm.me> In-Reply-To: <1ebd301832ff86cc414dd17eee0b3dfc91ff3c08.camel@redhat.com> References: <20210318184157.700604-1-alobakin@pm.me> <20210318184157.700604-3-alobakin@pm.me> <1ebd301832ff86cc414dd17eee0b3dfc91ff3c08.camel@redhat.com> 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: 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. Seems like more code can be optimized, thanks! > Cheers, > > Paolo Al