From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 800FBB0B1 for ; Thu, 1 May 2014 13:06:11 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 01 May 2014 04:06:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,964,1389772800"; d="scan'208";a="524270285" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga001.fm.intel.com with ESMTP; 01 May 2014 04:06:14 -0700 Received: from irsmsx105.ger.corp.intel.com (163.33.3.28) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 1 May 2014 12:06:11 +0100 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.249]) by IRSMSX105.ger.corp.intel.com ([169.254.7.70]) with mapi id 14.03.0123.003; Thu, 1 May 2014 12:06:11 +0100 From: "Burakov, Anatoly" To: "dev@dpdk.org" Thread-Topic: [PATCH 13/16] [RFC] [VFIO] Removed PCI ID table from igb_uio Thread-Index: Ac9lLOCtWyNYJH2YSna2xlfZZOzVSA== Date: Thu, 1 May 2014 11:06:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 13/16] [RFC] [VFIO] Removed PCI ID table from igb_uio 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: Thu, 01 May 2014 11:06:12 -0000 Note that since igb_uio no longer has a PCI ID list, it can now be bound to any device, not just those explicitly supported by DPDK. In other words, it now behaves similar to PCI stub, VFIO and other generic PCI drivers. Therefore to bind a new device to igb_uio, the user will now have to first write its PCI ID to "new_id" file inside the igb_uio driver directory, and only then write the PCI ID to "bind". This will be reflected in later changes to PCI binding script as well. Signed-off-by: Anatoly Burakov diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/lin= uxapp/igb_uio/igb_uio.c index 8665a50..811ac93 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -65,25 +65,6 @@ struct rte_uio_pci_dev { static char *intr_mode =3D NULL; static enum rte_intr_mode igbuio_intr_mode_preferred =3D RTE_INTR_MODE_MSI= X; =20 -/* PCI device id table */ -static struct pci_device_id igbuio_pci_ids[] =3D { -#define RTE_PCI_DEV_ID_DECL_EM(vend, dev) {PCI_DEVICE(vend, dev)}, -#define RTE_PCI_DEV_ID_DECL_IGB(vend, dev) {PCI_DEVICE(vend, dev)}, -#define RTE_PCI_DEV_ID_DECL_IGBVF(vend, dev) {PCI_DEVICE(vend, dev)}, -#define RTE_PCI_DEV_ID_DECL_IXGBE(vend, dev) {PCI_DEVICE(vend, dev)}, -#define RTE_PCI_DEV_ID_DECL_IXGBEVF(vend, dev) {PCI_DEVICE(vend, dev)}, -#ifdef RTE_LIBRTE_VIRTIO_PMD -#define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {PCI_DEVICE(vend, dev)}, -#endif -#ifdef RTE_LIBRTE_VMXNET3_PMD -#define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {PCI_DEVICE(vend, dev)}, -#endif -#include -{ 0, }, -}; - -MODULE_DEVICE_TABLE(pci, igbuio_pci_ids); - static inline struct rte_uio_pci_dev * igbuio_get_uio_pci_dev(struct uio_info *info) { @@ -620,7 +601,7 @@ igbuio_config_intr_mode(char *intr_str) =20 static struct pci_driver igbuio_pci_driver =3D { .name =3D "igb_uio", - .id_table =3D igbuio_pci_ids, + .id_table =3D NULL, .probe =3D igbuio_pci_probe, .remove =3D igbuio_pci_remove, }; --=20 1.8.1.4