Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2825207ybb; Fri, 27 Mar 2020 12:46:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvfQ2eqCkOAHFzd5Ux9zS9qZygadnd75Y6r6hdM1dqk7xIfTpuhdSiPlxPEWQs/m7JE87mS X-Received: by 2002:a05:6830:91:: with SMTP id a17mr259819oto.240.1585338416828; Fri, 27 Mar 2020 12:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585338416; cv=none; d=google.com; s=arc-20160816; b=O3zS6t6D2klYfmiUAcKfazL5nCCtTA62fEaTrL3Iu+RkZAdT1p1JYWzAJ/RE1RCPe9 kA+G/xb5VSCFq8TYL00Q5DvPqgtSl+u6Mni+kwEWamiX5LeihRPHBdYOZASarXh0FfBI j2OpBZjNekTPGcOR47oKolyqJo7ZjaFdGcuvAsDLSyeKT9KeqiQQzBq/HnHxxjUa1Nqy kgFbG16I+0927G/yDGuCM3qi/0zyKamhoV4KdRaXwHXQN8+WO9ansPkX4cyzhI0+TE/X RLJvM/ZYX61QBUNN89abW3YmvBk5sD1Cd/9ndTGihGD1YbgAAyh7wpf51Yj1ZmulD+nn 91cg== 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=oyM2ASqN3Dbo6ZNUs/gt+NAh819I15GTeFH+NKmlfXs=; b=UNfIPcDZ7PemVe3kDbiDXSDuCsiXZqfVbvW33coAeA+VUndi5uhPGqF+AOcilCkb3v Nq8Wihj0sHQW6Ua/lVlyEvd6d3K/a/QJlgDgS295vie9ZiE8vcdjUNcvDxODzFN8eDCy zEgVtIZ9G3LG0rpVucR4vht3Uv6626P1dtHeSYKG0FtCP64KKeM2GoVU+8CTZlXBhyLW P2COfHwp/1xUvDLNI3M0JR+zYh9nIh73F1PkdoANUz3MmiSrmbA6Ycd8qqIYXmOMo4T8 7sTlYB2lFFpIRmgyz/M/CwMPRgRQL5gZqCL7kGO2VNbvRaZSIjDX8SCvg+b48r82wplz R36Q== 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 4si2856207otu.74.2020.03.27.12.46.42; Fri, 27 Mar 2020 12:46:56 -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 S1727733AbgC0Tpf (ORCPT + 99 others); Fri, 27 Mar 2020 15:45:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:33376 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbgC0Tpe (ORCPT ); Fri, 27 Mar 2020 15:45:34 -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 F23D8AE2A; Fri, 27 Mar 2020 19:45:32 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id A4F3CE009C; Fri, 27 Mar 2020 20:45:32 +0100 (CET) Date: Fri, 27 Mar 2020 20:45:32 +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 12/12] ethtool: provide timestamping information with TIMESTAMP_GET request Message-ID: <20200327194532.GJ31519@unicorn.suse.cz> References: <5a3af8d892cafe9d9a2dc367e9ae463691261305.1585316159.git.mkubecek@suse.cz> <20200327185613.GB28023@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200327185613.GB28023@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:56:13AM -0700, Richard Cochran wrote: > On Fri, Mar 27, 2020 at 03:08:17PM +0100, Michal Kubecek wrote: > > +/* TIMESTAMP */ > > + > > +enum { > > + ETHTOOL_A_TIMESTAMP_UNSPEC, > > I suggest using ETHTOOL_A_TSINFO_ throughout. After all, this API > does not provide time stamps, and we want to avoid confusion. I'll send v3 with *_TSINFO_*, "onestep-sync" and "onestep-p2p". Michal > > + ETHTOOL_A_TIMESTAMP_HEADER, /* nest - _A_HEADER_* */ > > + ETHTOOL_A_TIMESTAMP_TIMESTAMPING, /* bitset */ > > + ETHTOOL_A_TIMESTAMP_TX_TYPES, /* bitset */ > > + ETHTOOL_A_TIMESTAMP_RX_FILTERS, /* bitset */ > > + ETHTOOL_A_TIMESTAMP_PHC_INDEX, /* u32 */ > > + > > + /* add new constants above here */ > > + __ETHTOOL_A_TIMESTAMP_CNT, > > + ETHTOOL_A_TIMESTAMP_MAX = (__ETHTOOL_A_TIMESTAMP_CNT - 1) > > +}; > > Acked-by: Richard Cochran