On Wed, Jun 24, 2020 at 06:14:52PM +0300, Jenny Adams wrote:
>  Under the eth0 the driver is given as lan78xx.

That driver does in fact implement SW Tx time stamping.

        static netdev_tx_t
        lan78xx_start_xmit(struct sk_buff *skb, struct net_device *net)
        {
                struct lan78xx_net *dev = netdev_priv(net);
                struct sk_buff *skb2 = NULL;
        
                if (skb) {
                        skb_tx_timestamp(skb);
                        skb2 = lan78xx_tx_prep(dev, skb, GFP_ATOMIC);
                }
                ...
        }

BUT it does not advertise the correct tsinfo via ethtool.

You can either:

1. Hack the driver to advertise the correct info.

   This is the proper way.  You can submit a patch to the Linux netdev
   list with your fix.

2. hack linuxptp/clock.c to ignore false info.

   This is the hacky way.  Don't submit a patch to linuxptp if you
   choose this way, as it will be rejected.

Thanks,
Richard



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

Reply via email to