From: Olivier Matz Date: Fri, 25 Apr 2014 11:59:44 +0000 (+0200) Subject: devargs: allow to provide arguments per pci device for bsd X-Git-Tag: spdx-start~10870 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dd9a36772aee3575c38c8dd3de52b2f696478ce6;p=dpdk.git devargs: allow to provide arguments per pci device for bsd 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 Acked-by: Neil Horman --- diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index 64bdea0078..987b44687c 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; }