aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-03-20 13:53:21 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-20 17:36:12 -0400
commitd03825fba459d0d58e4fe162439babfc5f5eabc4 (patch)
treed6682b1153060f1106aefc212b1b401fa637bcea /drivers/net
parent9460c936794fbcf82623e263926b17334ca5887a (diff)
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)
1176 } 1176 }
1177 } 1177 }
1178 1178
1179 skb_tx_timestamp(skb);
1180
1179 /* we kept a software copy of how much we should advance the TDMA 1181 /* we kept a software copy of how much we should advance the TDMA
1180 * producer index, now write it down to the hardware 1182 * producer index, now write it down to the hardware
1181 */ 1183 */