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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D34AC433EF for ; Sun, 7 Nov 2021 13:44:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 143F76137A for ; Sun, 7 Nov 2021 13:44:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbhKGNrk (ORCPT ); Sun, 7 Nov 2021 08:47:40 -0500 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:37591 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbhKGNrj (ORCPT ); Sun, 7 Nov 2021 08:47:39 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 623235800BC; Sun, 7 Nov 2021 08:44:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 07 Nov 2021 08:44:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=YYBzFB LaqRjypaCTOnoGZ+5BHWOftMjIYoQeVeLxb5Y=; b=HjB4hVxvEaAvjjqDPcyJIa 5QrURh0Fua3tVbL77gFzPYJl4pH6s2U9GliabrhOxkp2y5J0FEA96r5VVEdFpkaf ppoJszTvIXgG10O9nBRM5JzZ27P6eouEoZ6eVs894PRykt9mK31nyHiKjP3jknEd rtyHdpVsSsw7MK7o0CnTXABl1uMKr4BLBbn3FT30z1RyOPGvMKUsuyWP05KHyYc7 x94o8mGy0cZ81sVR4UnLv+QjieF/7d318HgJ3EmhqNub5gNR6EvBCY5iDbL3PPIo UG3hWa1Byc7EveD7+mWJhR+tCUXgQRptRkppbXn0RhP09Tjoe6ottP9H9nFByMUw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrthhtvg hrnhepgfevgfevueduueffieffheeifffgjeelvedtteeuteeuffekvefggfdtudfgkeev necuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 7 Nov 2021 08:44:55 -0500 (EST) Date: Sun, 7 Nov 2021 15:44:52 +0200 From: Ido Schimmel To: Maciej Machnikowski Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, richardcochran@gmail.com, abyagowi@fb.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, linux-kselftest@vger.kernel.org, mkubecek@suse.cz, saeed@kernel.org, michael.chan@broadcom.com Subject: Re: [PATCH v2 net-next 2/6] rtnetlink: Add new RTM_GETEECSTATE message to get SyncE status Message-ID: References: <20211105205331.2024623-1-maciej.machnikowski@intel.com> <20211105205331.2024623-3-maciej.machnikowski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105205331.2024623-3-maciej.machnikowski@intel.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Nov 05, 2021 at 09:53:27PM +0100, Maciej Machnikowski wrote: > +/* SyncE section */ > + > +enum if_eec_state { > + IF_EEC_STATE_INVALID = 0, /* state is not valid */ > + IF_EEC_STATE_FREERUN, /* clock is free-running */ > + IF_EEC_STATE_LOCKED, /* clock is locked to the reference, > + * but the holdover memory is not valid > + */ > + IF_EEC_STATE_LOCKED_HO_ACQ, /* clock is locked to the reference > + * and holdover memory is valid > + */ > + IF_EEC_STATE_HOLDOVER, /* clock is in holdover mode */ > +}; > + > +#define EEC_SRC_PORT (1 << 0) /* recovered clock from the port is > + * currently the source for the EEC > + */ Where is this used? Note that the merge window is open and that net-next is closed: http://vger.kernel.org/~davem/net-next.html > + > +struct if_eec_state_msg { > + __u32 ifindex; > +}; > + > +enum { > + IFLA_EEC_UNSPEC, > + IFLA_EEC_STATE, > + IFLA_EEC_SRC_IDX, > + __IFLA_EEC_MAX, > +}; > + > +#define IFLA_EEC_MAX (__IFLA_EEC_MAX - 1)