Messages in this thread |  | | Date | Sat, 1 Jun 2019 19:17:09 -0700 | From | Richard Cochran <> | Subject | Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver |
| |
On Sat, Jun 01, 2019 at 01:31:34PM +0300, Vladimir Oltean wrote: > If I dress the meta frame into a PTP frame (btw is there any > preferable event message for this purpose?)
I would just make a L2 PTP event message from a specific source address, just like the phyter does.
Use Ethertype ETH_P_1588 (0x88f7), and make sure the "general" bit (0x8) of the messageType field (the first payload byte, at offset 14) is clear.
dp83640.c uses a magic source address to identify a time stamping status frame:
static u8 status_frame_src[6] = { 0x08, 0x00, 0x17, 0x0B, 0x6B, 0x0F };
HTH, Richard
|  |