smsc9420: fix race in transmit time stamping.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
52f64faeb0
Коммит
6241207253
|
@ -1031,12 +1031,12 @@ static netdev_tx_t smsc9420_hard_start_xmit(struct sk_buff *skb,
|
||||||
pd->tx_ring[index].status = TDES0_OWN_;
|
pd->tx_ring[index].status = TDES0_OWN_;
|
||||||
wmb();
|
wmb();
|
||||||
|
|
||||||
|
skb_tx_timestamp(skb);
|
||||||
|
|
||||||
/* kick the DMA */
|
/* kick the DMA */
|
||||||
smsc9420_reg_write(pd, TX_POLL_DEMAND, 1);
|
smsc9420_reg_write(pd, TX_POLL_DEMAND, 1);
|
||||||
smsc9420_pci_flush_write(pd);
|
smsc9420_pci_flush_write(pd);
|
||||||
|
|
||||||
skb_tx_timestamp(skb);
|
|
||||||
|
|
||||||
return NETDEV_TX_OK;
|
return NETDEV_TX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче