From patchwork Thu Sep 28 15:14:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 132144 X-Patchwork-Delegate: jerinj@marvell.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 4F90B42662; Thu, 28 Sep 2023 17:14:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0DDA6402E0; Thu, 28 Sep 2023 17:14:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id A78234021E for ; Thu, 28 Sep 2023 17:14:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695914078; x=1727450078; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SdujvpHytLBqJoIN+exCqw3txTb/NmwQawKg6BUWHDk=; b=Vc+i0NB2q0vXUSu6Pn9TMt8FNkunSg93GS1OZMmJquRN3v1XpmuLWoj8 S1QiS6+Q8P8pcv2IAS/DvbpVONeBdQ5MzNtlHhVy7oYDXmre/BLL6o7hh OZI+hxu9mQw6sOv4FnhUyVeP7IeBFLO2dzloG0AhIjvPCZk+s4nQRhKNc fhdHIAkSYwC81KLa6bn1Z0ny9uQ7ijlncym7GIQgpjuUvElhNar9awRCa uq03qNrQ7s4OYAORjDbibrCZVK1M5H7RvqnyxQqY3RYPZk6RggUy6TmLD 7ST8glz1mmimr8dujkU0euGfaGt5lKELrnKjPc+DkjU27hcvYIyK9kRjI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="698217" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="698217" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 08:14:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="778939792" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="778939792" Received: from silpixa00401385.ir.intel.com ([10.237.214.155]) by orsmga008.jf.intel.com with ESMTP; 28 Sep 2023 08:14:35 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 1/2] event/sw: add self tests to fast tests Date: Thu, 28 Sep 2023 16:14:27 +0100 Message-Id: <20230928151428.895642-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230928151428.895642-1-bruce.richardson@intel.com> References: <20230928151428.895642-1-bruce.richardson@intel.com> 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 By reducing the iterations for the final stage of the self-test, the SW eventdev tests can be fast enough for consideration in the fast-tests suite. This enables them to be run as part of the regular patch CI tests, and therefore increases the chances of catching any errors in patches that may affect this component. Signed-off-by: Bruce Richardson Acked-by: Harry van Haaren --- app/test/test_eventdev.c | 2 +- drivers/event/sw/sw_evdev_selftest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index c51c93bdbd..c94c15bef1 100644 --- a/app/test/test_eventdev.c +++ b/app/test/test_eventdev.c @@ -1259,7 +1259,7 @@ test_eventdev_selftest_cn10k(void) REGISTER_FAST_TEST(eventdev_common_autotest, true, true, test_eventdev_common); #ifndef RTE_EXEC_ENV_WINDOWS -REGISTER_DRIVER_TEST(eventdev_selftest_sw, test_eventdev_selftest_sw); +REGISTER_FAST_TEST(eventdev_selftest_sw, true, true, test_eventdev_selftest_sw); REGISTER_DRIVER_TEST(eventdev_selftest_octeontx, test_eventdev_selftest_octeontx); REGISTER_TEST_COMMAND(eventdev_selftest_dpaa2, test_eventdev_selftest_dpaa2); REGISTER_TEST_COMMAND(eventdev_selftest_dlb2, test_eventdev_selftest_dlb2); diff --git a/drivers/event/sw/sw_evdev_selftest.c b/drivers/event/sw/sw_evdev_selftest.c index 3aa8d76ca8..3f0d9806f2 100644 --- a/drivers/event/sw/sw_evdev_selftest.c +++ b/drivers/event/sw/sw_evdev_selftest.c @@ -28,7 +28,7 @@ #define MAX_PORTS 16 #define MAX_QIDS 16 -#define NUM_PACKETS (1<<18) +#define NUM_PACKETS (1 << 17) #define DEQUEUE_DEPTH 128 static int evdev;