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 EA47CA0513; Wed, 15 Jan 2020 12:06:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1F30E1C032; Wed, 15 Jan 2020 12:06:38 +0100 (CET) Received: from mail-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) by dpdk.org (Postfix) with ESMTP id 8786A1C029; Wed, 15 Jan 2020 12:06:36 +0100 (CET) Received: by mail-il1-f193.google.com with SMTP id c4so14479993ilo.7; Wed, 15 Jan 2020 03:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2lwcZJJue3/h6F8TKPpvuAFLRmWnmeao7t6FI/XOD/8=; b=YFWa764u1cDWg9wwtl2I+SV5f+zf4+g36IsyJtHlcS76nTGgGndMrt5BpgqN8O8GoB z3QX5/C/LBHO2PDMAXZQ2jwA5ppYo8k4uJ9yI650S2iVMgmFSfVXc4IW5WaNSDRbOMzY p0kBQdUjrOxxk2LAxG2eV8UaJp9evLcVSXrQyTzp+48xgR50+6294r15/gWR6jHa9PL0 Mkw3Rr0hLWSYIedsYUrI+L2SsPINV5dFYa+1//XGMGMA1ERvE5WHWJmtm5XXfl0bIAUm ogeL/iF0HmrwYTqp0f68QmIuRUCbVlwtEcEHmmdTtRiibaAgnEXi1ilbPcG3LVuQBlVa vEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2lwcZJJue3/h6F8TKPpvuAFLRmWnmeao7t6FI/XOD/8=; b=bJSdN83crm8TGuK/Z0K4UOBI0koZXkY8su0Rx1WX8oHgQ12biJk5XIp7AphFHV02dq KHBevkAiKJ0VEUddatIKToQEZiUenIZK+U6yhEz+stcOVqBqfPCI0T4FTYzrmAMrr0IP qth7EPqtkZN3olnLrkxFYHQGksS3jVyUPyB0z25aSdETLRxdsg/iNikiV8ULKajQ4lQB BBmXCm8hG+WXxEbPeMg2Ee8S/IJbDhweu/LBxB7CczM0aetsBptGc12Pt6Y7IraoT6Gu Myko0OzYXm0OZxMCppwHTFAGtK9uoT/kisUXZ90h/sjoBPSb9o0oCjj4a7z7MV3Wc9Xx ra4A== X-Gm-Message-State: APjAAAUSOLgT4avAUWelAZDk7PyO9XJmdHFJXKwHZk9ZvuJUgca7q4ua PerNIF7L28oqZU8eH/blSGTiXgEqVL3aRFJxp7o= X-Google-Smtp-Source: APXvYqwzI4D44BbMiJXqNHArBE7/etyEQBY4C4ibi4IyhU9bm7rtQ+THbwJuf/ABuBer+ocVtBbsIsGuZeHLAjFGftM= X-Received: by 2002:a92:5e46:: with SMTP id s67mr2968477ilb.162.1579086395765; Wed, 15 Jan 2020 03:06:35 -0800 (PST) MIME-Version: 1.0 References: <20200106074243.2336-1-pbhagavatula@marvell.com> In-Reply-To: <20200106074243.2336-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Wed, 15 Jan 2020 16:36:19 +0530 Message-ID: To: Pavan Nikhilesh Cc: Jerin Jacob , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 1/2] test/eventdev: fix unintended vdev creation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Mon, Jan 6, 2020 at 1:12 PM wrote: > > From: Pavan Nikhilesh > > 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 Series applied to dpdk-next-eventdev/master. Thanks. > --- > 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 427dbbf77..56155838d 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.17.1 >