Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256498
b: refs/heads/master
c: eb0dc4b
h: refs/heads/master
v: v3
  • Loading branch information
Shiraz Hashim authored and David S. Miller committed Jul 18, 2011
1 parent 4281164 commit 4f38a83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bab632d69ee48a106e779b60cc01adfe80a72807
refs/heads/master: eb0dc4bb2e22c04964d6e9545e86f629f117108b
5 changes: 5 additions & 0 deletions trunk/drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
len, DMA_TO_DEVICE);
priv->tx_skbuff[entry] = NULL;
priv->hw->desc->prepare_tx_desc(desc, 0, len, csum_insertion);
wmb();
priv->hw->desc->set_tx_owner(desc);
}

Expand All @@ -1056,6 +1057,9 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
if (likely(priv->tm->enable))
priv->hw->desc->clear_tx_ic(desc);
#endif

wmb();

/* To avoid raise condition */
priv->hw->desc->set_tx_owner(first);

Expand Down Expand Up @@ -1118,6 +1122,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv)
}
RX_DBG(KERN_INFO "\trefill entry #%d\n", entry);
}
wmb();
priv->hw->desc->set_rx_owner(p + entry);
}
}
Expand Down

0 comments on commit 4f38a83

Please sign in to comment.