diff options
author | 2019-11-14 21:13:58 +0000 | |
---|---|---|
committer | 2019-11-14 21:13:58 +0000 | |
commit | 9921026e0e5247aaaf46c8457b883aad89da1169 (patch) | |
tree | b52fe89c76fd7f5a3dffc9e78947778f867128d0 | |
parent | Add libcbor; an implementation of the Concise Binary Object (diff) | |
download | wireguard-openbsd-9921026e0e5247aaaf46c8457b883aad89da1169.tar.xz wireguard-openbsd-9921026e0e5247aaaf46c8457b883aad89da1169.zip |
Unleash all the available openings and let the midlayer sort things
out like other "modern" devices.
ok dlg@
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 16606b98e9f..85a512cb1ef 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.206 2018/08/14 05:22:21 jmatthew Exp $ */ +/* $OpenBSD: mpi.c,v 1.207 2019/11/14 21:13:58 krw Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -364,7 +364,7 @@ mpi_attach(struct mpi_softc *sc) sc->sc_link.adapter_softc = sc; sc->sc_link.adapter_target = sc->sc_target; sc->sc_link.adapter_buswidth = sc->sc_buswidth; - sc->sc_link.openings = MAX(sc->sc_maxcmds / sc->sc_buswidth, 16); + sc->sc_link.openings = sc->sc_maxcmds - 1; sc->sc_link.pool = &sc->sc_iopool; memset(&saa, 0, sizeof(saa)); |