From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FFCEC4360C for ; Thu, 10 Oct 2019 12:37:31 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 02A38206B6 for ; Thu, 10 Oct 2019 12:37:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 02A38206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 544771E95C; Thu, 10 Oct 2019 14:37:30 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 69E691E959 for ; Thu, 10 Oct 2019 14:37:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2019 05:37:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,280,1566889200"; d="scan'208";a="223945325" Received: from silpixa00399953.ir.intel.com (HELO silpixa00399953.ger.corp.intel.com) ([10.237.223.218]) by fmsmga002.fm.intel.com with ESMTP; 10 Oct 2019 05:37:26 -0700 From: Ciara Power To: bruce.richardson@intel.com Cc: dev@dpdk.org, Ciara Power Date: Thu, 10 Oct 2019 13:36:02 +0100 Message-Id: <20191010123603.58007-2-ciara.power@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191010123603.58007-1-ciara.power@intel.com> References: <20191010123603.58007-1-ciara.power@intel.com> Subject: [dpdk-dev] [PATCH 1/2] raw/ioat: fix rawdev state to stopped after test 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" The ioat rawdev was initially started during the test, however was never stopped. This would cause issues when running the test again, as the device cannot be configured when in a running state. The device is now stopped after the test has completed, or if the test is terminated due to error. Fixes: 849470d522ed ("raw/ioat: add configure, start and stop functions") Cc: bruce.richardson@intel.com Signed-off-by: Ciara Power --- drivers/raw/ioat/ioat_rawdev_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/raw/ioat/ioat_rawdev_test.c b/drivers/raw/ioat/ioat_rawdev_test.c index f6c7dbb80..6aad79486 100644 --- a/drivers/raw/ioat/ioat_rawdev_test.c +++ b/drivers/raw/ioat/ioat_rawdev_test.c @@ -220,6 +220,7 @@ ioat_rawdev_test(uint16_t dev_id) } printf("\n"); + rte_rawdev_stop(dev_id); rte_mempool_free(pool); free(snames); free(stats); @@ -227,6 +228,7 @@ ioat_rawdev_test(uint16_t dev_id) return 0; err: + rte_rawdev_stop(dev_id); rte_mempool_free(pool); free(snames); free(stats); -- 2.17.1