DPDK patches and discussions
 help / color / mirror / Atom feed
From: Olivier Matz <olivier.matz@6wind.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 06/10] bsd/devargs: allow to provide arguments per pci device
Date: Fri, 25 Apr 2014 13:59:44 +0200	[thread overview]
Message-ID: <1398427188-14914-7-git-send-email-olivier.matz@6wind.com> (raw)
In-Reply-To: <1398427188-14914-1-git-send-email-olivier.matz@6wind.com>

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 <olivier.matz@6wind.com>
---
 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 <rte_malloc.h>
 #include <rte_string_fns.h>
 #include <rte_debug.h>
+#include <rte_devargs.h>
 
 #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

  parent reply	other threads:[~2014-04-25 12:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25 11:59 [dpdk-dev] [PATCH 00/10] bsd: fix compilation Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 01/10] bsd/pci: rename device and driver lists Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 02/10] bsd/devargs: introduce API and test Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 03/10] bsd/devargs: use devargs for vdev and PCI whitelist/blacklist Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 04/10] bsd/devargs: use a comma instead of semicolon to separate key/values Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 05/10] bsd/devargs: replace --use-device option by --pci-whitelist and --vdev Olivier Matz
2014-04-25 11:59 ` Olivier Matz [this message]
2014-04-25 11:59 ` [dpdk-dev] [PATCH 07/10] bsd/nic_uio: fix module compilation with freebsd 10 Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 08/10] bsd/mk: use the Q variable instead of @ for quiet commands Olivier Matz
2014-04-25 13:19   ` Neil Horman
2014-04-25 14:18     ` Thomas Monjalon
2014-04-25 11:59 ` [dpdk-dev] [PATCH 09/10] bsd/mem: get hugepages config Olivier Matz
2014-04-25 11:59 ` [dpdk-dev] [PATCH 10/10] bsd/mem: get physical address of any pointer Olivier Matz
2014-04-25 13:27 ` [dpdk-dev] [PATCH 00/10] bsd: fix compilation Neil Horman
2014-04-29 23:37   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1398427188-14914-7-git-send-email-olivier.matz@6wind.com \
    --to=olivier.matz@6wind.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).