diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-10-27 23:32:03 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-10-27 23:32:03 +0000 |
commit | a1791d443de8bf26b6c2d7137bb25f0c6bcc3169 (patch) | |
tree | 1990f9600b2a0227adf274cfe914ccd4dd7dc606 /sys/dev | |
parent | f9d1e7cda6baaec71420a8778207010d3ff344a7 (diff) |
Do not touch non existing queues. Allows to disable MSI-X in ix(4).
OK jmatthew@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_ix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index c40dbcdb83b..b246348231c 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.172 2020/07/18 07:18:22 dlg Exp $ */ +/* $OpenBSD: if_ix.c,v 1.173 2020/10/27 23:32:02 bluhm Exp $ */ /****************************************************************************** @@ -1597,7 +1597,8 @@ ixgbe_stop(void *arg) ifq_barrier(ifq); ifq_clr_oactive(ifq); - intr_barrier(sc->queues[i].tag); + if (sc->queues[i].tag != NULL) + intr_barrier(sc->queues[i].tag); timeout_del(&sc->rx_rings[i].rx_refill); } |