From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D74A541EAC; Thu, 16 Mar 2023 09:51:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C785740FDF; Thu, 16 Mar 2023 09:51:42 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 45B1B40EF1 for ; Thu, 16 Mar 2023 09:51:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678956701; x=1710492701; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MB4hp3Nx/bEBgaayJftJD6JP6GIiSySy76+2blrgfW8=; b=EzJ7IZWRhRphfXZweEsWOMgydcbown1+6i35xu0UdK5Y9ihODL7Ga2pQ 4GPdHnhCnbcPXFmUrKZ/3BFUOZfoMSB+YEShk8VNW/C1LZ9B9eCNffvLE vdLLobXzzfeIRAaYu8OjLLkpuweH0e+m8aYTJb9UX5eBmCigDgX4oNBBr KD2l+rLj2zDG9HjCYFe5pY2YHD8RxpQ7AOmPMIZeKvTWwmSURqxcr/3y3 KX2NbPT3siVzS/fwfl0W23Be1H/7md5RvpFrz32B+UftMGq0YO2jnDfGV e2MrEtJsFXc5QYp0QmpIjYzEyNqQHWpJrn3Xm8Co7ylGHTNSMi2DIaeSf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="337948039" X-IronPort-AV: E=Sophos;i="5.98,265,1673942400"; d="scan'208";a="337948039" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 01:51:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="748765776" X-IronPort-AV: E=Sophos;i="5.98,265,1673942400"; d="scan'208";a="748765776" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.253]) by fmsmga004.fm.intel.com with ESMTP; 16 Mar 2023 01:51:23 -0700 From: beilei.xing@intel.com To: yuying.zhang@intel.com Cc: dev@dpdk.org, Beilei Xing , Jingjing Wu Subject: [PATCH] net/cpfl: reset queue flag when queue is stopped Date: Thu, 16 Mar 2023 08:19:46 +0000 Message-Id: <20230316081946.73937-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Beilei Xing Reset q_started flag when Rx/Tx queue is stopped. Fixes: 994670642165 ("net/cpfl: support queue stop") Signed-off-by: Jingjing Wu Signed-off-by: Beilei Xing --- drivers/net/cpfl/cpfl_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c index 9e8767df72..de59b31b3d 100644 --- a/drivers/net/cpfl/cpfl_rxtx.c +++ b/drivers/net/cpfl/cpfl_rxtx.c @@ -675,6 +675,7 @@ cpfl_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) } rxq = dev->data->rx_queues[rx_queue_id]; + rxq->q_started = false; if (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SINGLE) { rxq->ops->release_mbufs(rxq); idpf_qc_single_rx_queue_reset(rxq); @@ -706,6 +707,7 @@ cpfl_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) } txq = dev->data->tx_queues[tx_queue_id]; + txq->q_started = false; txq->ops->release_mbufs(txq); if (vport->txq_model == VIRTCHNL2_QUEUE_MODEL_SINGLE) { idpf_qc_single_tx_queue_reset(txq); -- 2.26.2