summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2011-09-12 12:33:26 +0000
committermikeb <mikeb@openbsd.org>2011-09-12 12:33:26 +0000
commit5ead0d69113fe1ee4d06901d30d5b9180005c60a (patch)
tree1d24217454626f8e5308cd4762792c6493606cc3
parentfix leak in do_lsreaddir(); ok djm (diff)
downloadwireguard-openbsd-5ead0d69113fe1ee4d06901d30d5b9180005c60a.tar.xz
wireguard-openbsd-5ead0d69113fe1ee4d06901d30d5b9180005c60a.zip
Clamp a maximum number of outstanding requests at 40 as it was
figured out the hard way by senior Pedro. Performance decreased severely with newer firmwares when ioc was stuffed with requests. Unfortunately it still remains a magic number as LSI doesn't clearly document what it has to be (controllers report some meaningless values like 3167 and 1952). ok dlg
-rw-r--r--sys/dev/pci/mpii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 8eefe69903c..81cbd9b4ea5 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.48 2011/08/29 12:42:18 dlg Exp $ */
+/* $OpenBSD: mpii.c,v 1.49 2011/09/12 12:33:26 mikeb Exp $ */
/*
* Copyright (c) 2010 Mike Belopuhov <mkb@crypt.org.ru>
* Copyright (c) 2009 James Giannoules
@@ -1747,7 +1747,7 @@ u_int32_t mpii_debug = 0
*/
#define MPII_MAX_SGL (32)
-#define MPII_MAX_REQUEST_CREDIT (128)
+#define MPII_MAX_REQUEST_CREDIT (40)
struct mpii_dmamem {
bus_dmamap_t mdm_map;