This patch-set is to add one-step timestamping support for PTP Sync packet. Since ENETC single-step register has to be configured dynamically per packet for correctionField offeset and UDP checksum update, current one-step timestamping packet has to be sent only when the last one completes transmitting on hardware. So, on the TX the patch implements below process:
- For one-step timestamping packet, queue to skb queue. - Start a work to transmit skbs in queue. - For other skbs, transmit immediately. - mutex lock used to ensure the last one-step timestamping packet has already been transmitted on hardware before transmitting current one. Yangbo Lu (2): enetc: mark TX timestamp type per skb enetc: support PTP Sync packet one-step timestamping drivers/net/ethernet/freescale/enetc/enetc.c | 206 ++++++++++++++++-- drivers/net/ethernet/freescale/enetc/enetc.h | 24 +- .../ethernet/freescale/enetc/enetc_ethtool.c | 3 +- .../net/ethernet/freescale/enetc/enetc_hw.h | 7 + 4 files changed, 214 insertions(+), 26 deletions(-) -- 2.25.1