From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id 2B20B594D for ; Wed, 5 Mar 2014 16:15:10 +0100 (CET) Received: by mail-we0-f171.google.com with SMTP id t61so1394905wes.30 for ; Wed, 05 Mar 2014 07:16:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=ruTHbm3YdUl6ojmyWBOReHOlffh0CFf+PsxphTdLtNM=; b=kvaQ/mUSX8KyfAVGTlqn0jFXlEJnyN4QiaoQHf1a7Cemf3As6x4LRrXG3IwEd2OVvX wM4/EGUfapLkND6hZYWFfyloMPG+DeDr9qqm65+uOn/hTPCcBVdKOjTRzwv41ka6QBKv 5JzfN3h+GEd6LNAFifNJXE8bFdPZspU6DDsN6eUHUs8BS/rQmLWEdJoLuTzcr99e6GOY K5DboxzQLddvuK3R0T8nG6ECxnAHO5nAIUCy3F7xc/HdM2+r/6vtSXQy06a5u3ERy+/L z1z3eM2yAVXdh9v6tSLv+L6xZntV5Pw2Ifq6RmvvRyJdBT0dJzENQICivBLdPMSB36bC Ib4w== X-Gm-Message-State: ALoCoQlHJubme83D0U7nepZM3ueuNSfQzEv/ujyjiPB1n6gqHF+cf+opd527PEJZ3YQiG2YxnkZm X-Received: by 10.194.78.180 with SMTP id c20mr1627173wjx.57.1394032597966; Wed, 05 Mar 2014 07:16:37 -0800 (PST) Received: from alcyon.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id bm8sm1525856wjc.12.2014.03.05.07.16.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Mar 2014 07:16:36 -0800 (PST) From: David Marchand To: dev@dpdk.org Date: Wed, 5 Mar 2014 16:16:28 +0100 Message-Id: <1394032588-28528-1-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 Subject: [dpdk-dev] [PATCH] igb_uio: don't bind vmxnet3 and virtio devices if disabled 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, 05 Mar 2014 15:15:10 -0000 When not using vmxnet3-uio and virtio-uio PMDs, prevent igb_uio from binding these devices. This way, vmxnet3 and virtio PMDs won't fail to initialize because of a device silently bound to igb_uio. Signed-off-by: David Marchand --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index 1c88aa8..209d61e 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -79,8 +79,12 @@ static struct pci_device_id igbuio_pci_ids[] = { #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, }, }; -- 1.7.10.4