Re: [Linuxptp-users] Is there any interface between ptp driver and linuxptp for controlling the ptp
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Takahiro S. <tsh...@gm...> - 2012-03-14 23:48:17
|
Hello, > Yes, I agree. You will have to live with a work around. Your hardware > > > really cannot support IEEE Std 1588-2008. For peer delay mechanism via > > > L2, you must accept two *different* MAC addresses. > > > > > > Your driver will have to program the correct multicast MAC address > > > based on the SIOCSHWTSTAMP ioctl. Your driver can only support certain > > > values for rx_filter: > > > > > > HWTSTAMP_FILTER_PTP_V2_L4_EVENT SA = 01:00:5e:00:01:81 (E2E mechanism > > > only) > > > HWTSTAMP_FILTER_PTP_V2_L2_EVENT SA = 01:1b:19:00:00:00 (E2E mechanism > > > only) > > > HWTSTAMP_FILTER_PTP_V2_EVENT not supported! > > > > > > > > I have some question. > > 1. If SA means Distination MAC address (Station Address register 1-6), > > could you tell me the usage of the above ioctl? > > Sorry for the confusion. I meant SA = Station Address. > > > Now linuxptp uses HWTSTAMP_FILTER_PTP_V2_EVENT. If I implement the driver > > like the above, I modify the linuxptp using > HWTSTAMP_FILTER_PTP_V2_L4_EVENT > > or HWTSTAMP_FILTER_PTP_V2_L2_EVENT and test them? > > Yes that is right. > > > I can accept two *different * Source MAC address for Rx message. I can > not > > accept two *different* Destination MAC address for RX message. > > Yes, and that is why the hardware will not fully support PTPv2. > > How about the following implementation? HWTSTAMP_FILTER_PTP_V2_L4_EVENT SA = 01:00:5e:00:01:81 (E2E mechanism only) HWTSTAMP_FILTER_PTP_V2_L2_EVENT SA = 01:1b:19:00:00:00 (E2E mechanism only) HWTSTAMP_FILTER_PTP_V2_EVENT The same as HWTSTAMP_FILTER_PTP_V2_L4_EVENT I want that the user uses linuptp and EG20T driver by default. It seems that the current linuxptp does not use SA = 01:1b:19:00:00:00 by default. If so, I want to implement like the above. It is the limitation of the EG20T ptp driver. Thanks and Best regards, Takahiro Shimizu |