Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1258370pxb; Fri, 22 Jan 2021 10:46:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJza9RpxuVRbLQCu7jbKT9lgUgi8zZxFdgdhfdjuZizF4cap/q2JKWdU/mjJvg+kbpLxsjbM X-Received: by 2002:a50:a684:: with SMTP id e4mr810633edc.148.1611341166594; Fri, 22 Jan 2021 10:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611341166; cv=none; d=google.com; s=arc-20160816; b=A6/gP9Q1Jp35u9S1mZxsv9+EY0GhqM8DelAQZypZhakzYMKbyPMTnmlD+uBEeIkmeA mbqJRO/J/Pyzwd669rze6DsGTbrraAwaA9MndDvpy4zIcxyTz1UUj6tC2JBDrl+lxao0 PlV1MAol+PnZYUjucuGpqX92Q7FdnjuuUlJwF6Mcobqz4LRX+QZ6r2m3l2C2KXd5ro6a A5TnqqB+CvE62IEFXvNjMW/BFWJ7GoAWo8uW1hLYmhH9GVx4dnqSbBF9p0SkCJUn5GJm rGQ0dtLe+zHDaXlQ4PV9OimMw+bctHo0PJ3cvCYYFKRolu/WPqlWK/o0G1D8s0oP49Eu FbhA== 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 :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=TsNQKfFUZNXIM9ZUMAeIVxKZu6S8ylpuCSw1nnn8SbM=; b=L9wx4LRgtZJHIMH7pQDgR/F3FYGnstJL+smLRqhMbdls+rIifcjv0hBuHaRdCPKQaN QehUVyytfpUWIJPy5sh0NziK6MlBP/FzRpch+iiQylX1SErxFK88ULnCuYwRrl10SmDS pl3X1VqFe2zYFdpWWtpa5bD0kN5o6En2R7msEBu7GfuCtTnLjDA7I5EkRT+HnPaRRDFL UAizrMUoZuT9vwED3BeRgDA2QWmOKEyZd4p91lOe21+fvA57g2sC1ZxalK9cPw9y0wWJ kUQYnhjhX1KmFYYn8dz6+3Ae6j12OQOH6dLT81W8rdqY5An7xpjbzVPkeNjZIBVQs4yK u2Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=C3KAe5+I; 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 kk2si3294905ejc.735.2021.01.22.10.45.41; Fri, 22 Jan 2021 10:46:06 -0800 (PST) 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=C3KAe5+I; 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 S1730143AbhAVSny (ORCPT + 99 others); Fri, 22 Jan 2021 13:43:54 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:63646 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729722AbhAVSUy (ORCPT ); Fri, 22 Jan 2021 13:20:54 -0500 Date: Fri, 22 Jan 2021 18:19:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1611339579; bh=TsNQKfFUZNXIM9ZUMAeIVxKZu6S8ylpuCSw1nnn8SbM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=C3KAe5+IPr9Wud481J+6zbql8NGCUpZ7QlgtHbd4MDu4q18hobg1Hn2dYteuBla/r pL1joKyGcD2A++AL2EbP87HIn3i7lPxlm3KMH/5Y6jCUtG3V+4j+V00DKk6Y2suI2h HFyiey7g2CNCETwPe5GdoH/8snrIEwfzH/mePfsJP7NM34THNB7keNHeUBo6KGa1+3 KJt4Yb8ber7nthy8I1nwCYSFGNatrLH5dn1/u6M1aEdYoqP2bhyKMMeYDaN8qXKffL JOXBO4IOke3iT3dG+HYtPdJfgob7HzSZygkEnnNlDf52w6o4BLCDBFQN1ORcoi6DPr KNu39ezQYiHSA== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: Hideaki YOSHIFUJI , Willem de Bruijn , Steffen Klassert , Alexander Duyck , Paolo Abeni , Alexander Lobakin , Igor Russkikh , Mauro Carvalho Chehab , Miaohe Lin , Antoine Tenart , Michal Kubecek , Andrew Lunn , Meir Lichtinger , Aya Levin , Florian Fainelli , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v4 net-next 0/2] udp: allow forwarding of plain (non-fraglisted) UDP GRO packets Message-ID: <20210122181909.36340-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 This series allows to form UDP GRO packets in cases without sockets (for forwarding). To not change the current datapath, this is performed only when the new corresponding netdev feature is enabled via Ethtool (and fraglisted GRO is disabled). Prior to this point, only fraglisted UDP GRO was available. Plain UDP GRO shows better forwarding performance when a target NIC is capable of GSO UDP offload. Since v3 [2]: - rename introduced netdev feature to reflect that it targets forwarding and don't touch fraglisted GRO at all (Willem de Bruijn). Since v2 [1]: - convert to a series; - new: add new netdev_feature to explicitly enable/disable UDP GRO when there is no socket, defaults to off (Paolo Abeni). Since v1 [0]: - drop redundant 'if (sk)' check (Alexander Duyck); - add a ref in the commit message to one more commit that was an important step for UDP GRO forwarding. [0] https://lore.kernel.org/netdev/20210112211536.261172-1-alobakin@pm.me [1] https://lore.kernel.org/netdev/20210113103232.4761-1-alobakin@pm.me [2] https://lore.kernel.org/netdev/20210118193122.87271-1-alobakin@pm.me Alexander Lobakin (2): net: introduce a netdev feature for UDP GRO forwarding udp: allow forwarding of plain (non-fraglisted) UDP GRO packets include/linux/netdev_features.h | 4 +++- net/ethtool/common.c | 1 + net/ipv4/udp_offload.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) --=20 2.30.0