Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2646267pxx; Sun, 1 Nov 2020 05:20:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5lnIHuY2ssfEzWFYqhhvk84L5aiq4x0tovwWXT5GApF3f0WQ6HSDmFyaTFuq0QZeKbL3b X-Received: by 2002:a17:907:70cb:: with SMTP id yk11mr10965741ejb.122.1604236845706; Sun, 01 Nov 2020 05:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604236845; cv=none; d=google.com; s=arc-20160816; b=E7gm1YylKbvNvB3jIV0DqFTQnyYMVT4fV0GIr2Sv5xjlsRobIEwiRw4dVJA2MNY4g3 p+HpAk7NuDCiNNF6+MMkwy5RAOZ07WIea+SXm7fX7cgDfV9i8NLdDHYPVe106LHHgfYw ZO5/PDQ40ZG3u+XjzfMqLgD3j/EzzPoC3Qqnic0nqePhFt1BGje8S4SBndC4k8QNFLMb /6FWFsk7dKK1K8TYN0FFTIGsC1iz7QVaR9UQb4eHrLSdVVphi4NEwJAdNOMiKAuAw2M2 LjtFPfuh1DAP6PwF88OcPdlznnWN1vBBOyAOs+mCjvtAJY1aEfTEwiV9jSYdGP6EtduX 9EYw== 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=MWc4+WdzEb9vlqPuIRHRa+VsUCStsNTEe71zwQOpcjU=; b=Z14k8prO2suYQXGCNj/FmYgXMJZqiRyk1ti8wKC+WGx/zopwsH6vNWBYAV/d27LXg2 kbuZQuGQ8TCbWp+jmNDrThhEH+tEiipRAFe6Q3ZojdIIjppaB8l9/7QvETNpxu/sF/T2 lb1a8kRScxYzxtiZMeLRUQIhElVGXvMFlj0TFBaUIQfbEB2QcraMXQxhhZdzY4Q8xMuW 6SwD1DA3bqNjjR435Kwui2ftB1acecWvdsQZLLwnsX6DDyQRKd1DjO7ZhrYnJl1M0du4 TvPJiE31VhJu0saJfqTooITMMRGWIjZxxtpfKpH1471p5Xnlrbik0BZ9yDUkn8+WqgAO Bx0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=VxKzvk7g; 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 s18si9843673eji.706.2020.11.01.05.20.22; Sun, 01 Nov 2020 05:20:45 -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=VxKzvk7g; 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 S1726736AbgKANRQ (ORCPT + 99 others); Sun, 1 Nov 2020 08:17:16 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:51415 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbgKANRP (ORCPT ); Sun, 1 Nov 2020 08:17:15 -0500 X-Greylist: delayed 96338 seconds by postgrey-1.27 at vger.kernel.org; Sun, 01 Nov 2020 08:17:14 EST Date: Sun, 01 Nov 2020 13:17:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1604236633; bh=MWc4+WdzEb9vlqPuIRHRa+VsUCStsNTEe71zwQOpcjU=; h=Date:To:From:Cc:Reply-To:Subject:From; b=VxKzvk7gAjSJqOu2Wge85kOLmXKUYEXt8jrBseQJLBDp9JOQPWNP5Zy13nx9M83YL 3+3pDAmGDff+TQj1g+WJqIj6JTRPpvw1rLcvAmEM+Cyak1mf8Hx1bYKbwpMSmzky8h lzJqxo7gLA0WNU0HJsnrdNvEK4laSgcqZMDq7s+KQk9gTI02BSbJOS76PzItFBiHb1 9kEALIFQ2panwhC1CDnbn8wMgzysiuktNM78Zyqvehi1oI+U734b8djgt6FrO43T+8 zGEOomy5cWLmPQNdTnxbpkAp1S99rLJBZbyVvLpGPr1kkDP72sNWlPpgFQKmFBxJoL +27NGdOU/JGfA== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Jiri Pirko , Steffen Klassert , Willem de Bruijn , Alexander Lobakin , Miaohe Lin , Antoine Tenart , Mauro Carvalho Chehab , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 net-next 1/2] net: add GSO UDP L4 and GSO fraglists to the list of software-backed types Message-ID: 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 Commit e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.") and commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") made UDP L4 and fraglisted GRO/GSO fully supported by the software fallback mode. We can safely add them to NETIF_F_GSO_SOFTWARE to allow logical/virtual netdevs to forward these types of skbs up to the real drivers. Signed-off-by: Alexander Lobakin --- include/linux/netdev_features.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/netdev_features.h b/include/linux/netdev_feature= s.h index 0b17c4322b09..934de56644e7 100644 --- a/include/linux/netdev_features.h +++ b/include/linux/netdev_features.h @@ -207,8 +207,8 @@ static inline int find_next_netdev_feature(u64 feature,= unsigned long start) =09=09=09=09 NETIF_F_FSO) =20 /* List of features with software fallbacks. */ -#define NETIF_F_GSO_SOFTWARE=09(NETIF_F_ALL_TSO | \ -=09=09=09=09 NETIF_F_GSO_SCTP) +#define NETIF_F_GSO_SOFTWARE=09(NETIF_F_ALL_TSO | NETIF_F_GSO_SCTP |=09 = \ +=09=09=09=09 NETIF_F_GSO_UDP_L4 | NETIF_F_GSO_FRAGLIST) =20 /* * If one device supports one of these features, then enable them --=20 2.29.2