]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
fs_enet: enable transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 19 Jun 2011 21:51:29 +0000 (21:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2011 20:56:54 +0000 (13:56 -0700)
This patch enables software (and phy device) transmit time stamping.
Compile tested only.

Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
Cc: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fs_enet/fs_enet-main.c

index 21abb5c01a56c666ad8429dd136a2747218a68e1..329ef231a09649209dc3baa856ae145f94366864 100644 (file)
@@ -697,6 +697,8 @@ static int fs_enet_start_xmit(struct sk_buff *skb, struct net_device *dev)
                sc |= BD_ENET_TX_PAD;
        CBDS_SC(bdp, sc);
 
+       skb_tx_timestamp(skb);
+
        (*fep->ops->tx_kickstart)(dev);
 
        spin_unlock_irqrestore(&fep->tx_lock, flags);