[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210824164730.38035109@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 24 Aug 2021 16:47:30 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Keller, Jacob E" <jacob.e.keller@...el.com>
Cc: Ido Schimmel <idosch@...sch.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"andrew@...n.ch" <andrew@...n.ch>,
"mkubecek@...e.cz" <mkubecek@...e.cz>,
"pali@...nel.org" <pali@...nel.org>,
"jiri@...dia.com" <jiri@...dia.com>,
"vadimp@...dia.com" <vadimp@...dia.com>,
"mlxsw@...dia.com" <mlxsw@...dia.com>,
Ido Schimmel <idosch@...dia.com>
Subject: Re: [RFC PATCH net-next v3 1/6] ethtool: Add ability to control
transceiver modules' power mode
On Tue, 24 Aug 2021 23:18:56 +0000 Keller, Jacob E wrote:
> > > + * @mode_valid: Indicates the validity of the @mode field. Should be set by
> > > + * device drivers on get operations when a module is plugged-in.
> >
> > Should we make a firm decision on whether we want to use these kind of
> > valid bits or choose invalid defaults? As you may guess my preference
> > is the latter since that's what I usually do, that way drivers don't
> > have to write two fields.
> >
> > Actually I think this may be the first "valid" in ethtool, I thought we
> > already had one but I don't see it now..
>
> coalesce settings have a valid mode don't they? Or at least an "accepted modes"?
That's a static per-driver bitmask 'cause we don't trust driver writers
to error out on all the unsupported fields. The driver code doesn't
operate on it in the callbacks.
Powered by blists - more mailing lists