From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31D2CA051C for ; Tue, 11 Feb 2020 12:23:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2AA1D1BF7B; Tue, 11 Feb 2020 12:23:54 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 27DC41BF83 for ; Tue, 11 Feb 2020 12:23:52 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id w12so11890096wrt.2 for ; Tue, 11 Feb 2020 03:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cu3hce+RfAmGOSeM9iNYKbpd5O5+6/Bg/MLrzNAgL3M=; b=csIuIJRjxqq0YhS/6WAsxdw1wqfQAXB/UFO7yzAlKg3O+C2uvPJt6BkRvZdUVgzBb7 T15L7ioD+unYoTaWcb7pRnQZSDbKwRZo6WbArcuuqwwIn3R+W3jFC2KqXtX/91pZv+zA 5mz6eMqqrhtKPsx3MO9lf9+Up7GFEUi97Xvzi5LaIScg901k0WjnaAz7M3r+nJcW/LpR w2T69c6rrFvWFXcxqgtfhuc8eQMN4Ji/CzOtm9peHjjb5KnvtVvvND40+3x9Q3oPpZ2j ivoAkMhJTIKerooPzHpPuEWEPJ2huSXWkFrGr7P8gtEK/7LoEA9hWx/2hRXsVaVWgrEV nFAw== 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=cu3hce+RfAmGOSeM9iNYKbpd5O5+6/Bg/MLrzNAgL3M=; b=tDBqNaZ34CPce3mRrB2EtmCWHse4COZgxxFp8yt2Hbt+Qs+VkkPIXSkReL+SlvTvzC t1lbTvL6HhiNaHFIij2nPIMin6uGpU0UmfQhFRhY8SL1EKjzQYLtM+7oq2DSWuAWrAWR pf8DDc57H+zZ0I8UuHqHHYWcIVng8EBjseh6DA4R8A8VE8tBPJn3KR4HCktPaCFlN01E yq+i5ILr9EeAhRTiJeS3QCLiTmQC5DXdif/AooMX8yKkG6IEO+2+S4aHwzWBRtfMZJ07 a23Qj62dcs5K3Aa6wH/iIQL6Y5+AYOdeY/R8xVD2K26ixm6U8Ywsr5NijHzPhtlGc+E+ lSuQ== X-Gm-Message-State: APjAAAUqDiTmEOy8+lNmqJOKCYtuvTlDEWWZUt5tQNyfYfAxZL1EO3FW 97WY53r8FnRxJjLRwqaAylDKN3Ke X-Google-Smtp-Source: APXvYqzgPlVc5fQ9dt0H0Ht4lMfKdK8ljuFQ53GrUbkqD+v5nfloub79b2YdhIsPU3sx4w1sUSF9Hw== X-Received: by 2002:adf:ca07:: with SMTP id o7mr7888459wrh.49.1581420231901; Tue, 11 Feb 2020 03:23:51 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id d16sm5447224wrg.27.2020.02.11.03.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:23:51 -0800 (PST) From: luca.boccassi@gmail.com To: Pavan Nikhilesh Cc: Jerin Jacob , dpdk stable Date: Tue, 11 Feb 2020 11:19:25 +0000 Message-Id: <20200211112216.3929-19-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'test/event: fix unintended vdev creation' has been queued to stable release 19.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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" Hi, FYI, your patch has been queued to stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 20c4cd911814c361895d6eadf274cf5cceea12f8 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Mon, 6 Jan 2020 13:12:41 +0530 Subject: [PATCH] test/event: fix unintended vdev creation [ upstream commit 2155b9ca1a0d4aaf25d51f63034bc9357f66b96a ] Virtual eventdevice should only be created when there is no existing device with the same name. Fixes: e0f4a0ed4237 ("test: skip tests when missing requirements") Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- app/test/test_eventdev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index 427dbbf77f..56155838d8 100644 --- a/app/test/test_eventdev.c +++ b/app/test/test_eventdev.c @@ -996,9 +996,13 @@ test_eventdev_common(void) static int test_eventdev_selftest_impl(const char *pmd, const char *opts) { - rte_vdev_init(pmd, opts); + int ret = 0; + if (rte_event_dev_get_dev_id(pmd) == -ENODEV) + ret = rte_vdev_init(pmd, opts); + if (ret) return TEST_SKIPPED; + return rte_event_dev_selftest(rte_event_dev_get_dev_id(pmd)); } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:39.785737480 +0000 +++ 0019-test-event-fix-unintended-vdev-creation.patch 2020-02-11 11:17:38.315999776 +0000 @@ -1,13 +1,14 @@ -From 2155b9ca1a0d4aaf25d51f63034bc9357f66b96a Mon Sep 17 00:00:00 2001 +From 20c4cd911814c361895d6eadf274cf5cceea12f8 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Mon, 6 Jan 2020 13:12:41 +0530 Subject: [PATCH] test/event: fix unintended vdev creation +[ upstream commit 2155b9ca1a0d4aaf25d51f63034bc9357f66b96a ] + Virtual eventdevice should only be created when there is no existing device with the same name. Fixes: e0f4a0ed4237 ("test: skip tests when missing requirements") -Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob