Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2823490ybb; Fri, 27 Mar 2020 12:44:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvBN/a8F+BSoipxPZwHeDZhSejBGu4QPMz5ana8He+YNevDXguMRLBpqtxTnvOL2ymWJnFc X-Received: by 2002:aca:4046:: with SMTP id n67mr388418oia.156.1585338295998; Fri, 27 Mar 2020 12:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585338295; cv=none; d=google.com; s=arc-20160816; b=uJH8nbgvWhQUfiirW7g+CGJaLskX/3COGC+FzEHag0yQeqplSPvhN1TnA6WMC+2Xpl v6gRnpdkaACCK/G9/FKfQOH6WiyjVc8kTufMxO/hkCa687hzNTw3ggr/mp7e+8AHM8RF 5kcq4hUVF8KhpgkgP/wodIJ7xgl0lfuTkARjJ55PC2hy+9Rm6eddswpXfA225zcEX3T4 XWBjnb852alwqr++wCDwWBkuopbt1WxVmJf9XUMGXIltRRDYpybIDxL/CcAIhp5UR0KM UGIfmOutnYLc/QI6eTbLl/v75T4keDzr7w87wKhBAl4vVidA3EJ3PffroDOKjCqwEGp5 UHqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jwl1gfbV9CWUmckyzn9P3cvs18OIs+zd+68NjLd0xeU=; b=MIJXOnJjEyl7tfiJrGCt2ibzAvjXApZrNd0LviqqGB+qauBj34eFl+GOewkcQYiq0k ercpyuHeUrxFQVcgKDA9xliFJcJb1NPgSn/6xtg1ncX2F1CU0b6GZ+gUyfhM8VSVsBVJ jcehxXZEJMBtz1mK8d5cn+i+MX0+SFis3XXeAr3oYwD/3bVL9lU+zts6XzG/ROr3KTHj 5D5i/Z6JhRbRJfKmDhAWRIzC8QdFQK2gjfunIJQ51/+2QWSaGoT1ddVWJ8xX8YWDoxGz tfg1b/PGnIjQSEdU07xVMvg+T2G1OCU0IKZ0Z4nBDkGt9EtQeftRDoNPKMKxCLPJPxcc XLkw== ARC-Authentication-Results: i=1; mx.google.com; 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 a12si1512880otf.272.2020.03.27.12.44.42; Fri, 27 Mar 2020 12:44:55 -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; 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 S1727708AbgC0ToB (ORCPT + 99 others); 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