All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@idosch.org>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [RFC v5 net-next 0/5] Add RTNL interface for SyncE
Date: Wed, 27 Oct 2021 09:50:08 +0300	[thread overview]
Message-ID: <YXj2oKjjobd0ZgBi@shredder> (raw)
In-Reply-To: <20211026173146.1031412-1-maciej.machnikowski@intel.com>

On Tue, Oct 26, 2021 at 07:31:41PM +0200, Maciej Machnikowski wrote:
> Synchronous Ethernet networks use a physical layer clock to syntonize
> the frequency across different network elements.
> 
> Basic SyncE node defined in the ITU-T G.8264 consist of an Ethernet
> Equipment Clock (EEC) and have the ability to recover synchronization
> from the synchronization inputs - either traffic interfaces or external
> frequency sources.
> The EEC can synchronize its frequency (syntonize) to any of those sources.
> It is also able to select synchronization source through priority tables
> and synchronization status messaging. It also provides neccessary
> filtering and holdover capabilities
> 
> This patch series introduces basic interface for reading the Ethernet
> Equipment Clock (EEC) state on a SyncE capable device. This state gives
> information about the source of the syntonization signal (ether my port,
> or any external one) and the state of EEC. This interface is required\
> to implement Synchronization Status Messaging on upper layers.
> 
> v2:
> - removed whitespace changes
> - fix issues reported by test robot
> v3:
> - Changed naming from SyncE to EEC
> - Clarify cover letter and commit message for patch 1
> v4:
> - Removed sync_source and pin_idx info
> - Changed one structure to attributes
> - Added EEC_SRC_PORT flag to indicate that the EEC is synchronized
>   to the recovered clock of a port that returns the state
> v5:
> - add EEC source as an optiona attribute
> - implement support for recovered clocks
> - align states returned by EEC to ITU-T G.781

Hi,

Thanks for continuing to work on this.

I was under the impression (might be wrong) that the consensus last time
was to add a new ethtool message to query the mapping between the port
and the EEC clock (similar to TSINFO_GET) and then use a new generic
netlink family to perform operations on the clock itself.

At least in the case of RTM_GETEECSTATE and a multi-port adapter, you
would actually query the same state via each netdev, but without
realizing it's the same clock.

I think another reason to move to ethtool was that this stuff is
completely specific to Ethernet and not applicable to all logical
netdevs.

WARNING: multiple messages have this Message-ID (diff)
From: Ido Schimmel <idosch@idosch.org>
To: Maciej Machnikowski <maciej.machnikowski@intel.com>
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: [RFC v5 net-next 0/5] Add RTNL interface for SyncE
Date: Wed, 27 Oct 2021 09:50:08 +0300	[thread overview]
Message-ID: <YXj2oKjjobd0ZgBi@shredder> (raw)
In-Reply-To: <20211026173146.1031412-1-maciej.machnikowski@intel.com>

On Tue, Oct 26, 2021 at 07:31:41PM +0200, Maciej Machnikowski wrote:
> Synchronous Ethernet networks use a physical layer clock to syntonize
> the frequency across different network elements.
> 
> Basic SyncE node defined in the ITU-T G.8264 consist of an Ethernet
> Equipment Clock (EEC) and have the ability to recover synchronization
> from the synchronization inputs - either traffic interfaces or external
> frequency sources.
> The EEC can synchronize its frequency (syntonize) to any of those sources.
> It is also able to select synchronization source through priority tables
> and synchronization status messaging. It also provides neccessary
> filtering and holdover capabilities
> 
> This patch series introduces basic interface for reading the Ethernet
> Equipment Clock (EEC) state on a SyncE capable device. This state gives
> information about the source of the syntonization signal (ether my port,
> or any external one) and the state of EEC. This interface is required\
> to implement Synchronization Status Messaging on upper layers.
> 
> v2:
> - removed whitespace changes
> - fix issues reported by test robot
> v3:
> - Changed naming from SyncE to EEC
> - Clarify cover letter and commit message for patch 1
> v4:
> - Removed sync_source and pin_idx info
> - Changed one structure to attributes
> - Added EEC_SRC_PORT flag to indicate that the EEC is synchronized
>   to the recovered clock of a port that returns the state
> v5:
> - add EEC source as an optiona attribute
> - implement support for recovered clocks
> - align states returned by EEC to ITU-T G.781

Hi,

Thanks for continuing to work on this.

I was under the impression (might be wrong) that the consensus last time
was to add a new ethtool message to query the mapping between the port
and the EEC clock (similar to TSINFO_GET) and then use a new generic
netlink family to perform operations on the clock itself.

At least in the case of RTM_GETEECSTATE and a multi-port adapter, you
would actually query the same state via each netdev, but without
realizing it's the same clock.

I think another reason to move to ethtool was that this stuff is
completely specific to Ethernet and not applicable to all logical
netdevs.

  parent reply	other threads:[~2021-10-27  6:50 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-26 17:31 [Intel-wired-lan] [RFC v5 net-next 0/5] Add RTNL interface for SyncE Maciej Machnikowski
2021-10-26 17:31 ` Maciej Machnikowski
2021-10-26 17:31 ` [Intel-wired-lan] [RFC v5 net-next 1/5] ice: add support detecting features based on netlist Maciej Machnikowski
2021-10-26 17:31   ` Maciej Machnikowski
2021-10-26 17:31 ` [Intel-wired-lan] [RFC v5 net-next 2/5] rtnetlink: Add new RTM_GETEECSTATE message to get SyncE status Maciej Machnikowski
2021-10-26 17:31   ` Maciej Machnikowski
2021-10-27  7:10   ` [Intel-wired-lan] " Ido Schimmel
2021-10-27  7:10     ` Ido Schimmel
2021-10-27 13:16     ` [Intel-wired-lan] " Machnikowski, Maciej
2021-10-27 13:16       ` Machnikowski, Maciej
2021-10-27 15:10       ` [Intel-wired-lan] " Ido Schimmel
2021-10-27 15:10         ` Ido Schimmel
2021-10-28  6:34         ` [Intel-wired-lan] " Machnikowski, Maciej
2021-10-28  6:34           ` Machnikowski, Maciej
2021-10-26 17:31 ` [Intel-wired-lan] [RFC v5 net-next 3/5] ice: add support for reading SyncE DPLL state Maciej Machnikowski
2021-10-26 17:31   ` Maciej Machnikowski
2021-10-26 17:31 ` [Intel-wired-lan] [RFC v5 net-next 4/5] rtnetlink: Add support for SyncE recovered clock configuration Maciej Machnikowski
2021-10-26 17:31   ` Maciej Machnikowski
2021-10-26 21:32   ` [Intel-wired-lan] " Jakub Kicinski
2021-10-26 21:32     ` Jakub Kicinski
2021-10-27 13:29     ` [Intel-wired-lan] " Machnikowski, Maciej
2021-10-27 13:29       ` Machnikowski, Maciej
2021-10-27 14:40       ` [Intel-wired-lan] " Jakub Kicinski
2021-10-27 14:40         ` Jakub Kicinski
2021-10-26 17:31 ` [Intel-wired-lan] [RFC v5 net-next 5/5] ice: add support for SyncE recovered clocks Maciej Machnikowski
2021-10-26 17:31   ` Maciej Machnikowski
2021-10-27  6:50 ` Ido Schimmel [this message]
2021-10-27  6:50   ` [RFC v5 net-next 0/5] Add RTNL interface for SyncE Ido Schimmel
2021-10-27 13:21   ` [Intel-wired-lan] " Machnikowski, Maciej
2021-10-27 13:21     ` Machnikowski, Maciej
2021-10-27 15:05     ` [Intel-wired-lan] " Ido Schimmel
2021-10-27 15:05       ` Ido Schimmel
2021-10-28  6:32       ` [Intel-wired-lan] " Machnikowski, Maciej
2021-10-28  6:32         ` Machnikowski, Maciej

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YXj2oKjjobd0ZgBi@shredder \
    --to=idosch@idosch.org \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.