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 82E3FA00BE; Wed, 30 Oct 2019 08:53:25 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 52A5F1BF51; Wed, 30 Oct 2019 08:53:09 +0100 (CET) Received: from relay.smtp.broadcom.com (relay.smtp.broadcom.com [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 25DB51BF19 for ; Wed, 30 Oct 2019 08:53:04 +0100 (CET) Received: from dhcp-10-123-153-22.dhcp.broadcom.net (bgccx-dev-host-lnx2.bec.broadcom.net [10.123.153.22]) by relay.smtp.broadcom.com (Postfix) with ESMTP id E1BD31BB392; Wed, 30 Oct 2019 00:53:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com E1BD31BB392 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1572421983; bh=SIZ9GWQcuHC5wh2r5fmsAiINhIQlc7AZkO/i/G4WJlc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iq9x8ExJ7We2OvklSR3surtH4ZuidYbqYGgzf7+87fiapAoot9qMYIlIl8qA+XQv0 W/Q6zXQSGymAXNsKQV3dOuPrgM8GFOX40lcTUv7560I8XzZBIFXjSG3F8q+gfcaNC5 opoakBuSXOggExgHgbLwWdF3lNeb+iQ38rv5iEZM= From: Kalesh A P To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Wed, 30 Oct 2019 13:34:36 +0530 Message-Id: <20191030080438.27530-4-kalesh-anakkur.purayil@broadcom.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20191030080438.27530-1-kalesh-anakkur.purayil@broadcom.com> References: <20191030080438.27530-1-kalesh-anakkur.purayil@broadcom.com> Subject: [dpdk-dev] [PATCH 3/5] net/bnxt: fix vnic allocation failure on port toggle 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: Santoshkumar Karanappa Rastapur bnxt_init_chip called on port start keeps incrementing rx_cosq_cnt. Hence more vnics are allocated with less number of rings on each port stop/start operation. Eventually vnic allocation fails due to incorrect ring group as no ring gets allocated to the vnic. Fixes: 84d49664b5b2 ("net/bnxt: support CoS classification") Signed-off-by: Santoshkumar Karanappa Rastapur Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 0b0ce87..3acf66d 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -967,6 +967,7 @@ static void bnxt_dev_stop_op(struct rte_eth_dev *eth_dev) bnxt_shutdown_nic(bp); bnxt_hwrm_if_change(bp, 0); bp->dev_stopped = 1; + bp->rx_cosq_cnt = 0; } static void bnxt_dev_close_op(struct rte_eth_dev *eth_dev) -- 1.8.3.1