net: ethtool: strset: Allow querying phy stats by index
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 21 Dec 2023 18:00:45 +0000 (19:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jan 2024 18:38:57 +0000 (18:38 +0000)
commitd078d480639a4f3b5fc2d56247afa38e0956483a
tree19040067bb686a05080b71da8fb508e9d98c4da0
parentfcc4b105caa4b844bf043375bf799c20a9c99db1
net: ethtool: strset: Allow querying phy stats by index

The ETH_SS_PHY_STATS command gets PHY statistics. Use the phydev pointer
from the ethnl request to allow query phy stats from each PHY on the
link.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/strset.c