diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-06-23 09:35:18 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-06-23 09:35:18 +0000 |
commit | 30c73d6b3e06e3e8593b2742431ae7d33d966d32 (patch) | |
tree | cd315b9cf3c4ab17b61a6723b5af76b7f18e1df5 | |
parent | f25a7dd05374c5a3a2f0195512f54d374d7d8479 (diff) |
Increase TX mitigation backlog size for increased throughput.
From Jason A. Donenfeld" <Jason (at) zx2c4.com>
ok patrick@
-rw-r--r-- | sys/net/if_wg.c | 3 |
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; |