]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
e100: enable transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 8 Apr 2012 14:38:10 +0000 (14:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 14 Apr 2012 09:02:41 +0000 (02:02 -0700)
This patch enables software (and phy device) transmit time stamping.
Tested on an old PIII laptop with built in NIC.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e100.c

index e4d4c172f50efb5491ed07e922a2ddaf941608b6..ada720b42ff62aa0181ff43d3dfe1fd876f321c0 100644 (file)
@@ -1759,6 +1759,7 @@ static void e100_xmit_prepare(struct nic *nic, struct cb *cb,
                skb->data, skb->len, PCI_DMA_TODEVICE));
        /* check for mapping failure? */
        cb->u.tcb.tbd.size = cpu_to_le16(skb->len);
+       skb_tx_timestamp(skb);
 }
 
 static netdev_tx_t e100_xmit_frame(struct sk_buff *skb,