diff options
author | Richard Cochran <richardcochran@gmail.com> | 2011-06-18 23:31:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-19 19:35:30 -0400 |
commit | 52f64faeb0fdcd49f14586beab83eabc9170b6a1 (patch) | |
tree | 0a41525e10938b2db8a65cb66471a16dfa7eaa85 | |
parent | 2aa8f4c9d0f88ae7eacac424d8816de225cfe2aa (diff) |
stmmac: fix race in transmit time stamping.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index 5b85f4ca2004..d4adc806f6f8 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -1079,10 +1079,10 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1079 | 1079 | ||
1080 | dev->stats.tx_bytes += skb->len; | 1080 | dev->stats.tx_bytes += skb->len; |
1081 | 1081 | ||
1082 | priv->hw->dma->enable_dma_transmission(priv->ioaddr); | ||
1083 | |||
1084 | skb_tx_timestamp(skb); | 1082 | skb_tx_timestamp(skb); |
1085 | 1083 | ||
1084 | priv->hw->dma->enable_dma_transmission(priv->ioaddr); | ||
1085 | |||
1086 | return NETDEV_TX_OK; | 1086 | return NETDEV_TX_OK; |
1087 | } | 1087 | } |
1088 | 1088 | ||