From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 92E52AFD0 for ; Fri, 25 Apr 2014 14:00:14 +0200 (CEST) Received: by mail-wg0-f50.google.com with SMTP id x13so3454072wgg.21 for ; Fri, 25 Apr 2014 05:00:17 -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:cc:subject:date:message-id:in-reply-to :references; bh=y5IV1vxTkz/69Qy3kyIUE0nNrDQJTQb10oeTS7QMJYY=; b=d0BOhdIfOhMw5HD/zT2l+ntxIfMClufs+xAaPBWyrO+tTn0MZw532Huvl+otPpILMB KNP8yWuLxPzTHTTIRvcHi79MlNkQqWP9594hGv6KlwdGhes+XqeBpnGTx+e6MWa1V4N7 ITeSujuCTf4gYOYOCylPmguGxKlx3nUu76Dj/kqXFWH9uU8ZIwJO1D4foToHbZNVMEJ4 wimUULfDdlbIS+HS6M1yrM++B0f8QuH05rspE7gtb+35ImHF1BT5tkDQgU05PQlfBKFN 06FiwBYrsEpbtCORkbjeuHkmHva5XLEoRAf4WwJB77TyVODIOmVodfGCGTdA19ycKk+O mnow== X-Gm-Message-State: ALoCoQmf1XydfaEkBvPwROYwNqpq1m1mXtMh/M3+UgKUjdF36n+VDqOeRUMlT9Tdr1oyQtQ84fq3 X-Received: by 10.180.39.175 with SMTP id q15mr3509676wik.4.1398427217391; Fri, 25 Apr 2014 05:00:17 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm5487386wix.5.2014.04.25.05.00.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Apr 2014 05:00:16 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 25 Apr 2014 13:59:44 +0200 Message-Id: <1398427188-14914-7-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398427188-14914-1-git-send-email-olivier.matz@6wind.com> References: <1398427188-14914-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 06/10] bsd/devargs: allow to provide arguments per pci device 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: Fri, 25 Apr 2014 12:00:15 -0000 The bsdapp part was missing in commit 8e245de6ca7e050e282cd49ffd5e68a5b6ff62f5. Add the ability to pass some specific initialization arguments to PCI devices at start-up. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal_pci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index 64bdea0..987b446 100644 --- a/lib/librte_eal/bsdapp/eal/eal_pci.c +++ b/lib/librte_eal/bsdapp/eal/eal_pci.c @@ -66,6 +66,7 @@ #include #include #include +#include #include "rte_pci_dev_ids.h" #include "eal_filesystem.h" @@ -471,7 +472,9 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d dev->id.device_id, dr->name); /* no initialization when blacklisted, return without error */ - if (dev->blacklisted) { + if (dev->devargs != NULL && + dev->devargs->type == RTE_DEVTYPE_BLACKLISTED_PCI) { + RTE_LOG(DEBUG, EAL, " Device is blacklisted, not initializing\n"); return 0; } -- 1.9.2