From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id A8893B3E0 for ; Tue, 26 Aug 2014 16:08:27 +0200 (CEST) Received: by mail-wi0-f175.google.com with SMTP id ho1so4272138wib.2 for ; Tue, 26 Aug 2014 07:12:27 -0700 (PDT) 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:in-reply-to :references; bh=ZUJdz+meQgpQmxuKoPPBh6RbUPBcy9/V4b+1xDbRTDI=; b=SefEwvA+hMd0ZB0SjH72ECrBpfqwRj7Dy0QQ8PHZ7++cz4j/uHCtzo2abl0Hh63Q0s E96aiWpAsGT+5GPiNpIkWa0eGKiNKMfYz/9FjD3U+CbkJ5yRc1q0/b68dEbJL/JpYgc3 XFFQEKyVWPUEGchUL3mAdneaUu9LwYKTCdyDQFU3So594mjyqeF6xIE2eZIWrLyQZ61Z 2i3YpJajnPjTTHRaTWnzI4C0uBQWCdDkPxN8y19jxn5ihd1yTCE/mrV1ZdkZi5BMErKu U5SZ2EO2j1FpPYHPjWvfCW7hniuIFLZS0KSPRJGIpjtUy/eC2E1+fIph+wWYPT4iiscF IKYw== X-Gm-Message-State: ALoCoQnZ8gSJTUwwJhe61St9YCvGOHHBnnGkpHPbo3hkUJLk3giuhP9NlLKeNXvn4aOI1EpnOb2O X-Received: by 10.194.63.37 with SMTP id d5mr16440766wjs.92.1409062347728; Tue, 26 Aug 2014 07:12:27 -0700 (PDT) Received: from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id cy9sm12568145wib.18.2014.08.26.07.12.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:12:27 -0700 (PDT) From: David Marchand To: dev@dpdk.org Date: Tue, 26 Aug 2014 16:12:18 +0200 Message-Id: <1409062338-26477-4-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409062338-26477-1-git-send-email-david.marchand@6wind.com> References: <1409062338-26477-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 3/3] eal: probe pci devices at rte_eal_init time 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: Tue, 26 Aug 2014 14:08:28 -0000 Restore call to rte_eal_pci_probe() from commit a155d430119d947d3cb03136ce50924a642dbfe0 so that applications do not have to know that pci devices should be probed. Signed-off-by: David Marchand --- lib/librte_eal/bsdapp/eal/eal.c | 4 ++++ lib/librte_eal/linuxapp/eal/eal.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index 6ca8758..34f29f1 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -930,6 +930,10 @@ rte_eal_init(int argc, char **argv) rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER); rte_eal_mp_wait_lcore(); + /* Probe & Initialize PCI devices */ + if (rte_eal_pci_probe()) + rte_panic("Cannot probe PCI\n"); + return fctret; } diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 392bedf..0ae5959 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -1207,6 +1207,10 @@ rte_eal_init(int argc, char **argv) rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER); rte_eal_mp_wait_lcore(); + /* Probe & Initialize PCI devices */ + if (rte_eal_pci_probe()) + rte_panic("Cannot probe PCI\n"); + return fctret; } -- 1.7.10.4