summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2019-05-07 23:21:50 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2019-05-07 23:21:50 +0000
commitb42f0ef53c605e7960d7fc8f1a147c2482808050 (patch)
treebc79121a21c9b69e14dbf0e022488996480a853d
parent2c48215db0cea592499e8e9e5ed1cd1f2ea4d49e (diff)
Use the same completion queue for both the send and receive queues.
We don't get any benefit from having separate queues (yet), and the tx completion queue seems to stall sometimes if it's on its own.
-rw-r--r--sys/dev/pci/if_mcx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c
index e2994846eca..453e46f2581 100644
--- a/sys/dev/pci/if_mcx.c
+++ b/sys/dev/pci/if_mcx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mcx.c,v 1.4 2019/05/07 04:12:15 jmatthew Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.5 2019/05/07 23:21:49 jmatthew Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -4988,7 +4988,7 @@ mcx_up(struct mcx_softc *sc)
goto destroy_rq;
/* receive queue */
- if (mcx_create_rq(sc, sc->sc_cq[1].cq_n) != 0)
+ if (mcx_create_rq(sc, sc->sc_cq[0].cq_n) != 0)
goto destroy_cq;
if (mcx_create_tir(sc) != 0)