stmmac: fix race in transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 19 Jun 2011 03:31:43 +0000 (03:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jun 2011 23:35:30 +0000 (16:35 -0700)
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c

index 5b85f4ca20044830f6e5b0f42cdf1f96dc44aca0..d4adc806f6f826c9a8c06aa3567b8a95d7f6d6b9 100644 (file)
@@ -1079,10 +1079,10 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
 
        dev->stats.tx_bytes += skb->len;
 
-       priv->hw->dma->enable_dma_transmission(priv->ioaddr);
-
        skb_tx_timestamp(skb);
 
+       priv->hw->dma->enable_dma_transmission(priv->ioaddr);
+
        return NETDEV_TX_OK;
 }