Re: [RFC PATCH net-next 6/7] net: ethtool: add a netlink command to get PHY information
From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-09-08 15:46:16
Also in:
lkml
From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-09-08 15:46:16
Also in:
lkml
On Thu, 7 Sep 2023 11:24:04 +0200 Maxime Chevallier wrote:
ETHTOOL_MSG_PHY_LIST_GET, + ETHTOOL_MSG_PHY_GET,
The distinction between LIST_GET and GET is a bit odd for netlink. GET has a do and a dump. The dump is effectively LIST_GET. The dump can accept filtering arguments, like ifindex, if you want to narrow down the results, that's perfectly fine (you may need to give up some of the built-in ethtool scaffolding, but it shouldn't be all that bad).