This increases throughput by keeping the worker threads active for longer. --- sys/net/if_wg.c | 1 + 1 file changed, 1 insertion(+)
diff --git sys/net/if_wg.c sys/net/if_wg.c index e27a575cc1b..5b7550840f8 100644 --- sys/net/if_wg.c +++ 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; -- 2.27.0