Hi!

I have a scenario with the following:
CLOCK_REALTIME is the master clock, eth0, eth1 and eth2's PHCs on the
same machine are slave clocks (ptp0, ptp1, ptp2).
Sync eth0 and eth1 done with the phc2sys -rr -a command, because the
section [eth0] and [eth1] in the ptp4l.conf. However eth2 is placed
into a network namespace. Therefore the ptp4l fails to get its PHC
(ioctl error) because it simply can't see the eth2 interface exist.

The phc2sys can also works in manual mode, where the slave clocks
specified as a device. But the problem is, you can only specify one
slave device in manual mode (the optarg simply overwrite the dst_name
in the phc2sys.c's main function). So this attempt did not worked
either.

Unfortunately the section names in the ptp4l.conf only treated as
interface names, and cant be interpreted as clock names or clock
device paths.

Is there any idea how to overcome this issue? Just looked into the phc2sys
code, the first idea would be save the dst_name-s into a list and call
the clocl_add function on each. Would that be enough?

Thank for the help in advance!

Best,
Ferenc


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

Reply via email to