Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp510615pxk; Wed, 2 Sep 2020 07:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPZvohRaJ3f4B7x+bmtjq1N/Wl49v5Y0l8/9zed+hTwZ9LQ5Yfb92QWQET0UNrgNugwGPj X-Received: by 2002:a17:906:bb06:: with SMTP id jz6mr287981ejb.275.1599057495266; Wed, 02 Sep 2020 07:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599057495; cv=none; d=google.com; s=arc-20160816; b=TV1UzDwta9Zvy5vR8dniUukIdGxYe0yiYHZ1fLvRISQ4laWTcACpFtjl8jNRmJj8Fr iap/S9vd+eIhxoQ8rPYc2f1AT2GziTSm3J6T2N1dhhtdx4wDpES8IWJcS4ZVeDZfsWWm oQZUYRKj9Q3+Co/LfV4qyaUcC1SuYe2NCee/ysSmIhxnnoG4KXepj7FPDocPh0nNifbg oPev2Z4NoHite1uwmyMRjDIVq8SbKYnAsfQ/EFOsXEwu0NCesit4FLXRkwYgPGu+nDvq w4Uh/XOl2vjhJMIVoPafEXj34e6f96/23hC4FM9/ZCm1dgINh94j6xvX2u/+ch2It8b6 0xOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GTgJ8jRvYHfsaCYMvrvH0r8WVjN4146hJg98Kfc6e3E=; b=Be5IikHAa9KJq48r6TbmSEOjedbU0qh37+5TPQWNViyE3ANu8oVhQTbrdAUwR0rMjJ 9XnLWPJqJtfivaL/V9P1i5KEIRXVGRd4PNFlD+fZPM8K0LAjfvIw5pxCz8KWiDRazRvB xpvDHwCmHJboqyrKbOBu7O6iAGpr4yB8eYqrbr62wfbOCE3hf3lPT6ulqyLJujz1DImC W1+DY64ScuFXFKYJpKWfZ7nzOG/ZGK0yrLqYKTkhd7uMtH363Zw6CiVHA9Iv9ZeNgw2T ReR8Mo3/D7HCyYK1LLZg13yoikrGfkYwetbjQn2/fXhWsRji0nmNX11gNXnrM+9oNE8T GinA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GqX9sYhe; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si2821527ejf.666.2020.09.02.07.37.46; Wed, 02 Sep 2020 07:38:15 -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=@gmail.com header.s=20161025 header.b=GqX9sYhe; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728037AbgIBOeI (ORCPT + 99 others); Wed, 2 Sep 2020 10:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbgIBOdz (ORCPT ); Wed, 2 Sep 2020 10:33:55 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D73C061245 for ; Wed, 2 Sep 2020 07:33:55 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id t189so1260079vka.10 for ; Wed, 02 Sep 2020 07:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GTgJ8jRvYHfsaCYMvrvH0r8WVjN4146hJg98Kfc6e3E=; b=GqX9sYheDnvfIvKTFK/YljPYXr+3kQcZ5oeuEyfjrmPv9ynxsoVZe1l347TGAbC+Rp rEvI0xz61c68O22SRUFr+GZTyhQ+UdS7P+IDlWIamL7aM5WBSJmp8LD3ICvXd6fYhJOj 21cSc2kz+u10AgNpfA9qcMnUMYrAYW86iQI6sUoPi7zjVTcTR2jigazQAZ25eq21E/WF mjDqeDGhHfwiALlh1OkrVcNqZMcpZOqRDelWt04/+Em4OXmFpgWfbFaT1nKFsS6o8CXX F7DQO15/wvL/9NZF7GjQ4HKldIVHxa7y2XhS3m6tk3zyNHM3vlL5gkmrgOhY1ubPQYu4 nKHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GTgJ8jRvYHfsaCYMvrvH0r8WVjN4146hJg98Kfc6e3E=; b=hXl5Stm3EiJL38/xOuhE2l1zpfEJb4o9zUYhS0l8S+4cHbYmJVSO/R+uA77/YDnJaS uGvsCJXQEchJvjNqOuNk/FFC6n5FQ3fTES8iTai/kjIezmTK4RgrYl3emRntPEtOP3aj W0oKN3Q30gKVg+zZlVu8ukKqE9jm8kl6NX1gH9pjSIvAeG8kuTfm3cbTc/dF58iZjVAi pFlHYLBqudq22iJ+7be95gULIDD/Ek2j6LRCgUhPYzVyCwDlc6K7cwYxun3dQ0bPyITP /Layd8YbxLoLGUlZ9/L2vlqVgJVnVQfxL2FpFFbx5AH2YsW0+oPEQzY3YSYtooVKRI7c VG+Q== X-Gm-Message-State: AOAM532Eiw7E3gob8Z0Icl1LiB1Mg17h2Q54PzMgk8deG4s3BUSgNMYZ VtW+E7DppQ7JcEQ8SItEcBz6+/y4MHfUhw== X-Received: by 2002:a1f:2444:: with SMTP id k65mr5461792vkk.33.1599057233315; Wed, 02 Sep 2020 07:33:53 -0700 (PDT) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com. [209.85.222.48]) by smtp.gmail.com with ESMTPSA id h27sm791621vko.38.2020.09.02.07.33.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 07:33:52 -0700 (PDT) Received: by mail-ua1-f48.google.com with SMTP id g16so1156714uan.5 for ; Wed, 02 Sep 2020 07:33:51 -0700 (PDT) X-Received: by 2002:a9f:2237:: with SMTP id 52mr1270900uad.141.1599057231345; Wed, 02 Sep 2020 07:33:51 -0700 (PDT) MIME-Version: 1.0 References: <1599048911-7923-1-git-send-email-tanhuazhong@huawei.com> In-Reply-To: <1599048911-7923-1-git-send-email-tanhuazhong@huawei.com> From: Willem de Bruijn Date: Wed, 2 Sep 2020 16:33:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC net-next] udp: add a GSO type for UDPv6 To: Huazhong Tan Cc: David Miller , Network Development , linux-kernel , salil.mehta@huawei.com, yisen.zhuang@huawei.com, linuxarm@huawei.com, Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 2, 2020 at 2:18 PM Huazhong Tan wrote: > > In some cases, for UDP GSO, UDPv4 and UDPv6 need to be handled > separately, for example, checksum offload, so add new GSO type > SKB_GSO_UDPV6_L4 for UDPv6, and the old SKB_GSO_UDP_L4 stands > for UDPv4. This is in preparation for hardware you have that actually cares about this distinction, I guess? > diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h > index 2cc3cf8..b7c1a76 100644 > --- a/include/linux/netdev_features.h > +++ b/include/linux/netdev_features.h > @@ -54,6 +54,7 @@ enum { > NETIF_F_GSO_UDP_BIT, /* ... UFO, deprecated except tuntap */ > NETIF_F_GSO_UDP_L4_BIT, /* ... UDP payload GSO (not UFO) */ > NETIF_F_GSO_FRAGLIST_BIT, /* ... Fraglist GSO */ > + NETIF_F_GSO_UDPV6_L4_BIT, /* ... UDPv6 payload GSO (not UFO) */ > /**/NETIF_F_GSO_LAST = /* last bit, see GSO_MASK */ > NETIF_F_GSO_FRAGLIST_BIT, Need to update NETIF_F_GSO_LAST then, too.