From: Gavin Hu Date: Mon, 16 Sep 2019 11:27:17 +0000 (+0800) Subject: net/bnxt: replace memory barrier for doorbell response X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=21ecbde99b2f0772d36eef8276a686f3135e5de9;hp=4a1721107c30603e078a611e99a4183de178fd7d;p=dpdk.git net/bnxt: replace memory barrier for doorbell response To read the doorbell response, which is held in the host CIO memory, rte_cio_rmb is sufficient. Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Cc: stable@dpdk.org Signed-off-by: Gavin Hu Acked-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index e73d8ed76a..d7c33d21e2 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -150,7 +150,7 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg, /* Poll for the valid bit */ for (i = 0; i < timeout; i++) { /* Sanity check on the resp->resp_len */ - rte_rmb(); + rte_cio_rmb(); if (resp->resp_len && resp->resp_len <= bp->max_resp_len) { /* Last byte of resp contains the valid key */ valid = (uint8_t *)resp + resp->resp_len - 1;