From: bluhm Date: Tue, 3 May 2022 11:47:03 +0000 (+0000) Subject: Activate parallel IP forwarding. Start 4 softnet tasks. Limit the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8cabf6cc77fc35fcbb687a85ebebfe1b11a7cd4c;p=openbsd Activate parallel IP forwarding. Start 4 softnet tasks. Limit the usage to the number of CPUs. lots of testing Hrvoje Popovski; OK sashan@ sthen@ --- diff --git a/sys/net/if.c b/sys/net/if.c index 3bd5eab2c9f..f354c9d8a6c 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.651 2022/04/30 21:13:57 bluhm Exp $ */ +/* $OpenBSD: if.c,v 1.652 2022/05/03 11:47:03 bluhm Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -237,7 +237,7 @@ int ifq_congestion; int netisr; -#define NET_TASKQ 1 +#define NET_TASKQ 4 struct taskq *nettqmp[NET_TASKQ]; struct task if_input_task_locked = TASK_INITIALIZER(if_netisr, NULL);