Activate parallel IP forwarding. Start 4 softnet tasks. Limit the
authorbluhm <bluhm@openbsd.org>
Tue, 3 May 2022 11:47:03 +0000 (11:47 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 3 May 2022 11:47:03 +0000 (11:47 +0000)
usage to the number of CPUs.
lots of testing Hrvoje Popovski; OK sashan@ sthen@

sys/net/if.c

index 3bd5eab..f354c9d 100644 (file)
@@ -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);