Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7537e71
)
vlib: do not unbind devices already bound to vfio-pci
15/6615/1
author
Damjan Marion
<damarion@cisco.com>
Mon, 8 May 2017 16:37:54 +0000
(18:37 +0200)
committer
Damjan Marion
<damarion@cisco.com>
Mon, 8 May 2017 16:37:54 +0000
(18:37 +0200)
Change-Id: I739bed5b9d9504d18ee88206e29ebc4ba1b47d28
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/pci/linux_pci.c
patch
|
blob
|
history
diff --git
a/src/vlib/pci/linux_pci.c
b/src/vlib/pci/linux_pci.c
index
f9ee47a
..
d43361a
100644
(file)
--- a/
src/vlib/pci/linux_pci.c
+++ b/
src/vlib/pci/linux_pci.c
@@
-109,6
+109,11
@@
vlib_pci_bind_to_uio (vlib_pci_device_t * d, char *uio_driver_name)
goto done;
vec_reset_length (s);
+ s = format (s, "%v/iommu_group%c", dev_dir_name, 0);
+ if (access ((char *) s, F_OK) == 0)
+ goto done;
+ vec_reset_length (s);
+
/* walk trough all linux interfaces and if interface belonging to
this device is founf check if interface is admin up */
dir = opendir ("/sys/class/net");