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: Richard C. <ric...@gm...> - 2012-03-14 06:55:54
|
On Wed, Mar 14, 2012 at 01:51:35PM +0900, Takahiro Shimizu wrote: > Hello > > I confirmed it to the engineer. > It seems the mistake of EG20T datasheet. > Destination MAC address is compared with station address registers. Wow, your hardware really, really stinks. How then can you support IPv4 on one port and L2 on another? How can you support the peer delay mechanism? > I will use the same station address as linuxptp in EG20T ptp driver like > below. > > #define DEFAULT_MULTICAST_MAC_ADDR "01:00:5e:00:01:81" // This is the same > as "224.0.1.129". > > pch_probe(struct pci_dev *pdev, const struct pci_device_id *id) > : > pch_set_station_address(DEFAULT_MULTICAST_MAC_ADDR, pdev); > > I think this is simple and good way now. 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! Sorry, Richard |