summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2013-07-18 10:02:36 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 18:11:17 +0100
commitefa7e63e345b443a53b5ed49364533af946be67e (patch)
treed7b533c3e5cdcbcf7020823c5c73ba4c2a722eee /lib
parent89b178e6b79cda50144da7ee09a292f3f0f75748 (diff)
downloaddpdk-efa7e63e345b443a53b5ed49364533af946be67e.zip
dpdk-efa7e63e345b443a53b5ed49364533af946be67e.tar.gz
dpdk-efa7e63e345b443a53b5ed49364533af946be67e.tar.xz
pci: do not check BAR0 mapping
Since DPDK 1.4, bars mapping is checked and prevent from initializing drivers which do not use igb_uio mapping (see commit eee16c964cd). There is no need to check for bars mapping, especially BAR0 is not required. If bars mapping failed, then pci_uio_map_resource will fail and we won't reach this check. So get rid of BAR0 check. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Damien Millescamps <damien.millescamps@6wind.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/librte_eal/linuxapp/eal/eal_pci.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c
index f5c5626..689369c 100644
--- a/lib/librte_eal/linuxapp/eal/eal_pci.c
+++ b/lib/librte_eal/linuxapp/eal/eal_pci.c
@@ -991,15 +991,6 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
return -1;
#endif
- /* We always should have BAR0 mapped */
- if (rte_eal_process_type() == RTE_PROC_PRIMARY &&
- dev->mem_resource[0].addr == NULL) {
- RTE_LOG(ERR, EAL,
- "%s(): BAR0 is not mapped\n",
- __func__);
- return (-1);
- }
-
/* reference driver structure */
dev->driver = dr;