]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: bcmgenet: add skb_tx_timestamp call
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 20 Mar 2014 17:53:21 +0000 (10:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:36:12 +0000 (17:36 -0400)
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>
drivers/net/ethernet/broadcom/genet/bcmgenet.c

index e836c4c353999bdf68ac0e9d39fb62b8664c98ff..0a9f6df819bb2591511e76929fa5d0d05bb90ace 100644 (file)
@@ -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
         */