On Fri, Mar 24, 2017 at 06:44:30PM +0100, Šimon Wernisch wrote: > Hello, > I am trying to use ptp4l with software timestamping on my raspberry pi > with a RT5370 wireless adapter. The driver is rt2800usb found in > drivers/net/wireless/ralink/rt2x00 of the raspberry kernel and it > doesn't support software timestamp transmitting.
Wireless PTP is not going to work very well. I recommend using NTP instead. > I have added skb_tx_timestamp(skb) into the transmit path and a > ethtool_ops struct. Ethtool still reports no software transmitting. It is not enough just to add the ethtool structure... > +static const struct ethtool_ops rt2x00_ethtool_ops = { > + .get_ts_info = ethtool_op_get_ts_info, > + .get_link = ethtool_op_get_link > +}; You also must use it in the driver's net_device instance, for example: ndev->ethtool_ops = &rt2x00_ethtool_ops; HTH, Richard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users