CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2025/09/09 03:16:18

Modified files:
        sys/kern       : init_main.c 
        sys/net        : if.c if.h if_loop.c 

Log message:
Limit softnet threads to number of CPU.

Currently 8 softnet threads are always startet, but only up to
number of CPU are used.  So remove useless threads.  Softnet tasks
must be initialized before autoconf is running.  Drivers need the
tasks to attach queues.  But number of CPU is known only after
autoconf has discovered them.  Split softnet initialization code
into softnet_init() and softnet_percpu().  The latter destroys task
queues that are not needed.  At that point softnet threads have not
been forked as they were deferred.  Rename function softnet_count()
consistently.

OK mlarkin@

Reply via email to