From: Lance Richardson Date: Wed, 17 Jul 2019 10:41:28 +0000 (+0530) Subject: net/bnxt: fix Tx hang after port stop/start X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=03934d93e19ce3b4609a3f1d9dbb5f3f28a34bbe;p=dpdk.git net/bnxt: fix Tx hang after port stop/start Initialize the state of the completion valid indicator when a completion ring is freed, otherwise completions may not be processed when a new ring is allocated. Fixes: 5735eb241947 ("net/bnxt: support Tx batching") Cc: stable@dpdk.org Signed-off-by: Lance Richardson Signed-off-by: Ajit Khaparde Reviewed-by: Kalesh AP --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index a9356c6b84..b6f9ec0a0a 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -2089,6 +2089,7 @@ static void bnxt_free_cp_ring(struct bnxt *bp, struct bnxt_cp_ring_info *cpr) memset(cpr->cp_desc_ring, 0, cpr->cp_ring_struct->ring_size * sizeof(*cpr->cp_desc_ring)); cpr->cp_raw_cons = 0; + cpr->valid = 0; } void bnxt_free_hwrm_rx_ring(struct bnxt *bp, int queue_index)