summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_mcx.c
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2020-07-23 01:24:54 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2020-07-23 01:24:54 +0000
commit85748d56f1daa458228eb5cf936df3c5cf465c16 (patch)
tree8df42c29b9302a20ef2ba9b23c1cd996f444d0d7 /sys/dev/pci/if_mcx.c
parente6fc13c3df174193e28998d451a818b89f54941b (diff)
Increase the event queue size. When polling for admin command completion,
we don't wait for the event to be posted to the queue, we just look at the command itself, which means we can build up a backlog of events to be posted. Newer firmware for ConnectX-4 seems to get upset if the backlog grows beyond some fraction of the event queue size, causing an interrupt storm. This was reported by patrick@ and Hrvoje Popovski (at least) while testing support for multiple tx/rx queues. With the new event queue size, we can safely create 8 queues.
Diffstat (limited to 'sys/dev/pci/if_mcx.c')
-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 513598a0a49..87fb7334498 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.70 2020/07/17 03:37:37 jmatthew Exp $ */
+/* $OpenBSD: if_mcx.c,v 1.71 2020/07/23 01:24:53 jmatthew Exp $ */
/*
* Copyright (c) 2017 David Gwynne <dlg@openbsd.org>
@@ -78,7 +78,7 @@
#define MCX_PAGE_SIZE (1 << MCX_PAGE_SHIFT)
/* queue sizes */
-#define MCX_LOG_EQ_SIZE 6 /* one page */
+#define MCX_LOG_EQ_SIZE 7
#define MCX_LOG_CQ_SIZE 12
#define MCX_LOG_RQ_SIZE 10
#define MCX_LOG_SQ_SIZE 11