Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp812428ybt; Wed, 17 Jun 2020 14:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdF1ogXrlcG4StqTIcFEnlrsplE9Lgy3C05pxLGSvPRXlZFG/7h97K29zv0m82Y4K7TEoF X-Received: by 2002:a17:906:470b:: with SMTP id y11mr1192095ejq.182.1592430704332; Wed, 17 Jun 2020 14:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592430704; cv=none; d=google.com; s=arc-20160816; b=KdqDLyEqd1bMgGbkXMxVQe9itSWGK6Wi/ZUZ/oONCwO/gOPIg38Vx/1q2PIquGgEeA quqFMRBYJAj9gbmCWrbUOs3BHFSCpKLB33gs2nn2kHZGouWQS+ZTi6xqqyMbrM51xXgd RC/Rcm2u7uuqc5SN65SjK5OLjA4BIIoSJSDaTAlu9ow2CWjITlQ5H9x167Y2m8pXcVw3 Fu46KV3XX4JN1XxE6Rkpe6tQhzRQnSnhglMSNGWvqCY6LZEk2L5h3TQS19olLL2V3uUi tg3d+OvrWK15Oywkq59lIlZlg5VJNiT9+69XfzbQ1X1Y8EE92N+cnROIRm9YPNzhn0qE YABg== 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:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=BHRlybEla9RSsqJCF1ZBfvNg6UHwGh4px8zN0yh041Y=; b=wiWwyWWhQDMtrKySzG7naBDcCvlWZo81RB2OXSZjyGlBR5Gye60luBk/C5HUDqIuU7 jNSdDK2vts5aQlGGU7Twupftt5mOCkTfnu2Vlq3U4iIX/Vi1YwvZSuYrStHvAHkRqHkj gigGO6/CVLvl8z2WLWacVYPlS//QWsXH9AefwLxA0jritDastcf7F7mYNOKQ9+t5PGj6 vUcwICeVW6taurFwYZ7ehb470ayXWfSN5uXczO2B8Euk8ID+6Ll2YBzGLNM1eyiqsrRJ eB4eGTGfsO9XMnBD9Aj6zqgIdxcmF3nv181CmN972PYtFAhuxK+romtwkVbBufVvaq63 VKhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=R6qNHWtP; 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 u21si751126edq.299.2020.06.17.14.51.22; Wed, 17 Jun 2020 14:51:44 -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=@pm.me header.s=protonmail header.b=R6qNHWtP; 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 S1727065AbgFQVst (ORCPT + 99 others); Wed, 17 Jun 2020 17:48:49 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:33616 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726758AbgFQVst (ORCPT ); Wed, 17 Jun 2020 17:48:49 -0400 X-Greylist: delayed 596 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Jun 2020 17:48:48 EDT Date: Wed, 17 Jun 2020 21:38:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592429930; bh=BHRlybEla9RSsqJCF1ZBfvNg6UHwGh4px8zN0yh041Y=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=R6qNHWtP0rxd8v7/aRGEPRJvP4R8ESGedaF+i3uFy2jPt8eiRBw92z6JyEGMzgGPZ qH2M+gtPZGuDSm+LZs44XjkaF1/muj3+r8yYkDMcHhnD3GFWgzDed/ifFPgRYzDn0s D7GZYev0c/TWWUneeOtrfIGJepec04eaHjlowIvOtxikryLjtMEOGAzx5d9V+LrjjA In1bqJCgrXLBAb6lfnbqyJOY7u0YKOS8PHkMGLvVQ7j9Y5GgxFDPJ2tRjH/cFaZJtl pYh+mofJ9e2rN0GqJsdp4dn+WnhFDEjHruogaPlqN9sGcEjmmILJKqoJhAs95obRaO a39S5301L53Qg== To: Michal Kubecek From: Alexander Lobakin Cc: "David S. Miller" , Jakub Kicinski , Andrew Lunn , Florian Fainelli , Richard Cochran , Antoine Tenart , Aya Levin , Steffen Klassert , Willem de Bruijn , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: Alexander Lobakin Subject: Re: [PATCH resend net] net: ethtool: add missing NETIF_F_GSO_FRAGLIST feature string Message-ID: <5u_BsHq6Jk0q09sGWsVKfvv0NRa5kBHjxdOr9VpNknRnxHpbRO_80JSHl_AWS-C_wBS7B15KetRleLaluF8tOysTNYyLVRUG4BRFQZxnhXw=@pm.me> In-Reply-To: <20200617211844.kupsyijuurjpb5kd@lion.mk-sys.cz> References: <9oPfKdiVuoDf251VBJXgNs-Hv-HWPnIJk52x-SQc1frfg8QSf9z3rCL-CBSafkp9SO0CjNzU8QvUv9Abe4SvoUpejeob9OImDPbflzRC-0Y=@pm.me> <20200617211844.kupsyijuurjpb5kd@lion.mk-sys.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.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 mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michal, On Thursday, 18 June 2020, 0:18, Michal Kubecek wrote: > On Wed, Jun 17, 2020 at 08:42:47PM +0000, Alexander Lobakin wrote: > > > Commit 3b33583265ed ("net: Add fraglist GRO/GSO feature flags") missed > > an entry for NETIF_F_GSO_FRAGLIST in netdev_features_strings array. As > > a result, fraglist GSO feature is not shown in 'ethtool -k' output and > > can't be toggled on/off. > > The fix is trivial. > > > > Fixes: 3b33583265ed ("net: Add fraglist GRO/GSO feature flags") > > Signed-off-by: Alexander Lobakin alobakin@pm.me > > > > -----------------------------------------------------------------------= ----------------------------------------- > > > > net/ethtool/common.c | 1 + > > 1 file changed, 1 insertion(+) > > diff --git a/net/ethtool/common.c b/net/ethtool/common.c > > index 423e640e3876..47f63526818e 100644 > > --- a/net/ethtool/common.c > > +++ b/net/ethtool/common.c > > @@ -43,6 +43,7 @@ const char netdev_features_strings[NETDEV_FEATURE_COU= NT][ETH_GSTRING_LEN] =3D { > > [NETIF_F_GSO_SCTP_BIT] =3D "tx-sctp-segmentation", > > [NETIF_F_GSO_ESP_BIT] =3D "tx-esp-segmentation", > > [NETIF_F_GSO_UDP_L4_BIT] =3D "tx-udp-segmentation", > > > > - [NETIF_F_GSO_FRAGLIST_BIT] =3D "tx-gso-list", > > [NETIF_F_FCOE_CRC_BIT] =3D "tx-checksum-fcoe-crc", > > [NETIF_F_SCTP_CRC_BIT] =3D "tx-checksum-sctp", > > > > Reviewed-by: Michal Kubecekmkubecek@suse.cz Thanks! > AFAICS the name for NETIF_F_GSO_TUNNEL_REMCSUM_BIT is also missing but > IMHO it will be better to fix that by a separate patch with its own > Fixes tag. Oh, nice catch! I'll make a separate for this one. I also wanted to add any sort of static_assert() / BUILD_BUG_ON() to prevent such misses, but don't see any easy pattern to check for now, as netdev_features_strings[] is always NETDEV_FEATURE_COUNT-sized. > Michal