> -----Original Message-----
> From: Ray Marshall [mailto:ray.marsh...@nxp.com]
> Sent: Monday, July 08, 2019 10:39 AM
> To: linuxptp-users@lists.sourceforge.net
> Subject: [Linuxptp-users] SOF_TIMESTAMPING_TX_SOFTWARE is missing
> 
> Hello,
> 
> Struggling to get PTP working!
> 
> ethtool reports no SOF_TIMESTAMPING_TX_SOFTWARE
> ptp4l says the same
> 
> I modified the driver to add a call to skb_tx_timestamp().
> I also added a printk statement to convince myself that function was
> being called.
> 
> Yet still ethtool reports no SOF_TIMESTAMPING_TX_SOFTWARE.
> 
> Do I need to add some code in the driver to set some flags to tell
> ethtool that software timestamping is enabled?
> How does ethtool know SOF_TIMESTAMPING_TX_SOFTWARE is available in the
> driver?

You need to make sure that the driver's .get_ts_info function reports 
SOF_TIMESTAMPING_TX_SOFTWARE.

If the driver doesn't support any form of hardware timestamping, there is a 
convenient helper function you can assign to the driver's .get_ts_info to 
report the correct value. (ethtool_op_get_ts_info).

By default, ethtool reports that software timestamping is not enabled (because 
it can't know whether or not skb_tx_timestamp is being called at the right 
place or not).

Thanks,
Jake

> 
> This ethernet link is actually virtual ethernet that runs over a PCIe
> link between 2 devices on the same PCB. In all other respects it
> functions just like a normal ethernet link.
> Could this be my problem?
> 
> Any pointers would be appreciated
> 
> Ray
> 
> 
> 
> _______________________________________________
> Linuxptp-users mailing list
> Linuxptp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxptp-users


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to