diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-24 06:19:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-24 06:19:07 +0000 |
commit | 77cc7448d8d09f4bed5ec2e27ba23efb5a10685f (patch) | |
tree | f4fc2dedcd07cebd984ac9c2b2c2e8c92fb95f65 /sys | |
parent | feec4dc0a62f0ccdb7b66cb925fda862a119a31b (diff) |
actually use pci_intr_establish_cpu with cpus from the intrmap.
sigh, i don't know how i forgot this.
yes jmatthew@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_vmx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c index 2eaef809975..1b89208ae38 100644 --- a/sys/dev/pci/if_vmx.c +++ b/sys/dev/pci/if_vmx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vmx.c,v 1.59 2020/06/17 07:08:39 dlg Exp $ */ +/* $OpenBSD: if_vmx.c,v 1.60 2020/06/24 06:19:06 dlg Exp $ */ /* * Copyright (c) 2013 Tsubai Masanari @@ -322,10 +322,9 @@ vmxnet3_attach(struct device *parent, struct device *self, void *aux) } snprintf(q->intrname, sizeof(q->intrname), "%s:%d", self->dv_xname, i); - /* this should be pci_intr_establish_cpu */ - q->ih = pci_intr_establish(pa->pa_pc, ih, + q->ih = pci_intr_establish_cpu(pa->pa_pc, ih, IPL_NET | IPL_MPSAFE, - /* intrmap_cpu(sc->sc_intrmap, i), */ + intrmap_cpu(sc->sc_intrmap, i), vmxnet3_intr_queue, q, q->intrname); q->intr = vec; |