summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-03-20 21:53:21 +0400
committerDavid S. Miller <davem@davemloft.net>2014-03-21 01:36:12 +0400
commitd03825fba459d0d58e4fe162439babfc5f5eabc4 (patch)
treed6682b1153060f1106aefc212b1b401fa637bcea /drivers/net
parent9460c936794fbcf82623e263926b17334ca5887a (diff)
downloadlinux-d03825fba459d0d58e4fe162439babfc5f5eabc4.tar.xz
net: bcmgenet: add skb_tx_timestamp call
The BCMGENET driver was not TX timestamping the SKBs it queued for transmission, do this in bcmgenet_xmit() right before kicking the Transmit DMA engine. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/genet/bcmgenet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index e836c4c35399..0a9f6df819bb 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -1176,6 +1176,8 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)
}
}
+ skb_tx_timestamp(skb);
+
/* we kept a software copy of how much we should advance the TDMA
* producer index, now write it down to the hardware
*/