Re: [PATCH] bna: Add synchronization for tx ring.

2016-11-09 Thread David Miller
From: Benjamin Poirier Date: Mon, 7 Nov 2016 17:57:56 +0800 > We received two reports of BUG_ON in bnad_txcmpl_process() where > hw_consumer_index appeared to be ahead of producer_index. Out of order > write/read of these variables could explain these reports. > >

[PATCH] bna: Add synchronization for tx ring.

2016-11-07 Thread Benjamin Poirier
We received two reports of BUG_ON in bnad_txcmpl_process() where hw_consumer_index appeared to be ahead of producer_index. Out of order write/read of these variables could explain these reports. bnad_start_xmit(), as a producer of tx descriptors, has a few memory barriers sprinkled around writes