Skip to content

Commit

Permalink
stmmac: fix race in transmit time stamping.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Cochran authored and David S. Miller committed Jun 19, 2011
1 parent 2aa8f4c commit 52f64fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 52f64fa

Please sign in to comment.