aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/pci/pci.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-07-10 15:38:21 +0200
committerDamjan Marion <damarion@cisco.com>2017-07-10 15:42:27 +0200
commit191a1a407ebd299907d2890cbb0369a6d7c19a45 (patch)
tree51e8b72f3dc0fc42bb13d3c417210263d22b5879 /src/vlib/pci/pci.h
parentbb18ee6f1c7c172d30cb0c98153499af571777ee (diff)
vlib: fix issues with PCI handling code
- PCI devices not properly discovered - vlib_pci_bus_master_enable () not working Change-Id: I7433ab1b19b890b8900635b43037b9a2017a1921 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/pci/pci.h')
-rw-r--r--src/vlib/pci/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/pci/pci.h b/src/vlib/pci/pci.h
index 811a6ff2336..2141080936d 100644
--- a/src/vlib/pci/pci.h
+++ b/src/vlib/pci/pci.h
@@ -215,7 +215,7 @@ vlib_pci_bus_master_enable (vlib_pci_device_t * dev)
if (err)
return err;
- if (!(command & PCI_COMMAND_BUS_MASTER))
+ if (command & PCI_COMMAND_BUS_MASTER)
return 0;
command |= PCI_COMMAND_BUS_MASTER;