diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-22 22:18:04 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-22 22:24:09 -0600 |
commit | 1807dd1a1529b4426d7d3c99a4709bbf7598d19e (patch) | |
tree | beb4dd186d15a29d6207064e30b434245a521fd9 | |
parent | add intrmap_one, some temp code to help us write pci_intr_establish_cpu. (diff) | |
download | wireguard-openbsd-1807dd1a1529b4426d7d3c99a4709bbf7598d19e.tar.xz wireguard-openbsd-1807dd1a1529b4426d7d3c99a4709bbf7598d19e.zip |
Increase if_txmit to 64
This increases throughput by keeping the worker threads active for
longer.
-rw-r--r-- | sys/net/if_wg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c index e27a575cc1b..5b7550840f8 100644 --- a/sys/net/if_wg.c +++ b/sys/net/if_wg.c @@ -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; |