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 10:26:49
|
Hello, I get IEEE1588-2008 specification. My understanding about your saying is; 1. "HWTSTAMP_FILTER_PTP_V2_L4_EVENT SA = 01:00:5e:00:01:81" means "PTP-primary All except peer delay mechanism messages 224.0.1.129" in Table D.1 IPv4 multicast addresses in the standard. 2. "HWTSTAMP_FILTER_PTP_V2_L2_EVENT SA = 01:1b:19:00:00:00" means "All except peer delay mechanism messages 01-1B-19-00-00-00" in Table F.1 Multicast MAC addresses in the standard. 3. HWTSTAMP_FILTER_PTP_V2_EVENT means supports L2 event and L4 event at the same time. This means we should support both addresses in Table D.1 or F.1 at the same time. 4. "How can you support the peer delay mechanism?" means we should support "PTP-primary All except peer delay mechanism messages 224.0.1.129" and "PTP-pdelay Peer delay mechanism messages 224.0.0.107" or "All except peer delay mechanism messages 01-1B-19-00-00-00" and "Peer delay mechanism messages 01-80-C2-00-00-0E". Is my understanding correct? Thanks, Takahiro Shimizu 2012/3/14 Takahiro Shimizu <tsh...@gm...> > Hello, > > Thank you very much for the response. > > 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? > 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? > 2. Or you mean that SA is source address? > If so, my hardware does not filter about source address. > It filter only Destination address using Station Address registers1-6. > I can accept two *different * Source MAC address for Rx message. I can not > accept two *different* Destination MAC address for RX message. > > Thanks and Best regards, > Takahiro Shimizu > |