summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2019-01-19 16:23:47 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2019-01-19 16:23:47 +0000
commit080038e0159b9823f099144f81421a3a1fc75a82 (patch)
treed4f699d92f3afd5d86361e0b2e96275511871a56 /sys/dev/pci
parent337aac4d274499bb74eed25291a9203fac2bf4e0 (diff)
virtio: Introduce defines for config(8) flags
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/virtio_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/virtio_pci.c b/sys/dev/pci/virtio_pci.c
index d9c8d144e21..06d3a5ca23e 100644
--- a/sys/dev/pci/virtio_pci.c
+++ b/sys/dev/pci/virtio_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtio_pci.c,v 1.20 2019/01/10 18:11:42 sf Exp $ */
+/* $OpenBSD: virtio_pci.c,v 1.21 2019/01/19 16:23:46 sf Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
@@ -327,8 +327,8 @@ virtio_pci_negotiate_features(struct virtio_softc *vsc, uint32_t guest_features,
* indirect descriptors can be switched off by setting bit 1 in the
* driver flags, see config(8)
*/
- if (!(vsc->sc_dev.dv_cfdata->cf_flags & 1) &&
- !(vsc->sc_child->dv_cfdata->cf_flags & 1)) {
+ if (!(vsc->sc_dev.dv_cfdata->cf_flags & VIRTIO_CF_NO_INDIRECT) &&
+ !(vsc->sc_child->dv_cfdata->cf_flags & VIRTIO_CF_NO_INDIRECT)) {
guest_features |= VIRTIO_F_RING_INDIRECT_DESC;
} else {
printf("RingIndirectDesc disabled by UKC\n");