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 94A4D43C89; Mon, 11 Mar 2024 16:25:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A0DA4027C; Mon, 11 Mar 2024 16:25:57 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by mails.dpdk.org (Postfix) with ESMTP id C5BC74026B for ; Mon, 11 Mar 2024 16:25:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710170757; x=1741706757; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WfVOLFU9ntftGaO5b/u1VkKsnbKBwsztn4GDaqta8qg=; b=M33qDinkncv7AW0Z2eznHvJrzaiDHslrKM8EJFEL36Jg1JoZn5nSibwk BehHPoCpKV2BWWEAfw6oY//nmorhZW+I7oNEyT9R7pLpX5G8sFRTi9UJd Qj9nPH8Gi9rSPU3PQ8yp1KBww/vXNPB6eoW6TdKrk+aJiTUEyZEUIJMMb nl5HKl1LT7bdSXSP/JZHc7u02ogOlWLEU9RZnqeZ+5Z7bFAAPx92LkASW 9zITVuSbgSLRst4rJiOHXjKwM3IPMkjmZCswFDaW2VD6aWpkFsoUiYF7c 8dxR9Gd43eXaCYetKNozJZn8uMkNgLk71J4vBTyOc//g9fnXICFGs5MVq A==; X-IronPort-AV: E=McAfee;i="6600,9927,11010"; a="8656832" X-IronPort-AV: E=Sophos;i="6.07,117,1708416000"; d="scan'208";a="8656832" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 08:25:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,117,1708416000"; d="scan'208";a="11093031" Received: from silpixa00401501.ir.intel.com (HELO silpixa00401501.ger.corp.intel.com) ([10.237.222.69]) by fmviesa007.fm.intel.com with ESMTP; 11 Mar 2024 08:25:53 -0700 From: Kevin Laatz To: dev@dpdk.org Cc: fengchengwen@huawei.com, bruce.richardson@intel.com, gmuthukrishn@marvell.com, Kevin Laatz Subject: [PATCH] test/dma: fix api testuite teardown Date: Mon, 11 Mar 2024 15:25:50 +0000 Message-Id: <20240311152550.1406686-1-kevin.laatz@intel.com> X-Mailer: git-send-email 2.34.1 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 The API testsuite previously only used the dmadev skeleton. Now that real devices are being used for the API tests, the DMA stats need to be reset during testsuite teardown to ensure a known, clean state before continuing. Fixes: 14b477ed1740 ("test/dma: use unit test framework") Signed-off-by: Kevin Laatz --- app/test/test_dmadev_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index a130e74b51..d40c05cfbf 100644 --- a/app/test/test_dmadev_api.c +++ b/app/test/test_dmadev_api.c @@ -82,6 +82,7 @@ testsuite_teardown(void) dst = NULL; /* Ensure the dmadev is stopped. */ rte_dma_stop(test_dev_id); + rte_dma_stats_reset(test_dev_id, RTE_DMA_ALL_VCHAN); rte_log_set_level_pattern("lib.dmadev", RTE_LOG_INFO); } -- 2.34.1