Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp201867ybi; Tue, 2 Jul 2019 19:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQVWFD5zTE4l+qBKB1uCGl6tKfqZfCPDdfLlzmeN8e2muYtzvT70ssZcorrMbFhLqWE6FH X-Received: by 2002:a63:ab08:: with SMTP id p8mr16668723pgf.340.1562119610205; Tue, 02 Jul 2019 19:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562119610; cv=none; d=google.com; s=arc-20160816; b=LOPOsDaq7mAK9qlbu1hQRPcyzbhWXXx2LWvDIZdmXR+5xzxos7dkC+mqWVmyCuuo/I apJypU8hN2gN/SsPmix7+3qIw2FJ4bZJBQmcs/LJmOerlwKEKM3+OwTUy8lEPA5P2gIF n65WCHjcqPiof3olOletxhwXjrn0blopW/xUR3fUtwQtIaT29cLqTkqpYyTE72wqHIzx R+H6Hh4LljKJefzSafzcO/9aaquVy2HLB07dZiJop3IX86Od9znRfekd2HBtqFqsqmwP clao8he3HfUEtKA+m7i7kM5g+s5KuHpMKjIY7iUPMW2q+vXBGhqVBRxIbOrIsUxl0CZd rBvw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=D+csHyoXmCSfo36FjRvnFg+jSmMkHBvbr36bQgH7vNk=; b=suqkXjOt94hQcIvd6Van6jd2voWpzTAkGAQWhQsGuq1Tzo8HCP/OBUIm7ubKC+9xkj Wv8MKMad2OhM0k0XQHpWHG/gp3ObNk70ttz3AkdJaaVMLnflvQl3ZeITum6Ox4KXrNkU TWbV7/vJXiqI4djwJJjs91RLVGfauxFJ3nmfz7+FqX2A0KL52JBVTRfO97lQsoGljwto k4DO6SCqf3Juc8lJahxssZd1OTyLAKdPeASbZ77CkvEBpROOBW87aOndccvVQ4+1c7Hk lJ/2DQE9dXvs8YaNXTwSL5V+Re+pdQvxdvQGFQ2Ky7IskcpLIKOoXYqWdQG16MiEbjrk w0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=mSPg9yAu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g185si498807pgc.240.2019.07.02.19.06.34; Tue, 02 Jul 2019 19:06:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=mSPg9yAu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726430AbfGCCE0 (ORCPT + 99 others); Tue, 2 Jul 2019 22:04:26 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:32829 "EHLO mail-qt1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbfGCCE0 (ORCPT ); Tue, 2 Jul 2019 22:04:26 -0400 Received: by mail-qt1-f174.google.com with SMTP id h24so895406qto.0 for ; Tue, 02 Jul 2019 19:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=D+csHyoXmCSfo36FjRvnFg+jSmMkHBvbr36bQgH7vNk=; b=mSPg9yAuCQf0++B9j2eL4h8AxelwNz6s8rBhCtOzR9ETFAzSzwNRwYxfefPE70gqzz klH0aVmx7Jo6j39VTbd7/EzqoGJLfp8wdsYfnl3XufZtCPF2MHesQ1i13AK0GbD5eVYH 2Z7c8hFaBl47V0UVztztD42Y/1BMFlQ9VPhnhZJvggSf6xP9b1N1TnOHITpNOg4ffc8b lxumVSZgbKRhzeU68dP8Lz3vDB9TPvgN48fcHHUx4RZKIKMp5610/N3hMavuxlCAb2CV G0gQkwMjYFYqfel79Qw2ld0wS43k0OOfpAfMSd6UBif906QBiHGjgEDQA8uFEouzjN9e fczg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=D+csHyoXmCSfo36FjRvnFg+jSmMkHBvbr36bQgH7vNk=; b=BU1r8Ub11j6l7NLNvzmmGR1Y3YDT02wgLkKDN+rNlg53D/mAQhw5QaG465Um/eheZ/ E4Vx47T5/qymW7E1AhggdVu+U0w5HzncN9m8UiyNAAz4avW7koe71EODZxnnNst8vmqR ZrBts2i3upIDCV6I2OC5uieWeyNuGtbyZ1Mn8ChMzkXc6LP9DIbA9M+7n1MSFxOu4BBu dRRFE9TZeGPFrYiPIRgz6yAUnQITwLYx2x/py2KB3xSCtMRnseH1R9Kz3tnXdJQ+yFYv U9RVVyU7D9TmS8j77wL4z9gN+i6F/Ge256w3r5OpCVieipO5wrF8A7ZY9dhLO5xvzOfi Rt6w== X-Gm-Message-State: APjAAAUXfU2ObTOdFgYS45/RfxLpPJimSPVPdslkBecdUFBcj8W9Ge6n aJIrI5tROGxDfY4mdvasc7fP3g== X-Received: by 2002:a0c:baa8:: with SMTP id x40mr30028502qvf.168.1562119465176; Tue, 02 Jul 2019 19:04:25 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id t2sm433654qth.33.2019.07.02.19.04.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 19:04:25 -0700 (PDT) Date: Tue, 2 Jul 2019 19:04:19 -0700 From: Jakub Kicinski To: Michal Kubecek Cc: David Miller , netdev@vger.kernel.org, Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Stephen Hemminger , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 11/15] ethtool: provide link mode names as a string set Message-ID: <20190702190419.1cb8a189@cakuba.netronome.com> In-Reply-To: <1e1bf53de26780ecc0e448aa07dc429ef590798a.1562067622.git.mkubecek@suse.cz> References: <1e1bf53de26780ecc0e448aa07dc429ef590798a.1562067622.git.mkubecek@suse.cz> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Jul 2019 13:50:34 +0200 (CEST), Michal Kubecek wrote: > +const char *const link_mode_names[] = { > + __DEFINE_LINK_MODE_NAME(10, T, Half), > + __DEFINE_LINK_MODE_NAME(10, T, Full), > + __DEFINE_LINK_MODE_NAME(100, T, Half), > + __DEFINE_LINK_MODE_NAME(100, T, Full), > + __DEFINE_LINK_MODE_NAME(1000, T, Half), > + __DEFINE_LINK_MODE_NAME(1000, T, Full), > + __DEFINE_SPECIAL_MODE_NAME(Autoneg, "Autoneg"), > + __DEFINE_SPECIAL_MODE_NAME(TP, "TP"), > + __DEFINE_SPECIAL_MODE_NAME(AUI, "AUI"), > + __DEFINE_SPECIAL_MODE_NAME(MII, "MII"), > + __DEFINE_SPECIAL_MODE_NAME(FIBRE, "FIBRE"), > + __DEFINE_SPECIAL_MODE_NAME(BNC, "BNC"), > + __DEFINE_LINK_MODE_NAME(10000, T, Full), > + __DEFINE_SPECIAL_MODE_NAME(Pause, "Pause"), > + __DEFINE_SPECIAL_MODE_NAME(Asym_Pause, "Asym_Pause"), > + __DEFINE_LINK_MODE_NAME(2500, X, Full), > + __DEFINE_SPECIAL_MODE_NAME(Backplane, "Backplane"), > + __DEFINE_LINK_MODE_NAME(1000, KX, Full), ... > + __DEFINE_LINK_MODE_NAME(5000, T, Full), > + __DEFINE_SPECIAL_MODE_NAME(FEC_NONE, "None"), > + __DEFINE_SPECIAL_MODE_NAME(FEC_RS, "RS"), > + __DEFINE_SPECIAL_MODE_NAME(FEC_BASER, "BASER"), Why are port types and FEC params among link mode strings? > + __DEFINE_LINK_MODE_NAME(50000, KR, Full), ... > + __DEFINE_LINK_MODE_NAME(1000, T1, Full), > +};