[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f37057d315c34b35b9acd93b5b2dcb41@amazon.com>
Date: Mon, 7 Apr 2025 07:01:46 +0000
From: "Arinzon, David" <darinzon@...zon.com>
To: Leon Romanovsky <leon@...n.nu>, Jakub Kicinski <kuba@...nel.org>, "David
Woodhouse" <dwmw2@...radead.org>
CC: Andrew Lunn <andrew@...n.ch>, David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Simon Horman
<horms@...nel.org>, Richard Cochran <richardcochran@...il.com>, "Woodhouse,
David" <dwmw@...zon.co.uk>, "Machulsky, Zorik" <zorik@...zon.com>,
"Matushevsky, Alexander" <matua@...zon.com>, "Bshara, Saeed"
<saeedb@...zon.com>, "Wilson, Matt" <msw@...zon.com>, "Liguori, Anthony"
<aliguori@...zon.com>, "Bshara, Nafea" <nafea@...zon.com>, "Schmeilin,
Evgeny" <evgenys@...zon.com>, "Belgazal, Netanel" <netanel@...zon.com>,
"Saidi, Ali" <alisaidi@...zon.com>, "Herrenschmidt, Benjamin"
<benh@...zon.com>, "Kiyanovski, Arthur" <akiyano@...zon.com>, "Dagan, Noam"
<ndagan@...zon.com>, "Bernstein, Amit" <amitbern@...zon.com>, "Allen, Neil"
<shayagr@...zon.com>, "Ostrovsky, Evgeny" <evostrov@...zon.com>, "Tabachnik,
Ofir" <ofirt@...zon.com>, "Machnikowski, Maciek" <maciek@...hnikowski.net>,
Rahul Rameshbabu <rrameshbabu@...dia.com>, Gal Pressman <gal@...dia.com>,
Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Subject: RE: [PATCH v8 net-next 5/5] net: ena: Add PHC documentation
> >> > I think the sysfs control is the best option here.
> >>
> >> Actually, it occurs to me that the best option is probably a module
> >> parameter. If you have to take the network down and up to change the
> >> mode, why not just unload and reload the module?
> >
> > We have something called devlink params, which support "configuration
> > modes" (= what level of reset is required to activate the new setting).
> > Maybe devlink param with cmode of "driver init" would be the best fit?
>
> I had same feeling when I wrote my auxbus response. There is no reason to
> believe that ptp enable/disable knob won't be usable by other drivers
>
> It's universally usable, just not related to netdev sysfs layout.
>
> Thanks
>
> >
> > Module params are annoying because they are scoped to code / module
> > not instances of the device.
Hi Jakub,
Thanks for suggesting the devlink params option for enable/disable, we will
explore the option and provide a revised patchset.
Given the pushback on custom sysfs utilization, what can be the alternative for exposing
the PHC statistics? If `ethtool -S` is not an option, is there another framework that
allows outputting statistics?
We've explored devlink health reporter dump, would that be acceptable?
Thanks,
David
Powered by blists - more mailing lists