[Linuxptp-users] Is there any interface between ptp driver and linuxptp for controlling the ptp har
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Takahiro S. <tsh...@gm...> - 2012-03-13 07:28:03
|
Hello, I am using ptp4l with hardware clock. The ieee1588 hardware is Intel EG20T. EG20T ieee1588 hardware needs destination MAC address to capture the ptp message. I implement it in ptp_pch_probe function now. The usage is like below: insmod ptp_pch.ko station="01:00:5e:00:01:81" This is good if the MAC address is unicast. Because it is known already. However it is NG if the MAC address is multicast. Because it is decided when the linuxptp is started. So, I want to add the new command between ptp driver and linuxptp. One possibility is to define the new ioctl of socket interface. However it needs to change gbe, ptp driver and linuxptp. Another possibility is to use the interface between ptp driver and linuxptp. It seems simple. However I can not see any direct interface between ptp driver and linuxptp. Question: 1. Which is better to add the new command for ptp driver? 2. Is it possible to add new interface between ptp driver and linuxptp (e.g. ioctl)? 3. Does anyone have other better idea? Thanks and Best regards, Takahiro Shimizu |