Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp177754pxk; Wed, 2 Sep 2020 18:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym4Rhf8Or+Tr5O29jAq2FawI/zAjxhinzdd+frcoSI69u2UONUQh+BxgrMaEEiiGba6V0o X-Received: by 2002:a17:906:7fcc:: with SMTP id r12mr958179ejs.360.1599096641649; Wed, 02 Sep 2020 18:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599096641; cv=none; d=google.com; s=arc-20160816; b=ro39HgAwk5r99U4mJW8y2H5KCcwpurm/M9vzvMaSwfeJri5186uBYSukhdDP9h6zxf l6WUTV3v6bRSnZ6QeoqwE3PNoNuJSOBuEt5DzVLiOkk+F85wxiXd1awFlbgbPA9MRmqe mlp7uor0rsOuvVVW91eot1G+9taUvof+8ui+rRDWpGuk0CZcJWRPNBj/i5CJGnP8YCtn Nkee+D6JYbSDFY37XR8i0JWTpskvrVV4N95toOfWCwRot5OrBrmHCvrsf/j6rmfiyDTN RCnajmUve4pCax/0yFmDa3Quw0O1z4ZBWkR73/LB4p77AkRbwkGfgOIr8s4QXrfU199z pqpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fgE5GYDZZKXLV+o/iHo+bSTs04hBfbJz8WRAKs7jMs0=; b=H2yD2IgimiOCtigzW4bVh2BhcCIq5iR5cfrBjwbC9wJlILkGSl8ZfblBfBFaslUfL8 NiwxJkm04a25xeifF9iFZ6HIIBvui953c2FvaP6/C4DEcqaAoAvfSPyRhSh1NIkL8y3s 9uXj82SeqvmAMJQCP0nDmBklpQ1eyxkspxk9CBXWFtPx+EyVtuaGuE5R5sMyiu7cBy6u FIKpGVNj6U4rebSc8eIraQ24tYIgDTbBth+F9tYgo4WN7+srgRpvDs312vM3CVkXY9bp lQxf2ycX1dTGpPpskibGoVOFPYvslfXmcfO9fjPwREIGSVtyVqVuMc4ilb3cqNU4bqH9 aHwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si710083edb.467.2020.09.02.18.30.19; Wed, 02 Sep 2020 18:30:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727935AbgICBZs (ORCPT + 99 others); Wed, 2 Sep 2020 21:25:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51204 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727037AbgICBZs (ORCPT ); Wed, 2 Sep 2020 21:25:48 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9F863FB4BAF801B71375; Thu, 3 Sep 2020 09:25:46 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Sep 2020 09:25:40 +0800 Subject: Re: [RFC net-next] udp: add a GSO type for UDPv6 To: Willem de Bruijn CC: David Miller , Network Development , linux-kernel , , , , Jakub Kicinski References: <1599048911-7923-1-git-send-email-tanhuazhong@huawei.com> From: tanhuazhong Message-ID: Date: Thu, 3 Sep 2020 09:25:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/9/2 22:33, Willem de Bruijn wrote: > 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? > it is mainly for separating checksum offload of IPv4 and IPv6 right now. with this patch, the user can switch checksum offload of IPv4 and not affect IPv6's, vice versa. > >> 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. ok, thanks. > >