From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id BB8612BF8 for ; Wed, 20 Apr 2016 14:44:02 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id e201so49143787wme.0 for ; Wed, 20 Apr 2016 05:44:02 -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 :mime-version:content-transfer-encoding; bh=6/7l8CC6P4Lc3ytQ8v3Otw0HyWcuHKjc8bDklxCIZBM=; b=A/8eN4Pa0r3WkHEFaxz5+yIrXa6Puo+1eKLSAAgr0EqymtYOZq8IfPOdZn5YqlcVqZ n3bMU98mZZoHN9gsKQ/H8jHXMk/xDAkOk+A9xsfUjLRfuDp8zqnwZsI2/zqatZ5RMq1I Z+6qT1C6+PNgjHo4OekBMwruShxe06sB63Fpq7WAFD11q98Mk7X9LM1I7l5SABt2rGVh iCFy8qlHPt/1T3NC2dNbf23VuhdsSdHR7TQv9U8qrRhhf7sBHpLZ3NvPSCQvstFpH4tE +VWB33IfqKdVb7I3F0SHjZz2vJLPsgbmcHyTdmjggBEfARTy5adqHz3iujGfpDGdxOwz Cugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6/7l8CC6P4Lc3ytQ8v3Otw0HyWcuHKjc8bDklxCIZBM=; b=mpP+tMaWOC9dqZFcDsl77Jr5ocDRdhfe/VePb96mrowP22jamWPUOqCDXbOFamZ6b8 4z7XPjdAZ938iaWjWH06ovwpV99MMv8kC7pCcum0QkfxPuewRWFXO3dg/e07xv8i5Jyh 5qMJf5IxW8RDPETF6V4y1X4pXqpIM3ZvLCi3h0nqqvJIwvmwfEcRxp5foGUPBLAHyRcj uTZm7gUK1c6gAXDa2JTQRJr1VBCag/6B0MX8qzFmBkkFWPGKHdelm+rSvHxM/T9Lwv4C 4ENtVesog8HZ54nymHOYMVTgt5jwjwyk/ChdH3TdoLbsNYVRCGM1sBHEo7sEkDLosrWx FG1Q== X-Gm-Message-State: AOPr4FUFvd7gaLJiwP6473dyyGX1oqOQPQqFQZp3KFS2xk4u8oZ0kWtyO5Gx47FGtmB350IA X-Received: by 10.194.205.167 with SMTP id lh7mr8524092wjc.30.1461156242127; Wed, 20 Apr 2016 05:44:02 -0700 (PDT) Received: from gloops.dev.6wind.com (144.77.126.78.rev.sfr.net. [78.126.77.144]) by smtp.gmail.com with ESMTPSA id j10sm5428135wjb.46.2016.04.20.05.44.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 05:44:01 -0700 (PDT) From: David Marchand To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, stephen@networkplumber.org, bruce.richardson@intel.com, nhorman@tuxdriver.com, pmatilai@redhat.com, christian.ehrhardt@canonical.com Date: Wed, 20 Apr 2016 14:43:43 +0200 Message-Id: <1461156236-25349-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453120248-28274-1-git-send-email-david.marchand@6wind.com> References: <1453120248-28274-1-git-send-email-david.marchand@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 00/13] kill global pci device id list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 12:44:02 -0000 This patchset moves all pci device ids from eal to the pmds that need them. Global pci device id list is then removed. A new tool (name to be discussed) has been added to retrieve some information from the dpdk elf objects. I can't work on this subject at the moment, so please feel free to make these patches yours if you have better ideas / ways to achieve the same result. Changes since v2: - rebased on HEAD - ena driver has been aligned - this patchset now depends on [1] as it avoids touching all drivers this way - not storing the pci ids in a dedicated section anymore, pci drivers are exported and parsed by a quickly written (and naive) tool Changes since v1: - indent fixes in i40e, fm10k, virtio, vmxnet3, enic, bnx2c. - rebased on head (ixgbe update) - removed doc update (will be sent separately) [1]: http://dpdk.org/ml/archives/dev/2016-April/037686.html -- David Marchand David Marchand (13): e1000: move pci device ids to driver ixgbe: move pci device ids to driver i40e: move pci device ids to driver fm10k: move pci device ids to driver virtio: move pci device ids to driver vmxnet3: move pci device ids to driver enic: move pci device ids to driver bnx2x: move pci device ids to driver ena: remove unneeded pci macro pci: no need for global device ids list drivers: constify pci id tables drivers: export pci drivers app: introduce dpdk-obj-info tool app/Makefile | 1 + app/dpdk-obj-info/Makefile | 45 ++ app/dpdk-obj-info/dpdk-obj-info.c | 188 +++++++ app/test-pmd/Makefile | 2 + app/test-pmd/cmdline.c | 2 +- app/test/Makefile | 4 + app/test/test_pci.c | 5 +- doc/api/doxy-api-index.md | 1 - drivers/crypto/qat/rte_qat_cryptodev.c | 2 +- drivers/net/bnx2x/bnx2x.c | 3 +- drivers/net/bnx2x/bnx2x_ethdev.c | 25 +- drivers/net/cxgbe/cxgbe_ethdev.c | 2 +- drivers/net/e1000/em_ethdev.c | 2 +- drivers/net/e1000/em_pci_dev_ids.h | 208 +++++++ drivers/net/e1000/igb_ethdev.c | 4 +- drivers/net/e1000/igb_pci_dev_ids.h | 165 ++++++ drivers/net/ena/ena_ethdev.c | 10 +- drivers/net/enic/enic_ethdev.c | 13 +- drivers/net/fm10k/fm10k_ethdev.c | 7 +- drivers/net/i40e/i40e_ethdev.c | 21 +- drivers/net/i40e/i40e_ethdev_vf.c | 9 +- drivers/net/ixgbe/ixgbe_ethdev.c | 4 +- drivers/net/ixgbe/ixgbe_pci_dev_ids.h | 213 +++++++ drivers/net/mlx4/mlx4.c | 1 + drivers/net/mlx5/mlx5.c | 1 + drivers/net/nfp/nfp_net.c | 2 +- drivers/net/virtio/virtio_ethdev.c | 8 +- drivers/net/vmxnet3/vmxnet3_ethdev.c | 9 +- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/include/rte_pci.h | 7 + lib/librte_eal/common/include/rte_pci_dev_ids.h | 704 ------------------------ lib/librte_eal/linuxapp/kni/Makefile | 2 + lib/librte_eal/linuxapp/kni/kni_misc.c | 8 +- 33 files changed, 918 insertions(+), 762 deletions(-) create mode 100644 app/dpdk-obj-info/Makefile create mode 100644 app/dpdk-obj-info/dpdk-obj-info.c create mode 100644 drivers/net/e1000/em_pci_dev_ids.h create mode 100644 drivers/net/e1000/igb_pci_dev_ids.h create mode 100644 drivers/net/ixgbe/ixgbe_pci_dev_ids.h delete mode 100644 lib/librte_eal/common/include/rte_pci_dev_ids.h -- 1.9.1