From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3652FA2EEB for ; Mon, 7 Oct 2019 21:41:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B51221C13A; Mon, 7 Oct 2019 21:41:57 +0200 (CEST) Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 7C2411C129 for ; Mon, 7 Oct 2019 21:41:55 +0200 (CEST) Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.242.48]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 0310530C0F7; Mon, 7 Oct 2019 12:40:28 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 0310530C0F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1570477228; bh=tDn1zuUMTJJrDMaWalXpwHdbPku9jZxqL8j8iHB/X3U=; h=From:To:Cc:Subject:Date:From; b=imbymETZc7Nmdbea+4SPw8ioWXYpLL2UaP45bJ3L20mKbfUCSoUJHQtykIb3f23jN MxnnDKj8jyv07NUrkHyb5vDz0yURgsbHb3DpaQM/+uaaCtX0eRmfqUbUaF1AOSA0Ct A2iFRWnvg+1tt0OutblwGdAL3dQptHTQ9RXmVTE8= Received: from C02VPB22HTD6.wifi.broadcom.net (c02vpb22htd6.wifi.broadcom.net [10.69.74.102]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 0023314008C; Mon, 7 Oct 2019 12:41:53 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Kalesh AP Date: Mon, 7 Oct 2019 12:41:51 -0700 Message-Id: <20191007194151.63131-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/bnxt: fix a check in rxq start op X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Kalesh AP This patch fixes a wrong check in rxq start operation. Driver should check for rxq start state. Fixes: 4316e043cbcb ("net/bnxt: fix RxQ stop/start handling") Signed-off-by: Kalesh AP Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ring.c b/drivers/net/bnxt/bnxt_ring.c index a6e0915e2d..d31e4f3964 100644 --- a/drivers/net/bnxt/bnxt_ring.c +++ b/drivers/net/bnxt/bnxt_ring.c @@ -612,7 +612,7 @@ int bnxt_alloc_hwrm_rx_ring(struct bnxt *bp, int queue_index) if (rc) goto err_out; - if (!rxq->rx_started) { + if (rxq->rx_started) { if (bnxt_init_one_rx_ring(rxq)) { RTE_LOG(ERR, PMD, "bnxt_init_one_rx_ring failed!\n"); -- 2.20.1 (Apple Git-117)