From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id D281D4F9C for ; Thu, 30 Aug 2018 17:42:34 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id e2-v6so4063745pgv.5 for ; Thu, 30 Aug 2018 08:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5taFIRlEbF3FESuqJe9orEdNtOg1FfbGsmnHUkgJNXc=; b=C6KyzM1tcvXfE2pdQcmlg5e3Ze3u5WbvV8Kt0nYiNkd805/9LQcYngKvdjsjcr+1SR 0dmpUMZYkvukh4Cr/R9LOaGUFOex/MS5hnNT0ZWzP2nMm9psktkcODX6pDEOSWI+atm+ Rgz2SvZu9NKPR/QTU0sipZVd4HgMTrHh5IfOX5ZDs+JkqQaAmbS+P2d2LWnNFvuy+NB4 WPCIUvUdhEIBGFkdIJtz9fkqY72rtHWz246xE3EjYL94BNbInBly9xln4BkmvfKlBJZv glepr6VfJr8W6AtsvuJSrDfGK8w5IrZGUa+781WCNLVDxBZZNWjsh1PHUj9X5qs6Oyd0 foCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5taFIRlEbF3FESuqJe9orEdNtOg1FfbGsmnHUkgJNXc=; b=Xr5psHF8x5pxzkZr0KlgtBrUE+4DdMDanFNcLsFjxQgqZADF021eTg+pdeiaVe2auQ /Vj9IvdbwH9UCFZhuE2QAsbmg5nvE0ChYUVJQHKQVFx/5NybJ745lclnL6O/vt/lSInc BK65nii3mct+BTkW9xa7pipLGFe8Yb0AF5OqKHdDdm+HfRPCYbc+uzqFq0xaQp4i/9ej KfE3N0tdXGA8JsmFtUu+7+C/hGBmqr1r4Am6Ja9/zvM5gwhiPUJBNhCeZVUNGl0xtzTD pw8tble7UUXHuDIhFwTk6yrKkmYtk26qpVMSmNTWCyw1LKQpGACYgTKgLvx2gmC5xCbw mgEQ== X-Gm-Message-State: APzg51AzUaMiXLyWo3TSDzxtKq8HG6q0QjOdPKnjkEATVqMwz5iKM5Pq VOb0lz4991JTeQwXT2Lg4ocS6A== X-Google-Smtp-Source: ANB0VdaKGN1B9IC/1GSp9zSV8ba8DwJY9W+DI2ECCM7pnswCn5/0SxoJGPIN4Zoggle2ps4s0dCvuA== X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr10043804pgc.367.1535643753852; Thu, 30 Aug 2018 08:42:33 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id l79-v6sm11034615pfi.172.2018.08.30.08.42.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 08:42:33 -0700 (PDT) Date: Thu, 30 Aug 2018 08:42:26 -0700 From: Stephen Hemminger To: Gaetan Rivet Cc: dev@dpdk.org, Shreyansh Jain Message-ID: <20180830084226.4ad20e7a@xeon-e3> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1 00/13] Implement new devargs framework 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: , X-List-Received-Date: Thu, 30 Aug 2018 15:42:35 -0000 On Thu, 30 Aug 2018 15:41:51 +0200 Gaetan Rivet wrote: > Last release saw the introduction of the new devargs system. > To this end, the "class" abstraction was described as well > as a common API for querying and declaring devices. > > This patchset implements the "eth" device class and the > query/declaration part of the framework for PCI and vdev buses, > enabling a minimal support for the new system. > > A new testpmd command is added to test device querying. > > Devargs parsing is extended in the relevant buses to test > device declaration. This part uses the new "rte_eth_dev_create" API, > introduced last release and used by only two PMDs, for now. > > The new devargs format is also made available through the new --dev parameter. > > Next work is to generalize use of new API for eth_dev creation, > compatibility layer for -w, -b and --vdev with --dev, and devargs unit test. > > Gaetan Rivet (13): > bus/pci: implement device iteration and comparison > bus/pci: add device matching field id > bus/vdev: implement device iteration > bus/vdev: add device matching field driver > ethdev: add private generic device iterator > ethdev: register ether layer as a class > ethdev: add device matching field name > app/testpmd: add show device command > bus/pci: pre-process declarative PCI devargs > bus/vdev: pre-process declarative vdev devargs > bus/pci: process declarative PCI devargs > ethdev: process declarative eth devargs > eal: add generic dev parameter > > app/test-pmd/cmdline.c | 54 +++++++ > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 24 ++++ > drivers/bus/pci/Makefile | 3 +- > drivers/bus/pci/bsd/pci.c | 5 + > drivers/bus/pci/linux/pci.c | 5 + > drivers/bus/pci/meson.build | 6 +- > drivers/bus/pci/pci_common.c | 6 +- > drivers/bus/pci/pci_params.c | 139 ++++++++++++++++++ > drivers/bus/pci/private.h | 54 +++++++ > drivers/bus/vdev/Makefile | 3 +- > drivers/bus/vdev/meson.build | 5 +- > drivers/bus/vdev/vdev.c | 20 +-- > drivers/bus/vdev/vdev_params.c | 112 +++++++++++++++ > drivers/bus/vdev/vdev_private.h | 32 +++++ > lib/librte_eal/common/eal_common_devargs.c | 4 + > lib/librte_eal/common/eal_common_options.c | 36 ++++- > lib/librte_eal/common/eal_options.h | 2 + > lib/librte_ethdev/Makefile | 4 +- > lib/librte_ethdev/eth_private.c | 31 ++++ > lib/librte_ethdev/eth_private.h | 31 ++++ > lib/librte_ethdev/meson.build | 4 +- > lib/librte_ethdev/rte_class_eth.c | 148 ++++++++++++++++++++ > lib/librte_ethdev/rte_ethdev.c | 7 + > 23 files changed, 714 insertions(+), 21 deletions(-) > create mode 100644 drivers/bus/pci/pci_params.c > create mode 100644 drivers/bus/vdev/vdev_params.c > create mode 100644 drivers/bus/vdev/vdev_private.h > create mode 100644 lib/librte_ethdev/eth_private.c > create mode 100644 lib/librte_ethdev/eth_private.h > create mode 100644 lib/librte_ethdev/rte_class_eth.c > > -- > 2.18.0 > I have devargs for vmbus queued.