Skip to content

Commit

Permalink
smsc9420: 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 52f64fa commit 6241207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/smsc9420.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,12 @@ static netdev_tx_t smsc9420_hard_start_xmit(struct sk_buff *skb,
pd->tx_ring[index].status = TDES0_OWN_;
wmb();

skb_tx_timestamp(skb);

/* kick the DMA */
smsc9420_reg_write(pd, TX_POLL_DEMAND, 1);
smsc9420_pci_flush_write(pd);

skb_tx_timestamp(skb);

return NETDEV_TX_OK;
}

Expand Down

0 comments on commit 6241207

Please sign in to comment.