From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 101E5C43331 for ; Fri, 27 Mar 2020 19:44:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE819206E6 for ; Fri, 27 Mar 2020 19:44:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbgC0ToB (ORCPT ); Fri, 27 Mar 2020 15:44:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:60384 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgC0ToA (ORCPT ); Fri, 27 Mar 2020 15:44:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id AB9D8B241; Fri, 27 Mar 2020 19:43:58 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id E37B2E009C; Fri, 27 Mar 2020 20:43:54 +0100 (CET) Date: Fri, 27 Mar 2020 20:43:54 +0100 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Richard Cochran , David Miller , Jakub Kicinski , Jiri Pirko , Andrew Lunn , Florian Fainelli , John Linville , Johannes Berg , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 11/12] ethtool: add timestamping related string sets Message-ID: <20200327194354.GI31519@unicorn.suse.cz> References: <9115b20867b6914eec70a58f3ba3b9deef4eb2b0.1585316159.git.mkubecek@suse.cz> <20200327185344.GA28023@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200327185344.GA28023@localhost> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2020 at 11:53:44AM -0700, Richard Cochran wrote: > On Fri, Mar 27, 2020 at 03:08:12PM +0100, Michal Kubecek wrote: > > +const char ts_tx_type_names[][ETH_GSTRING_LEN] = { > > + [HWTSTAMP_TX_OFF] = "off", > > + [HWTSTAMP_TX_ON] = "on", > > + [HWTSTAMP_TX_ONESTEP_SYNC] = "one-step-sync", > > + [HWTSTAMP_TX_ONESTEP_P2P] = "one-step-p2p", > > +}; > > Suggest "onestep-sync" and "onestep-p2p". I copied "one-step-sync" from (userspace) ethtool but I guess we don't have to be 100% backward compatible. It would match the constant name better without dash. Michal > Acked-by: Richard Cochran