Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@@ -1595,7 +1595,7 @@ static void xgbe_dev_xmit(struct xgbe_channel *channel)
|
||||
packet->rdesc_count, 1);
|
||||
|
||||
/* Make sure ownership is written to the descriptor */
|
||||
wmb();
|
||||
smp_wmb();
|
||||
|
||||
ring->cur = cur_index + 1;
|
||||
if (!packet->skb->xmit_more ||
|
||||
|
@@ -1820,6 +1820,10 @@ static int xgbe_tx_poll(struct xgbe_channel *channel)
|
||||
return 0;
|
||||
|
||||
cur = ring->cur;
|
||||
|
||||
/* Be sure we get ring->cur before accessing descriptor data */
|
||||
smp_rmb();
|
||||
|
||||
txq = netdev_get_tx_queue(netdev, channel->queue_index);
|
||||
|
||||
while ((processed < XGBE_TX_DESC_MAX_PROC) &&
|
||||
|
Reference in New Issue
Block a user