git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b33b68
)
ethdev: allow device without registered driver
author
Intel
<intel.com>
Wed, 18 Sep 2013 10:00:00 +0000
(12:00 +0200)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Wed, 9 Oct 2013 14:16:14 +0000
(16:16 +0200)
It is needed for non-pci devices (ring and pcap).
Signed-off-by: Intel
lib/librte_ether/rte_ethdev.c
patch
|
blob
|
history
diff --git
a/lib/librte_ether/rte_ethdev.c
b/lib/librte_ether/rte_ethdev.c
index
4192811
..
0d34284
100644
(file)
--- a/
lib/librte_ether/rte_ethdev.c
+++ b/
lib/librte_ether/rte_ethdev.c
@@
-1037,7
+1037,8
@@
rte_eth_dev_info_get(uint8_t port_id, struct rte_eth_dev_info *dev_info)
FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get);
(*dev->dev_ops->dev_infos_get)(dev, dev_info);
dev_info->pci_dev = dev->pci_dev;
- dev_info->driver_name = dev->driver->pci_drv.name;
+ if (dev->driver)
+ dev_info->driver_name = dev->driver->pci_drv.name;
}
void