]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
e100: enable transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 8 Apr 2012 14:38:10 +0000 (14:38 +0000)
committerJoe Jin <joe.jin@oracle.com>
Fri, 17 Aug 2012 00:57:12 +0000 (08:57 +0800)
This patch enables software (and phy device) transmit time stamping.
Tested on an old PIII laptop with built in NIC.

(cherry picked from commit 48425b14929ef185377e3827ba7135d88343face)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e100.c

index d013af66f758f0f54fd7b54b1033e67b10dea39e..2b0f4eb78b99ee5c05b4a51367dce0b1d9f7fcaf 100644 (file)
@@ -1732,6 +1732,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,