From patchwork Tue Jun 13 08:30:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 128558 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 428D042CA6; Tue, 13 Jun 2023 10:31:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 17FD040A8A; Tue, 13 Jun 2023 10:31:32 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 29E1F40698 for ; Tue, 13 Jun 2023 10:31:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686645090; x=1718181090; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=P2oEAsddZUBplR1KyVeUdsH507POg4aJ99CMkrOqi3c=; b=YG/df+e8IHS0EyCa54k3xWqVzmpjhqyEbJRKVrSUquaBSem4HpIQwVVC XnF4/l0I/zTLb9+LPatf8oRTcck2osvYfW+tXPFkktAOUOl8O/22WhEed ngqBch96CQkB5T3gKwBwZ8e/LyY1IfzURZPkc5RANrlL5LzekPZylYcik R+mkSNMR6IRF3atBRNR5+B0yUueJ6pKCX8L0rtONzoVn/kIP5Lttd79+u hLXJEYpOkU/gwXG+6Fa+VWqP1zsOANCYy9UFcUPKR62yRlRbmEJAO8dri KRdbO7SzZrEbLm/n6SwQ8DprbzmS7ab5rt6XLcCL+hcOhTty5f1oBgojV g==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="337903953" X-IronPort-AV: E=Sophos;i="6.00,239,1681196400"; d="scan'208";a="337903953" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2023 01:31:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="744610690" X-IronPort-AV: E=Sophos;i="6.00,239,1681196400"; d="scan'208";a="744610690" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.253]) by orsmga001.jf.intel.com with ESMTP; 13 Jun 2023 01:31:21 -0700 From: beilei.xing@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, Beilei Xing Subject: [PATCH] net/cpfl: release memzone for rxq Date: Tue, 13 Jun 2023 08:30:17 +0000 Message-Id: <20230613083017.43290-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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 Memzone of split Rx queue is not released, this commit fixes this issue. Fixes: c3f4af354506 ("net/cpfl: refine structures") Signed-off-by: Beilei Xing Tested-by: Yaqi Tang --- drivers/net/cpfl/cpfl_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/cpfl/cpfl_rxtx.c b/drivers/net/cpfl/cpfl_rxtx.c index 9d278dca54..2ef6871a85 100644 --- a/drivers/net/cpfl/cpfl_rxtx.c +++ b/drivers/net/cpfl/cpfl_rxtx.c @@ -304,6 +304,7 @@ cpfl_rx_queue_release(void *rxq) if (q->bufq1) cpfl_rx_split_bufq_release(q->bufq1); + rte_memzone_free(q->mz); rte_free(cpfl_rxq); return; }