summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNicolai Buchwitz <nb@tipi-net.de>2026-09-18 11:55:40 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-21 16:37:59 -0700
commit31995571219c8ac30913d9c0dccad033fbb0b3da (patch)
tree7418e1f525b73516fc5dbaa5d11a02687585d56c /tools/perf/scripts/python/stackcollapse.py
parent0346ec2f080b40d95ed05b853bb9226289e75212 (diff)
downloadlinux-31995571219c8ac30913d9c0dccad033fbb0b3da.tar.gz
linux-31995571219c8ac30913d9c0dccad033fbb0b3da.zip
net: don't require the hwtstamp NDOs when a PHY provides timestamping
Removing the legacy ioctl fallback made both hwtstamp NDOs mandatory. A device that only timestamps in its PHY implements neither, so SIOCSHWTSTAMP fails with EOPNOTSUPP before anything looks at the PHY and PTP stops working there. The check only ever picked the legacy path. That path is gone, so drop it and test where the NDOs are actually called. SIOCGHWTSTAMP is new here, not restored. The old path went through phy_mii_ioctl(), which only handled SIOCSHWTSTAMP. Such a device now returns -ENODEV while absent instead of -EOPNOTSUPP, like the ones that do implement the NDOs. Fixes: 5062245a5a7f ("net: remove legacy way to get/set HW timestamp config") Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de> Reviewed-by: Kory Maincent <kory.maincent@bootlin.com> Link: https://patch.msgid.link/20260918095540.34286-1-nb@tipi-net.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions