bnxt_en: Use dma_rmb() instead of rmb().
Use the weaker but more appropriate dma_rmb() to order the reading of the completion ring. Suggested-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5049e33b55
commit
b67daab033
@@ -1494,7 +1494,7 @@ static int bnxt_poll_work(struct bnxt *bp, struct bnxt_napi *bnapi, int budget)
|
|||||||
/* The valid test of the entry must be done first before
|
/* The valid test of the entry must be done first before
|
||||||
* reading any further.
|
* reading any further.
|
||||||
*/
|
*/
|
||||||
rmb();
|
dma_rmb();
|
||||||
if (TX_CMP_TYPE(txcmp) == CMP_TYPE_TX_L2_CMP) {
|
if (TX_CMP_TYPE(txcmp) == CMP_TYPE_TX_L2_CMP) {
|
||||||
tx_pkts++;
|
tx_pkts++;
|
||||||
/* return full budget so NAPI will complete. */
|
/* return full budget so NAPI will complete. */
|
||||||
|
Reference in New Issue
Block a user