|
@@ -1045,6 +1045,7 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
len, DMA_TO_DEVICE);
|
|
len, DMA_TO_DEVICE);
|
|
priv->tx_skbuff[entry] = NULL;
|
|
priv->tx_skbuff[entry] = NULL;
|
|
priv->hw->desc->prepare_tx_desc(desc, 0, len, csum_insertion);
|
|
priv->hw->desc->prepare_tx_desc(desc, 0, len, csum_insertion);
|
|
|
|
+ wmb();
|
|
priv->hw->desc->set_tx_owner(desc);
|
|
priv->hw->desc->set_tx_owner(desc);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1056,6 +1057,9 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
if (likely(priv->tm->enable))
|
|
if (likely(priv->tm->enable))
|
|
priv->hw->desc->clear_tx_ic(desc);
|
|
priv->hw->desc->clear_tx_ic(desc);
|
|
#endif
|
|
#endif
|
|
|
|
+
|
|
|
|
+ wmb();
|
|
|
|
+
|
|
/* To avoid raise condition */
|
|
/* To avoid raise condition */
|
|
priv->hw->desc->set_tx_owner(first);
|
|
priv->hw->desc->set_tx_owner(first);
|
|
|
|
|
|
@@ -1118,6 +1122,7 @@ static inline void stmmac_rx_refill(struct stmmac_priv *priv)
|
|
}
|
|
}
|
|
RX_DBG(KERN_INFO "\trefill entry #%d\n", entry);
|
|
RX_DBG(KERN_INFO "\trefill entry #%d\n", entry);
|
|
}
|
|
}
|
|
|
|
+ wmb();
|
|
priv->hw->desc->set_rx_owner(p + entry);
|
|
priv->hw->desc->set_rx_owner(p + entry);
|
|
}
|
|
}
|
|
}
|
|
}
|