netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@idosch.org>
To: "Machnikowski, Maciej" <maciej.machnikowski@intel.com>
Cc: Roopa Prabhu <roopa@nvidia.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"intel-wired-lan@lists.osuosl.org"
	<intel-wired-lan@lists.osuosl.org>,
	"richardcochran@gmail.com" <richardcochran@gmail.com>,
	"abyagowi@fb.com" <abyagowi@fb.com>,
	"Nguyen, Anthony L" <anthony.l.nguyen@intel.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>,
	"mkubecek@suse.cz" <mkubecek@suse.cz>,
	"saeed@kernel.org" <saeed@kernel.org>,
	"michael.chan@broadcom.com" <michael.chan@broadcom.com>
Subject: Re: [PATCH net-next 4/6] rtnetlink: Add support for SyncE recovered clock configuration
Date: Sun, 7 Nov 2021 16:21:12 +0200	[thread overview]
Message-ID: <YYfg2Gty6dNmjp1E@shredder> (raw)
In-Reply-To: <MW5PR11MB5812F4FD090FCEA7CD83E984EA8E9@MW5PR11MB5812.namprd11.prod.outlook.com>

On Fri, Nov 05, 2021 at 12:17:19PM +0000, Machnikowski, Maciej wrote:
> 
> 
> > -----Original Message-----
> > From: Roopa Prabhu <roopa@nvidia.com>
> > Sent: Thursday, November 4, 2021 7:25 PM
> > To: Machnikowski, Maciej <maciej.machnikowski@intel.com>;
> > netdev@vger.kernel.org; intel-wired-lan@lists.osuosl.org
> > Cc: richardcochran@gmail.com; abyagowi@fb.com; Nguyen, Anthony L
> > <anthony.l.nguyen@intel.com>; davem@davemloft.net; kuba@kernel.org;
> > linux-kselftest@vger.kernel.org; idosch@idosch.org; mkubecek@suse.cz;
> > saeed@kernel.org; michael.chan@broadcom.com
> > Subject: Re: [PATCH net-next 4/6] rtnetlink: Add support for SyncE recovered
> > clock configuration
> > 
> > 
> > On 11/4/21 1:12 AM, Maciej Machnikowski wrote:
> > > Add support for RTNL messages for reading/configuring SyncE recovered
> > > clocks.
> > > The messages are:
> > > RTM_GETRCLKRANGE: Reads the allowed pin index range for the
> > recovered
> > > 		  clock outputs. This can be aligned to PHY outputs or
> > > 		  to EEC inputs, whichever is better for a given
> > > 		  application
> > >
> > > RTM_GETRCLKSTATE: Read the state of recovered pins that output
> > recovered
> > > 		  clock from a given port. The message will contain the
> > > 		  number of assigned clocks (IFLA_RCLK_STATE_COUNT) and
> > > 		  a N pin inexes in IFLA_RCLK_STATE_OUT_IDX
> > >
> > > RTM_SETRCLKSTATE: Sets the redirection of the recovered clock for
> > > 		  a given pin
> > >
> > > Signed-off-by: Maciej Machnikowski <maciej.machnikowski@intel.com>
> > > ---
> > 
> > 
> > Can't we just use a single RTM msg with nested attributes ?
> > 
> > With separate RTM msgtype for each syncE attribute we will end up
> > bloating the RTM msg namespace.
> > 
> > (these api's could also be in ethtool given its directly querying the
> > drivers)
> 
> I'm not a fan of merging those messages. The mergeable ones are
> GETRCLKRANGE and GETCLKSTATE, but the get range function may be
> result in a significantly longer call if the information about the underlying
> HW require any HW calls.
> They are currently grouped in 3 categories:
> - reading the boundaries in GetRclkRange (we can later add more to it, like
> 	configurable frequency limits)
> - Reading current configuration
> - setting the required configuration
> 
> I don't plan adding any additional RTM msg types for those (and that's
> the reason why I pulled them before EEC state which may have more
> messages in the future)
> 
> We also discussed ethtool way in the past RFCs, but this concept
> is applicable to any transport layer so I'd rather not limit it to ethernet
> devices (i.e. SONET, infiniband and others).

I'm still not convinced that this doesn't belong in ethtool. I find it
very weird to have a message called "Get Ethernet Equipment Clock State"
in rtnetlink and not in ethtool. I also believe it was a mistake to add
DCB to rtnetlink (for example, why PAUSE is configured via ethtool, but
PFC via rtnetlink?)

  reply	other threads:[~2021-11-07 14:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  8:12 [PATCH net-next 0/6] Add RTNL interface for SyncE Maciej Machnikowski
2021-11-04  8:12 ` [PATCH net-next 1/6] ice: add support detecting features based on netlist Maciej Machnikowski
2021-11-04  8:12 ` [PATCH net-next 2/6] rtnetlink: Add new RTM_GETEECSTATE message to get SyncE status Maciej Machnikowski
2021-11-04  8:12 ` [PATCH net-next 3/6] ice: add support for reading SyncE DPLL state Maciej Machnikowski
2021-11-04  8:12 ` [PATCH net-next 4/6] rtnetlink: Add support for SyncE recovered clock configuration Maciej Machnikowski
2021-11-04 18:24   ` Roopa Prabhu
2021-11-05 12:17     ` Machnikowski, Maciej
2021-11-07 14:21       ` Ido Schimmel [this message]
2021-11-08  9:03         ` Machnikowski, Maciej
2021-11-04  8:12 ` [PATCH net-next 5/6] ice: add support for SyncE recovered clocks Maciej Machnikowski
2021-11-04  8:12 ` [PATCH net-next 6/6] docs: net: Add description of SyncE interfaces Maciej Machnikowski
2021-11-04 18:08   ` Jakub Kicinski
2021-11-05 11:51     ` Machnikowski, Maciej
2021-11-05 21:30       ` Jakub Kicinski
2021-11-06  0:01         ` 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=YYfg2Gty6dNmjp1E@shredder \
    --to=idosch@idosch.org \
    --cc=abyagowi@fb.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=davem@davemloft.net \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=maciej.machnikowski@intel.com \
    --cc=michael.chan@broadcom.com \
    --cc=mkubecek@suse.cz \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    --cc=roopa@nvidia.com \
    --cc=saeed@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).