summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2016-11-21 12:37:16 +0000
committerjsg <jsg@openbsd.org>2016-11-21 12:37:16 +0000
commitad20a210bcb3e1b82ffd3d2338602daa3620ee8a (patch)
treefebd83709c658c6c01003440649f7a5469c9f64c
parentParse flow-status instructions in multipart replies, so we can see what (diff)
downloadwireguard-openbsd-ad20a210bcb3e1b82ffd3d2338602daa3620ee8a.tar.xz
wireguard-openbsd-ad20a210bcb3e1b82ffd3d2338602daa3620ee8a.zip
Correct the test for requiring a 64 bit mem bar.
ok mikeb@ who tested on 82599, x540 and x550.
-rw-r--r--sys/dev/pci/if_ix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index edd3ab2212c..541e75c0fba 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.139 2016/11/21 12:05:28 mikeb Exp $ */
+/* $OpenBSD: if_ix.c,v 1.140 2016/11/21 12:37:16 jsg Exp $ */
/******************************************************************************
@@ -1516,8 +1516,8 @@ ixgbe_allocate_pci_resources(struct ix_softc *sc)
int val;
val = pci_conf_read(pa->pa_pc, pa->pa_tag, PCIR_BAR(0));
- if (PCI_MAPREG_TYPE(val) != PCI_MAPREG_TYPE_MEM &&
- PCI_MAPREG_TYPE(val) != PCI_MAPREG_MEM_TYPE_64BIT) {
+ if (PCI_MAPREG_TYPE(val) != PCI_MAPREG_TYPE_MEM ||
+ PCI_MAPREG_MEM_TYPE(val) != PCI_MAPREG_MEM_TYPE_64BIT) {
printf(": mmba is not mem space\n");
return (ENXIO);
}