mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
net/sonic: Remove explicit memory barriers
The explicit memory barriers are redundant now that proper locking and MMIO accessors have been employed. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d35bf9bc7d
commit
13cfff1a90
1 changed files with 0 additions and 2 deletions
|
@ -311,12 +311,10 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev)
|
||||||
sonic_tda_put(dev, entry, SONIC_TD_LINK,
|
sonic_tda_put(dev, entry, SONIC_TD_LINK,
|
||||||
sonic_tda_get(dev, entry, SONIC_TD_LINK) | SONIC_EOL);
|
sonic_tda_get(dev, entry, SONIC_TD_LINK) | SONIC_EOL);
|
||||||
|
|
||||||
wmb();
|
|
||||||
lp->tx_len[entry] = length;
|
lp->tx_len[entry] = length;
|
||||||
lp->tx_laddr[entry] = laddr;
|
lp->tx_laddr[entry] = laddr;
|
||||||
lp->tx_skb[entry] = skb;
|
lp->tx_skb[entry] = skb;
|
||||||
|
|
||||||
wmb();
|
|
||||||
sonic_tda_put(dev, lp->eol_tx, SONIC_TD_LINK,
|
sonic_tda_put(dev, lp->eol_tx, SONIC_TD_LINK,
|
||||||
sonic_tda_get(dev, lp->eol_tx, SONIC_TD_LINK) & ~SONIC_EOL);
|
sonic_tda_get(dev, lp->eol_tx, SONIC_TD_LINK) & ~SONIC_EOL);
|
||||||
lp->eol_tx = entry;
|
lp->eol_tx = entry;
|
||||||
|
|
Loading…
Reference in a new issue