projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f64fa
)
smsc9420: fix race in transmit time stamping.
author
Richard Cochran
<richardcochran@gmail.com>
Sun, 19 Jun 2011 03:31:44 +0000
(
03:31
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 19 Jun 2011 23:35:31 +0000
(16:35 -0700)
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc9420.c
patch
|
blob
|
history
diff --git
a/drivers/net/smsc9420.c
b/drivers/net/smsc9420.c
index 5555102bb964cfa9719609d28eaa9244c6cae9cb..459726f5475417f6effcb8fad59284f1f6a09d28 100644
(file)
--- a/
drivers/net/smsc9420.c
+++ b/
drivers/net/smsc9420.c
@@
-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;
}