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 0A111A0C44 for ; Mon, 12 Apr 2021 10:29:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB6EB140FE1; Mon, 12 Apr 2021 10:29:35 +0200 (CEST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by mails.dpdk.org (Postfix) with ESMTP id 3EBE74014E for ; Mon, 12 Apr 2021 10:29:31 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id n138so20061399lfa.3 for ; Mon, 12 Apr 2021 01:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t/LKaw7ZprrV6RprHoR1PQbQcTZerd28mzYHOegWeAI=; b=w0KYhLC8ePuyZMCahtiFrCWnmZjnXO1aCCWNWf65vKyzVnNHzjdh0OjrTRlTXhLn8V 5vIfKGd87rHwFUNM8/b4lyEI3jkTkmarkSIb21VgmWVtr2l2Y+EJKgG7VzdQjT+W0FyK 9Ln/F4fv90CqTrh3Nyt1WuBCL0FluESMX5lAUuk+bseySy50ZEsehCehwnwV/FCwLHSH e7237JTl/42uInzRekx1gIQ1a40eELxMwhqdlMBvAlwtcEh+O5lrR27AbqENHKBI1A1K Qc/N75nEl2LaKteOohZjIp9eryUnY9H+sg8jj1EbX1T0UsihtLU4VCsP2kUITAU/yDlz EOJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t/LKaw7ZprrV6RprHoR1PQbQcTZerd28mzYHOegWeAI=; b=C2LBPPG7Mm5sKGmw6OsZdeiaHNankcVOx7xf5OxFNkBouAm3GSFdBQA/1SzOHaafQY hKEpJ94kSjMPoXxpjXnNfl1W3yDs/hxerh4DIIlvYVmAXTnnWb+VTg8fJ8C1w321RvsZ TA4DYMtcd9kruOKshuKR/RiMlCcSmfYAPZ30b80o1DNylN0pNvNTPNmdKCBiuzkdha3i kGC3QW5IegmY4BB1xdocG7cyjYY7yOmrPUinjUQUvmkEJXVavButMloIt0LuYH9xiuz3 LjSb5tWOJPwEzbZ7R80I5DjVo/o+2kfLFjAvTfSPFAsRU4RrTIY1CGNMlRlxnd440B+P 97Qg== X-Gm-Message-State: AOAM531GuqsErBLNoJk2aTxeVX8up47nDSqoS/YxrFU2hK8EdIkc4hCc HMqwrceSabHo1YJs21wrw/PGYw== X-Google-Smtp-Source: ABdhPJzezmmY/qdSe+fH0nUzHcHH1LUvR6UBQ8MYnTE6qAlOD/AtsbqVazG0xoriKIcls1vi1ErHog== X-Received: by 2002:a05:6512:3d04:: with SMTP id d4mr18436704lfv.102.1618216170832; Mon, 12 Apr 2021 01:29:30 -0700 (PDT) Received: from toster.semihalf.com (host-193.106.246.139.static.3s.pl. [193.106.246.139]) by smtp.gmail.com with ESMTPSA id x4sm2691118ljd.112.2021.04.12.01.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 01:29:30 -0700 (PDT) From: Stanislaw Kardach To: Olivier Matz Cc: dev@dpdk.org, Stanislaw Kardach , stable@dpdk.org Date: Mon, 12 Apr 2021 10:29:01 +0200 Message-Id: <20210412082901.652736-4-kda@semihalf.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210412082901.652736-1-kda@semihalf.com> References: <20210412082901.652736-1-kda@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 3/3] test: run lock-free stack tests when supported X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Use the recently added RTE_STACK_LF_SUPPORTED flag to disable the lock-free stack tests at the compile time. Perf test doesn't fail because rte_ring_create() succeeds, however marking this test as skipped gives a better indication of what actually was tested. Signed-off-by: Stanislaw Kardach Cc: stable@dpdk.org --- app/test/test_stack.c | 4 ++++ app/test/test_stack_perf.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/test/test_stack.c b/app/test/test_stack.c index 02422a32d..00efb38e2 100644 --- a/app/test/test_stack.c +++ b/app/test/test_stack.c @@ -373,7 +373,11 @@ test_stack(void) static int test_lf_stack(void) { +#if defined(RTE_STACK_LF_SUPPORTED) return __test_stack(RTE_STACK_F_LF); +#else + return TEST_SKIPPED; +#endif } REGISTER_TEST_COMMAND(stack_autotest, test_stack); diff --git a/app/test/test_stack_perf.c b/app/test/test_stack_perf.c index 3590625c4..4ee40d5d1 100644 --- a/app/test/test_stack_perf.c +++ b/app/test/test_stack_perf.c @@ -349,7 +349,11 @@ test_stack_perf(void) static int test_lf_stack_perf(void) { +#if defined(RTE_STACK_LF_SUPPORTED) return __test_stack_perf(RTE_STACK_F_LF); +#else + return TEST_SKIPPED; +#endif } REGISTER_TEST_COMMAND(stack_perf_autotest, test_stack_perf); -- 2.27.0