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 225E1C43331 for ; Fri, 27 Mar 2020 19:45:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE52C206F6 for ; Fri, 27 Mar 2020 19:45:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727749AbgC0Tpf (ORCPT ); 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