From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id 8CEA27CC3 for ; Wed, 21 Jun 2017 01:37:11 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id r103so111623214wrb.0 for ; Tue, 20 Jun 2017 16:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=06DKtQbYTLVoVAEaU7DlhjzGKUg/Jkj+0zwkBruU1rI=; b=ONRHQ8dHTreyfND5+seo77XQEjuPAFsMeJVpC9V2lY5XsoP07fiyewAgaSw8VdudVj 5o9LMMEM/aWLFQmSI6UI29J3/Fsw6icLnCMbxDen4gzryrpRaFH8oKn6uWL6aW11JKim JzFzpR75FtDO+dSCv72DLrfXOOtJmVJS+xuX9x4u9WL5yFgqMNWcPVZ4QMmXiAuxFG2Y SWfPzdasuM2IfCb0lS+TLt3d+N+r85v3KV3UfKXdtPWW2D5kdb73LfU749v/cqlbj0f8 k6zPJBJSfJTiXKZ7TksMg2gLm2+2b2BpJC6zuXPVZOSKYXGw5nLzElkgVHGtaFsPHxQU lHUA== 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; bh=06DKtQbYTLVoVAEaU7DlhjzGKUg/Jkj+0zwkBruU1rI=; b=shdsGDWgzMT/4Wb4WGkDDf1T4OR6zkIYXzWR4MxJFNausBGRQt0lHiXN2XA2KX+Nf0 x5DYztQIvjwiB3agOLCa1SACIuLy5t8RVI52GquC53dSptYeb353jTq34PH3jVaLlatZ 4sSjZiCToLf9I4tlpL9jf4ZXuGsuENNP1kd4+36sqUCSLzo/8fWj6jm6bJm/8CUr6SnF laqw9zJMHnvZo/O5ybP4hQrgmlgqxDCskYnTBGlGf9qIC6dGA8M/i5cPfn5MmRUGFgyL RXh7EPGOo3V34GjvskWaLo7Enezd8aXOsp4w37lAbSJo3HgyMN+wFkZ3Etur2nnayR74 kDZQ== X-Gm-Message-State: AKS2vOxEqDS6Aol+9aTK+sm/v7nhOKZhEsxBUgzasfmE2ntqoPj0c4JZ 7kXNBpnpcjW1JhBpaiE= X-Received: by 10.223.172.231 with SMTP id o94mr22011204wrc.201.1498001830873; Tue, 20 Jun 2017 16:37:10 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 92sm16634785wrb.55.2017.06.20.16.37.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 16:37:10 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Jun 2017 01:36:48 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 0/9] bus/pci: remove PCI bus from EAL 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: Tue, 20 Jun 2017 23:37:12 -0000 This patchset moves the PCI bus out of the EAL to the drivers/bus subdirectory. Almost all dependencies have been worked out, only remains KNI to be made fully independent from the PCI bus in its lib section. This patchset includes a patch disabling it, that should be removed before integration, once all dependencies have been fixed. The pmdinfogen app has been moved to the drivers subdirectory. This allows using the dependency syntax from the build system, as this app also depends on the PCI bus. The dependency graph is as follows: drivers/bus/pci | + drivers/pmdinfogen | + drivers/net The compilation has been tested on debian 8, Redhat 7.2 and FreeBSD 10.3 This patchset depends on: eal: complete attach / detach support http://dpdk.org/ml/archives/dev/2017-June/067057.html http://dpdk.org/dev/patchwork/patch/24969/ v1 -> v2: This patchet now depends also on the eventdev PCI dependency fix: [PATCH v2 0/4] Remove PCI and VDEV dependency from eventdev library http://dpdk.org/ml/archives/dev/2017-June/067402.html http://dpdk.org/dev/patchwork/patch/25092/ * Fixes a few PCI dependency left * While wholes files are moved, fixed a few checkpatch warnings to start anew. * Updated eventdev and cryptodev build dependencies People who want to evaluate / test the whole system can clone: https://github.com/grivet/dpdk/tree/master-net v3: Further checkpatch fixes have been applied upon the new bus. Both cryptodev and pdump have been fixed. The patches disabling them have been removed. This patchset now depends on both the cryptodev and pdump dependency fixes: [dpdk-dev] [PATCH 00/12] Remove cryptodev driver http://dpdk.org/ml/archives/dev/2017-May/066382.html [dpdk-dev] [PATCH] pdump: remove unnecessary header file http://dpdk.org/ml/archives/dev/2017-June/067785.html My tree has been updated to follow the latest state of the patchsets currently live on the ML: https://github.com/grivet/dpdk/tree/master-net Gaetan Rivet (9): kni: disabled by default eal: expose rte_eal_using_phys_addrs ethdev: remove useless PCI dependency bus: properly include rte_debug pmdinfogen: move to drivers subdirectory bus/pci: introduce pci bus bus/pci: follow checkpatch drivers: update eventdev dependencies drivers: update cryptodev dependencies GNUmakefile | 2 +- MAINTAINERS | 2 +- buildtools/Makefile | 36 -- buildtools/pmdinfogen/Makefile | 47 -- buildtools/pmdinfogen/pmdinfogen.c | 422 -------------- buildtools/pmdinfogen/pmdinfogen.h | 125 ---- config/common_base | 10 + config/common_linuxapp | 2 +- drivers/Makefile | 7 +- drivers/bus/Makefile | 2 + drivers/bus/pci/Makefile | 60 ++ drivers/bus/pci/bsd/Makefile | 32 ++ drivers/bus/pci/bsd/rte_bus_pci_version.map | 21 + drivers/bus/pci/bsd/rte_pci.c | 671 ++++++++++++++++++++++ drivers/bus/pci/include/rte_pci.h | 656 +++++++++++++++++++++ drivers/bus/pci/linux/Makefile | 37 ++ drivers/bus/pci/linux/rte_bus_pci_version.map | 21 + drivers/bus/pci/linux/rte_pci.c | 722 +++++++++++++++++++++++ drivers/bus/pci/linux/rte_pci_init.h | 97 ++++ drivers/bus/pci/linux/rte_pci_uio.c | 571 +++++++++++++++++++ drivers/bus/pci/linux/rte_pci_vfio.c | 684 ++++++++++++++++++++++ drivers/bus/pci/linux/rte_vfio_mp_sync.c | 424 ++++++++++++++ drivers/bus/pci/private.h | 169 ++++++ drivers/bus/pci/rte_pci_common.c | 601 ++++++++++++++++++++ drivers/bus/pci/rte_pci_common_uio.c | 234 ++++++++ drivers/pmdinfogen/Makefile | 47 ++ drivers/pmdinfogen/pmdinfogen.c | 422 ++++++++++++++ drivers/pmdinfogen/pmdinfogen.h | 125 ++++ lib/librte_eal/bsdapp/eal/Makefile | 3 - lib/librte_eal/bsdapp/eal/eal.c | 1 - lib/librte_eal/bsdapp/eal/eal_pci.c | 672 ---------------------- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 15 - lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_bus.c | 1 + lib/librte_eal/common/eal_common_pci.c | 603 -------------------- lib/librte_eal/common/eal_common_pci_uio.c | 233 -------- lib/librte_eal/common/eal_private.h | 138 ----- lib/librte_eal/common/include/rte_pci.h | 601 -------------------- lib/librte_eal/linuxapp/eal/Makefile | 12 +- lib/librte_eal/linuxapp/eal/eal.c | 1 - lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 - lib/librte_eal/linuxapp/eal/eal_memory.c | 3 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 723 ------------------------ lib/librte_eal/linuxapp/eal/eal_pci_init.h | 97 ---- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 567 ------------------- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 674 ---------------------- lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 424 -------------- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 16 +- lib/librte_eal/linuxapp/eal/rte_memory_linux.h | 64 +++ lib/librte_ether/rte_ethdev.c | 1 - mk/rte.app.mk | 2 + 51 files changed, 5687 insertions(+), 5416 deletions(-) delete mode 100644 buildtools/Makefile delete mode 100644 buildtools/pmdinfogen/Makefile delete mode 100644 buildtools/pmdinfogen/pmdinfogen.c delete mode 100644 buildtools/pmdinfogen/pmdinfogen.h create mode 100644 drivers/bus/pci/Makefile create mode 100644 drivers/bus/pci/bsd/Makefile create mode 100644 drivers/bus/pci/bsd/rte_bus_pci_version.map create mode 100644 drivers/bus/pci/bsd/rte_pci.c create mode 100644 drivers/bus/pci/include/rte_pci.h create mode 100644 drivers/bus/pci/linux/Makefile create mode 100644 drivers/bus/pci/linux/rte_bus_pci_version.map create mode 100644 drivers/bus/pci/linux/rte_pci.c create mode 100644 drivers/bus/pci/linux/rte_pci_init.h create mode 100644 drivers/bus/pci/linux/rte_pci_uio.c create mode 100644 drivers/bus/pci/linux/rte_pci_vfio.c create mode 100644 drivers/bus/pci/linux/rte_vfio_mp_sync.c create mode 100644 drivers/bus/pci/private.h create mode 100644 drivers/bus/pci/rte_pci_common.c create mode 100644 drivers/bus/pci/rte_pci_common_uio.c create mode 100644 drivers/pmdinfogen/Makefile create mode 100644 drivers/pmdinfogen/pmdinfogen.c create mode 100644 drivers/pmdinfogen/pmdinfogen.h delete mode 100644 lib/librte_eal/bsdapp/eal/eal_pci.c delete mode 100644 lib/librte_eal/common/eal_common_pci.c delete mode 100644 lib/librte_eal/common/eal_common_pci_uio.c delete mode 100644 lib/librte_eal/common/include/rte_pci.h delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_init.h delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_uio.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c create mode 100644 lib/librte_eal/linuxapp/eal/rte_memory_linux.h -- 2.1.4