[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211130190926.7c1d735d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 30 Nov 2021 19:09:26 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Hayes Wang <hayeswang@...ltek.com>
Cc: "hkallweit1@...il.com" <hkallweit1@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
nic_swsd <nic_swsd@...ltek.com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
Subject: Re: [RFC PATCH 0/4] r8169: support dash
On Wed, 1 Dec 2021 02:57:00 +0000 Hayes Wang wrote:
> Jakub Kicinski <kuba@...nel.org>
> > Sent: Tuesday, November 30, 2021 2:00 AM
> > Subject: Re: [RFC PATCH 0/4] r8169: support dash
> >
> > On Mon, 29 Nov 2021 18:13:11 +0800 Hayes Wang wrote:
> > > These patches are used to support dash for RTL8111EP and
> > > RTL8111FP(RTL81117).
> >
> > If I understand correctly DASH is a DMTF standard for remote control.
> >
> > Since it's a standard I think we should have a common way of
> > configuring it across drivers.
>
> Excuse me. I am not familiar with it.
> What document or sample code could I start?
>
> > Is enable/disable the only configuration
> > that we will need?
>
> I don't think I could answer it before I understand the above way
> you mentioned.
>
> > We don't use sysfs too much these days, can we move the knob to
> > devlink, please? (If we only need an on/off switch generic devlink param
> > should be fine).
>
> Thanks. I would study devlink.
I'm not sure how relevant it will be to you but this is the
documentation we have:
https://www.kernel.org/doc/html/latest/networking/devlink/index.html
https://www.kernel.org/doc/html/latest/networking/devlink/devlink-params.html
You'll need to add a generic parameter (define + a short description)
like 325e0d0aa683 ("devlink: Add 'enable_iwarp' generic device param")
In terms of driver changes I think the most relevant example to you
will be:
drivers/net/ethernet/ti/cpsw_new.c
You need to call devlink_alloc(), devlink_register and
devlink_params_register() (and the inverse functions).
Powered by blists - more mailing lists