From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH v2 00/15] devargs fixes Date: Fri, 14 Jul 2017 17:11:58 -0400 Message-ID: <20170714211213.34436-1-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> To: dev@dpdk.org Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 065A92882 for ; Fri, 14 Jul 2017 23:12:27 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id i127so33667176wma.0 for ; Fri, 14 Jul 2017 14:12:27 -0700 (PDT) Received: from localhost.localdomain ([37.228.147.16]) by smtp.gmail.com with ESMTPSA id c11sm4892223eda.0.2017.07.14.14.12.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 14 Jul 2017 14:12:26 -0700 (PDT) In-Reply-To: <20170711232512.54641-1-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The changes to enum rte_devtype that got merged into 17.08-rc1 are breaking API without prior notice. This series is reworking the rte_devargs changes in a way hopefully compliant to the new failover PMD and still keeping API compatible with earlier releases. The introduced changes to 17.08-rc1 are trading the tightly coupling of struct rte_devargs to the PCI and vdev bus against the struct rte_bus. The changes proposed in this series decouple struct rte_devargs from the new dependencies. Changes since v1: - explicitly pass busname to rte_eal_devargs_parse() and validate it - better explain why changes are done Jan Blunck (15): Revert "devargs: make device types generic" devargs: fix unittest devargs: extend unittest devargs: deprecate enum rte_devtype based functions pci: use scan_mode configuration bus: add configuration interface for buses devargs: use bus configuration interface to set scanning mode devargs: use existing functions in rte_eal_devargs_parse() devargs: add busname string field devargs: use busname pci: use busname vdev: use busname devargs: pass busname argument when parsing devargs: remove type field devargs: remove bus field doc/guides/rel_notes/deprecation.rst | 7 + drivers/net/virtio/virtio_pci.c | 3 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + lib/librte_eal/common/eal_common_bus.c | 16 +++ lib/librte_eal/common/eal_common_devargs.c | 168 +++++++++++++----------- lib/librte_eal/common/eal_common_options.c | 6 +- lib/librte_eal/common/eal_common_pci.c | 15 +-- lib/librte_eal/common/eal_common_vdev.c | 3 +- lib/librte_eal/common/include/rte_bus.h | 9 ++ lib/librte_eal/common/include/rte_devargs.h | 32 +++-- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + test/test/test_devargs.c | 55 +++++--- 12 files changed, 188 insertions(+), 128 deletions(-) -- 2.13.2