• Vladimir Oltean's avatar
    net: dsa: sja1105: add the RX timestamping procedure for SJA1110 · 30b73242
    Vladimir Oltean authored
    This is really easy, since the full RX timestamp is in the DSA trailer
    and the tagger code transfers it to SJA1105_SKB_CB(skb)->tstamp, we just
    need to move it to the skb shared info region. This is as opposed to
    SJA1105, where the RX timestamp was received in a meta frame (so there
    needed to be a state machine to pair the 2 packets) and the timestamp
    was partial (so the packet, once matched with its timestamp, needed to
    be added to an RX timestamping queue where the PTP aux worker would
    reconstruct that timestamp).
    Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    30b73242
sja1105_ptp.c 25.4 KB