diff options
author | Michael Chan <michael.chan@broadcom.com> | 2016-05-15 10:04:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-15 20:35:48 +0300 |
commit | b67daab033293b3882ba4dc926ffb084d70044e0 (patch) | |
tree | 14292e7552e37ab8abacfdd84b140480d1eb79cb /drivers | |
parent | 5049e33b559a44e9f216d86c58c7c7fce6f5df2f (diff) | |
download | linux-b67daab033293b3882ba4dc926ffb084d70044e0.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 9de1594be702..5a0dca3e6ef6 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -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 * reading any further. */ - rmb(); + dma_rmb(); if (TX_CMP_TYPE(txcmp) == CMP_TYPE_TX_L2_CMP) { tx_pkts++; /* return full budget so NAPI will complete. */ |