From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=A9L5Ta8uZDSQZNqzga+93Iuu50jiukW8TQtPanQdKsg=; b=rIE37vrhz+I+mo5urZXa61QkcFsRIhCkvjiPxHJAAYjdx1B/r0HWTo8r+jeQ33cg3F 7/TeEB3zSE1a/V0mEXG/MnTZhNRpyTaRpn36pNdrFKJnvxJwNgu/0ST2Jbk4iyPKOqf6 +KsqROxWlUf/i6MlbSLwmg4w6gQX8/SiW/siybJ3moAIRMiNU8S3J8YH3Jn2ZPVTF86j l6BanImjkUSqlDHLk1yGvHHbSCj5d0I0c0uxOTNbuYUyVAF7/fWcdA2trNBzYixYMid1 5rS5l9K35KpZuidYztZY46JeLM8RLtI65UsgDh6UK2qQH51AGgnD+JRcWcrpeUuT5EdR eIUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=A9L5Ta8uZDSQZNqzga+93Iuu50jiukW8TQtPanQdKsg=; b=DYo3MU2kjjKbiRnlbxVJTQgf42GpswHYN39i5UdkwbeQs0N/0vXSOVQIQbPvWeP/4U qSSE1eRhWibkGlmMqHOWeSuHm0u1nWr2YqMYiC5qzJ+g5R5Mz0WucZj8SRF7WgmikC5z Fz85QXHvY7Qrmcco75Ytchtc1WxKWiQKN9rtqlx3SOLiLc6FSsqM2MEbnooQ4om/ysaV K+veAVmENuLbi6uPpd6Afj6yE1aQu3RvT9kNTdS37K6WJQDJQYux95RlvkXHKOMbe56l oDjqlU7lhqmsEloDBvF1wt8RNTiQBU1P8HfZUdUSdfAs/vXOkVwxcNR8HXpS999kBZgy uUEQ== X-Gm-Message-State: AIVw112bueMlqaU1h183UKyoFbDqTY/k6FHGl+s6BgReH5DI8dxSEJeK Yz/3K9AmcBFHftqJ X-Received: by 10.80.179.209 with SMTP id t17mr8411218edd.62.1500066747478; 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) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Fri, 14 Jul 2017 17:11:58 -0400 Message-Id: <20170714211213.34436-1-jblunck@infradead.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170711232512.54641-1-jblunck@infradead.org> References: <20170711232512.54641-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 00/15] devargs fixes 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: Fri, 14 Jul 2017 21:12:28 -0000 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