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 5DF24A0C44; Mon, 12 Apr 2021 10:29:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7C80140FCB; Mon, 12 Apr 2021 10:29:34 +0200 (CEST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mails.dpdk.org (Postfix) with ESMTP id 45B2B4068E for ; Mon, 12 Apr 2021 10:29:31 +0200 (CEST) Received: by mail-lf1-f41.google.com with SMTP id x13so9878853lfr.2 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=Bm+3+10gPjj8Z3nAaRgfT0y1yeQYEbtVzQ36q4Isoac+aFBwfqupzw08gGRi6HHr2k K75/mub1FJ7dhEue9Ujg+WtpZPOnrkHvJmiLr1yRdvQKO9mSTMt4zJyOOk7AWEREU6/3 87qLFadP/tw3bvIK4GrqHS5xElV+mD9Nln4sX/2wcXdZ2kxpxARWvV4386jyfoxtUiuV A9h9cNNQq5ZFzndsnmctudF0LflpgfGx6f0EdvdBDbUyL6UOJuHvEoZ1onT1x3HM43LZ RC+gY8ioSGi/sDEIdxcA3yiLLiwFa5p6uLL7nPTKq2eAhY867UiInS33kgX0RPuMg7YX psww== X-Gm-Message-State: AOAM531UMixQAt95FKa/5ETs/ct329agxtzPVCTfqtht0pJngvrX+NRR PYPQ4mCY7RLvDcq3+rv6Zo/elQ== 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-dev] [PATCH 3/3] test: run lock-free stack tests when supported 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 Sender: "dev" 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