Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2498643pxb; Mon, 18 Jan 2021 21:15:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXPdkUQmXE0jD8w/e0C2OixckYR2FPy1cXk/r2kxiItFkk7jUD8HtzyDjxulNOomUc9yxB X-Received: by 2002:a05:6402:60a:: with SMTP id n10mr1986508edv.230.1611033346907; Mon, 18 Jan 2021 21:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611033346; cv=none; d=google.com; s=arc-20160816; b=nGJTDGHHfTP0wziV0ujcCNU5yRkt9Rw7DpVGFejN903eHDmXnaZhvT8Z9Uc22fy6fk f/9B5GTiqxqk22BeZUnJLcNXDsvluefKWhI7UbvMl87FfzLk7GBqNQrNCAE0Rbhf+t2O kBlPdaS5Uei31mvLoz1q8ji80sJ242YtYMxibpgcKr1dOfoXcq6XOvk8nSYgyMH2j50i Rr69XrxDJ3wxTgCzeCDLO16lJRJsNhvV5XQYahKspVdwRTXONUFXGjc3uCOjrL1f2oNK 6G8P2/LAS7BACimVO/WuwA4fFKGIKkv7CHMdUqbbMLRojqmdehwor+mLi0BmA9oqTPZI v2hQ== 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=TBvMcCRFophojKbj4HPDNicgLhX83rsTjO3WdiWNZwI=; b=skxNNDFLp+qoQ/mR/jtHO7eqRi+46w2jF0/EshD4hTtNrOinT2LZNmGRbQertkeLP7 Kt2L+kWsfZO93HcCxVTeTR4Ga8AlVS5qcuGQ1D61ycNPkApKPKo2RGZ7nigl0clfYXnb DIFcnJzl7mQ0Isetc9rorog6APhPyaT7BO5yQwV3Zlyeu1aSqPnP2Hk7uy9kAEIzPkqT EAPJQmwAjZJDO3W3jxbydnS+8ujkbs5g1zigGSh8POIVsvqA4yDmgD50Cp3SAyibvosw Ry1RQzJwsxbCYoIeK0zk2BTo9GfjOJMhzrTKO++dXw/GdB3XwJycSaF6GU8F3niZRL7Y 68UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=QoISxSQz; 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 t11si8752901edc.101.2021.01.18.21.15.24; Mon, 18 Jan 2021 21:15:46 -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=QoISxSQz; 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 S2390428AbhARTiO (ORCPT + 99 others); Mon, 18 Jan 2021 14:38:14 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:49387 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436996AbhARTcu (ORCPT ); Mon, 18 Jan 2021 14:32:50 -0500 Date: Mon, 18 Jan 2021 19:31:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1610998326; bh=TBvMcCRFophojKbj4HPDNicgLhX83rsTjO3WdiWNZwI=; h=Date:To:From:Cc:Reply-To:Subject:From; b=QoISxSQzWyFAKHASLuhD2GUlrYXLVy7QuLwIwMLbrCz7gROMjEu9AXp7wffDTqkY0 loPF8UrT/4TwBoDnjcpNeMpFJFz6u8zgEO74w8BQy5RFGOZmpkzvW3QnjNF8sk5a4d NJHSLqcheEhscz89CdQ09jdVIDviCOH0RJibPcaB8Vp50eiIVp2Zt9R/GLYob8tBaN nfNoA1RyKEOK8UmbkBvrknvP1DGlHxSFm5YlOKLbqi0PRvy7cEGp39CjHIYLjrxmBi jpIJYxlF77AigXZesQW5C11fkVnVMp5jbnbKdu9FFAtWqrPUFn0pMY+h+ch9+H2BSp QVVD6qYobf/gw== 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 net-next 0/2] udp: allow forwarding of plain (non-fraglisted) UDP GRO packets Message-ID: <20210118193122.87271-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, primarily for forwarding. To not change the current datapath, this is performed only when the new netdev feature is enabled via Ethtool. Prior to this point, only fraglisted UDP GRO was available. 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 Alexander Lobakin (2): net: introduce UDP GRO netdev feature 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 | 16 +++++++++++----- 3 files changed, 15 insertions(+), 6 deletions(-) --=20 2.30.0