Re: [PATCH net-next] net: fec: fix the race between xmit and bdp reclaiming path

2015-08-10 Thread David Miller
From: Kevin Hao Date: Fri, 7 Aug 2015 13:52:37 +0800 > When we transmit a fragmented skb, we may run into a race like the > following scenario (assume txq->cur_tx is next to txq->dirty_tx): >cpu 0 cpu 1 > fec_enet_txq_submit_skb > reserv

[PATCH net-next] net: fec: fix the race between xmit and bdp reclaiming path

2015-08-06 Thread Kevin Hao
When we transmit a fragmented skb, we may run into a race like the following scenario (assume txq->cur_tx is next to txq->dirty_tx): cpu 0 cpu 1 fec_enet_txq_submit_skb reserve a bdp for the first fragment fec_enet_txq_submit_frag_skb