I found some information regarding SOF_TIMESTAMPING_TX_SOFTWARE capability

https://sourceforge.net/p/linuxptp/mailman/message/35474590/


You need to add one line to the transmit path in the driver:

        skb_tx_timestamp(skb);

Quoting include/linux/skbuff.h:

 * skb_tx_timestamp() - Driver hook for transmit timestamping
 *
 * Ethernet MAC Drivers should call this function in their hard_xmit()
 * function immediately before giving the sk_buff to the MAC hardware.
 *
 * Specifically, one should make absolutely sure that this function is
 * called before TX completion of this packet can trigger.  Otherwise
 * the packet could potentially already be freed.

if I modify the nic driver with above changes then will ptp4l able to
start the ptp service ?

Regards,

Raveendra






On Wed, Mar 13, 2019 at 6:25 PM Miroslav Lichvar <mlich...@redhat.com>
wrote:

> On Wed, Mar 13, 2019 at 06:19:34PM +0530, Raveendra Muniyappa wrote:
> > [root@2-9 ~]# ethtool -T eth0
> > Time stamping parameters for eth0:
> > Capabilities:
> > software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
> > software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
>
> > Mar 13 17:56:17 2-9 ptp4l: [1397593.140] interface 'eth0' does not
> support
> > requested timestamping mode
>
> > Any suggestion how ptp4l service can be started and also use software
> based
> > timestamping for ptp protocol.
>
> ptp4l cannot be started on this interface. It requires the
> SOF_TIMESTAMPING_TX_SOFTWARE capability, which is not printed by
> ethtool.
>
> --
> Miroslav Lichvar
>
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to