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 68AD7432C8; Tue, 7 Nov 2023 17:37:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C65B402D4; Tue, 7 Nov 2023 17:37:26 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 11009402A1; Tue, 7 Nov 2023 17:37:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699375044; x=1730911044; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TcLkfYevdC0krmgFGSNNZQgYALbbREit9IOzhYJ61us=; b=W20jsQZmuebIOcaQSG7Q1jkdc10LoaalNA2vwCuB6ExvaKQ2EVefmI0q vkknGpHJYuxdeZ4l2oEW/d7sbBAG5i5rMG68cx/yLoc6La1qoDmSQG8VJ AB+Z8/8rXILRM239vIRHIv+hBPHrPR8wYXJcsk5h+SmAV8jyjf0FYQYQL TxfMfyP0vzXcwQv3IcRnG7m3IF0NzJbxQCieeiS2gEnnvXPRICYw/nNfI 6y8XCmKCKrCBxopD2OmP+d/Nzk51Mfe8IsZhjr7WyDAcqezesyuoL89fT qzRyhrV7iPB0/un1S6wJgX6z7SvbFji1vkCWwxNX/I4hZVjN+uxI115q5 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="393447723" X-IronPort-AV: E=Sophos;i="6.03,284,1694761200"; d="scan'208";a="393447723" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2023 08:37:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="756250055" X-IronPort-AV: E=Sophos;i="6.03,284,1694761200"; d="scan'208";a="756250055" Received: from silpixa00401385.ir.intel.com ([10.237.214.164]) by orsmga007.jf.intel.com with ESMTP; 07 Nov 2023 08:37:21 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Abdullah Sevincer , stable@dpdk.org, Bruce Richardson Subject: [PATCH] event/dlb2: fix name check in selftest Date: Tue, 7 Nov 2023 16:37:13 +0000 Message-Id: <20231107163713.55037-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.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 When running the dlb2 selftests the driver name check was incorrect, causing all checks to be skipped for a dlb2 device. We use the "event_dlb2" only as a prefix check, as driver may have suffixes, e.g. appear as "event_dlb2_pf". Fixes: 6f1b82886e8a ("event/dlb2: add self-tests") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- drivers/event/dlb2/dlb2_selftest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/dlb2/dlb2_selftest.c b/drivers/event/dlb2/dlb2_selftest.c index 1863ffe049..62aa11d981 100644 --- a/drivers/event/dlb2/dlb2_selftest.c +++ b/drivers/event/dlb2/dlb2_selftest.c @@ -1475,7 +1475,7 @@ do_selftest(void) int test_dlb2_eventdev(void) { - const char *dlb2_eventdev_name = "dlb2_event"; + const char *dlb2_eventdev_name = "event_dlb2"; uint8_t num_evdevs = rte_event_dev_count(); int i, ret = 0; int found = 0, skipped = 0, passed = 0, failed = 0; @@ -1489,7 +1489,7 @@ test_dlb2_eventdev(void) /* skip non-dlb2 event devices */ if (strncmp(info.driver_name, dlb2_eventdev_name, - sizeof(*info.driver_name)) != 0) { + strlen(dlb2_eventdev_name)) != 0) { skipped++; continue; } -- 2.39.2