Re: [Linuxptp-users] Lookup ethXXX device from ptpXYZ ?
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Keller, J. E <jac...@in...> - 2021-11-03 19:05:48
|
On 11/3/2021 6:49 AM, Mainz, Roland wrote: > Hi! > > ---- > > Is there a way (sysfs, procfs, etc.) to get the list of ethX (eth0, eth1, ...) devices from a fd for a /dev/ptpXYZ device (e.g. in: fd to /dev/ptp8, out: string "eth6") ? > > ---- > > Mfg, > Roland Mainz > As far as I know, the only link between netdev and PTP device is the ethtool ioctl for timestamping. You could check every single ethernet device and see what its clock index reports in "ethtool -T"... I don't think there's anything specific in the sysfs files of the PTP devices to go backwards otherwise. Thanks, Jake |