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

_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to