summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-05-26 12:29:42 +0000
committerdlg <dlg@openbsd.org>2015-05-26 12:29:42 +0000
commit2e3a105b77813538786ce593a7853c60b1bee368 (patch)
tree297a51895f7e061e7223994e3297fd4a319bb644
parentStore the IP address of the corresponding ifa in the rt_gateway field (diff)
downloadwireguard-openbsd-2e3a105b77813538786ce593a7853c60b1bee368.tar.xz
wireguard-openbsd-2e3a105b77813538786ce593a7853c60b1bee368.zip
bump the number of tx and rx descriptors from 128 up to 512.
-rw-r--r--sys/dev/pci/if_vmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c
index 925a9775444..13d595ca5a6 100644
--- a/sys/dev/pci/if_vmx.c
+++ b/sys/dev/pci/if_vmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vmx.c,v 1.25 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.26 2015/05/26 12:29:42 dlg Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
@@ -49,9 +49,9 @@
#define NRXQUEUE 1
#define NTXQUEUE 1
-#define NTXDESC 128 /* tx ring size */
+#define NTXDESC 512 /* tx ring size */
#define NTXSEGS 8 /* tx descriptors per packet */
-#define NRXDESC 128
+#define NRXDESC 512
#define NTXCOMPDESC NTXDESC
#define NRXCOMPDESC (NRXDESC * 2) /* ring1 + ring2 */