[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yyu6w8Ovq2/aqzBc@lunn.ch>
Date: Thu, 22 Sep 2022 03:30:43 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Vladimir Oltean <vladimir.oltean@....com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Ahern <dsahern@...nel.org>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH v2 iproute2-next] ip link: add sub-command to view and
change DSA master
On Wed, Sep 21, 2022 at 03:41:07PM -0700, Stephen Hemminger wrote:
> On Wed, 21 Sep 2022 18:38:28 +0000
> Vladimir Oltean <vladimir.oltean@....com> wrote:
>
> > On Wed, Sep 21, 2022 at 11:36:37AM -0700, Stephen Hemminger wrote:
> > > On Wed, 21 Sep 2022 19:51:05 +0300
> > > Vladimir Oltean <vladimir.oltean@....com> wrote:
> > >
> > > > +.BI master " DEVICE"
> > > > +- change the DSA master (host network interface) responsible for handling the
> > > > +local traffic termination of the given DSA switch user port. The selected
> > > > +interface must be eligible for operating as a DSA master of the switch tree
> > > > +which the DSA user port is a part of. Eligible DSA masters are those interfaces
> > > > +which have an "ethernet" reference towards their firmware node in the firmware
> > > > +description of the platform, or LAG (bond, team) interfaces which contain only
> > > > +such interfaces as their ports.
> > >
> > > We still need to find a better name for this.
> > > DSA predates the LF inclusive naming but that doesn't mean it can't be
> > > fixed in user visible commands.
> >
> > Need? Why need? Who needs this and since when?
>
> Also see: https://www.kernel.org/doc/html/v6.0-rc6/process/coding-style.html#naming
>
> For symbol names and documentation, avoid introducing new usage of ‘master / slave’ (or ‘slave’ independent of ‘master’) and ‘blacklist / whitelist’.
>
> Recommended replacements for ‘master / slave’ are:
> ‘{primary,main} / {secondary,replica,subordinate}’ ‘{initiator,requester} / {target,responder}’ ‘{controller,host} / {device,worker,proxy}’ ‘leader / follower’ ‘director / performer’
Looking at these, none really fit the concept of what the master
interface is.
slave is also used quite a lot within DSA, but we can probably use
user in place of that, it is already somewhat used as a synonym within
DSA terminology.
Do you have any more recommendations for something which pairs with
user.
Andrew
Powered by blists - more mailing lists