From patchwork Mon Jan 18 19:31:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 12028029 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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 BC5DCC433E0 for ; Mon, 18 Jan 2021 19:33:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C3CC22C9E for ; Mon, 18 Jan 2021 19:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394076AbhARTcz (ORCPT ); Mon, 18 Jan 2021 14:32:55 -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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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(-)