From patchwork Sun Jun 21 09:55:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 217446 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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=no 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 9A5DAC433E0 for ; Sun, 21 Jun 2020 09:56:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77EE222248 for ; Sun, 21 Jun 2020 09:56:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="SHcM/akZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729719AbgFUJ4B (ORCPT ); Sun, 21 Jun 2020 05:56:01 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:59153 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729704AbgFUJ4A (ORCPT ); Sun, 21 Jun 2020 05:56:00 -0400 Date: Sun, 21 Jun 2020 09:55:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592733358; bh=4x5eYCNzPCn1hGiRUA0mGdrzZBJAKSMD6fuK9bbi8gs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=SHcM/akZ6jU8Rc1wYNuBrFencBhtyVevqKROnLYW9gNudfjSmM99t2J+8dcP5c3/S 38V+Whpxl+pHeNwhwo5hhvnHy24o2/a+2BIcl/racfWFjKgrtuKfAhCKwCDXVA4eOT g52PBCXWktyJawCTKLu9yao7G7Wo+ASzFPdkibsxd4RYsCgALD2Mgw5ZkyGXOjxqJX pa3DfU5wT0kAi6Qn5pWrrUOA06DY8DyI9JGD4p8K0AcJq4Z4DobZyzR1YjV/ede+hB AT5XtwPZZYWw9Mimf3gLP8/NsYo626Al49CrB7IPoH0xrVv27PTI62OHbQrAwJQIKM kxTezvumuiCEw== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: Michal Kubecek , Florian Fainelli , Andrew Lunn , Jiri Pirko , Antoine Tenart , Steffen Klassert , Aya Levin , Tom Herbert , Alexander Lobakin , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 net 0/3] net: ethtool: netdev_features_strings[] cleanup Message-ID: MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This little series adds the last forgotten feature string for NETIF_F_GSO_TUNNEL_REMCSUM and attempts to prevent such losses in future. Patches 2-3 seem more like net-next candidates rather than net-fixes, but for me it seems a bit more suitable to pull it during "quiet" RC windows, so any new related code could start from this base. I was thinking about some kind of static assertion to have an early prevention mechanism for this, but the existing of 2 intended holes (former NO_CSUM and UFO) makes this problematic, at least at first sight. v2: - fix the "Fixes:" tag in the first patch; - no functional changes. Alexander Lobakin (3): net: ethtool: add missing string for NETIF_F_GSO_TUNNEL_REMCSUM net: ethtool: fix indentation of netdev_features_strings net: ethtool: sync netdev_features_strings order with enum netdev_features net/ethtool/common.c | 133 ++++++++++++++++++++++++------------------- 1 file changed, 74 insertions(+), 59 deletions(-)