summaryrefslogtreecommitdiffstats
path: root/sys/net/if_wg.c
diff options
context:
space:
mode:
authortobhe <tobhe@openbsd.org>2020-06-23 09:35:17 +0000
committertobhe <tobhe@openbsd.org>2020-06-23 09:35:17 +0000
commit3e93ec8da8284ba953c432d52efa582ca8424111 (patch)
treecd6eb7073b5f6fd9fa2e1ab9f88bc1d9173bb262 /sys/net/if_wg.c
parentUse xvasprintf not vasprintf. (diff)
downloadwireguard-openbsd-3e93ec8da8284ba953c432d52efa582ca8424111.tar.xz
wireguard-openbsd-3e93ec8da8284ba953c432d52efa582ca8424111.zip
Increase TX mitigation backlog size for increased throughput.
From Jason A. Donenfeld" <Jason (at) zx2c4.com> ok patrick@
Diffstat (limited to 'sys/net/if_wg.c')
-rw-r--r--sys/net/if_wg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c
index e27a575cc1b..10a6a4a1bde 100644
--- a/sys/net/if_wg.c
+++ b/sys/net/if_wg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wg.c,v 1.5 2020/06/22 12:20:44 jasper Exp $ */
+/* $OpenBSD: if_wg.c,v 1.6 2020/06/23 09:35:17 tobhe Exp $ */
/*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
@@ -2651,6 +2651,7 @@ wg_clone_create(struct if_clone *ifc, int unit)
ifp->if_mtu = DEFAULT_MTU;
ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_NOARP;
ifp->if_xflags = IFXF_CLONED;
+ ifp->if_txmit = 64; /* Keep our workers active for longer. */
ifp->if_ioctl = wg_ioctl;
ifp->if_start = wg_start;