OPNsense - FreeBSD source
Find a file
Stephan de Wit ec7c9e514c rss: add sysctl enable toggle
This commit also includes the original refactoring changes

This change allows the kernel to operate with the default netisr cpu-affinity settings while having RSS compiled in. Normally, RSS changes quite a bit of the behaviour of the kernel dispatch service - this change allows for reducing impact on incompatible hardware while preserving the option to boost throughput speeds based on packet flow CPU affinity.

Make sure to compile the following options in the kernel:

    options  RSS

As well as setting the following sysctls:

    net.inet.rss.enabled: 1
    net.isr.bindthreads: 1
    net.isr.maxthreads: -1 (automatically sets it to the number of CPUs)

And optionally (to force a 1:1 mapping between CPUs and buckets):

    net.inet.rss.bits: 3 (for 8 CPUs)
    net.inet.rss.bits: 2 (for 4 CPUs)

etc.

Set pin_default_swi to 0 by default in the RSS case.
2026-06-25 11:18:46 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github/ISSUE_TEMPLATE github: sync our template 2026-06-19 09:47:29 +02:00
bin date: Include old and new time in audit log (#221) 2026-06-19 09:47:29 +02:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib ldns: Fix query response validation 2026-06-09 03:00:29 +00:00
crypto openssl: Fix multiple vulnerabilities 2026-06-09 03:00:23 +00:00
etc mtree: usr: Add missing pkg/triggers entry 2026-05-28 15:15:43 -07:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t 2026-04-27 02:29:49 +02:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Adjust additional version strings 2026-05-14 12:04:18 -07:00
lib divert: Define semantics for SO_REUSEPORT_LB on divert sockets 2026-06-25 11:18:46 +02:00
libexec tty: patch in 3wire autologin support 2026-06-19 09:47:29 +02:00
release Switch from "quarterly" to "release" pkgs on DVD 2026-05-21 16:01:50 -07:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin fsck_msdosfs: fix FAT header correction not persisting in cache mode 2026-05-12 12:00:33 -07:00
secure caroot: Regenerate 2026-04-30 15:02:04 +00:00
share divert: Define semantics for SO_REUSEPORT_LB on divert sockets 2026-06-25 11:18:46 +02:00
stand stand: add EFI support for mmio serial consoles 2026-06-25 11:18:46 +02:00
sys rss: add sysctl enable toggle 2026-06-25 11:18:46 +02:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests imgact_elf: Clear no-ASLR and -WXORX flags earlier for setugid images 2026-06-09 03:00:09 +00:00
tools makeman.lua: Downgrade make showconfig error to warning 2026-04-30 12:27:55 -04:00
usr.bin etc: OPNsense customisations 2026-06-19 09:46:54 +02:00
usr.sbin rtsold: check RA lifetime before triggering the one-shot always script 2026-06-25 11:18:46 +02:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: Switch back to tzst packages, but use level 1 2025-10-14 20:47:10 -04:00
.clang-format clang-format: adjust to sort C++ headers per style(9) 2026-02-21 19:44:24 -08:00
.clean_build_epoch build: introduce the notion of a build epoch 2025-08-14 23:43:42 -05:00
.git-blame-ignore-revs git-blame-ignore-revs: witness white space cleanup and style(9) tweeks 2025-08-29 18:01:43 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: ignore additional unwanted files 2026-04-25 09:31:43 -07:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS capsicum-test: Move out of contrib 2026-02-06 11:15:09 -05:00
Makefile universe: Bump default GCC version to 15 2026-04-24 11:32:34 -04:00
Makefile.inc1 Make "make update-packages" idempotent 2026-05-14 12:04:52 -07:00
Makefile.libcompat Makefile.libcompat: Use same PATH for _lc_build-tools as _build-tools 2025-08-22 21:46:15 +01:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc mtree: Remove unused MANSUBDIRs 2026-05-21 15:00:23 -07:00
README.md README: Update and harmonize 2026-04-25 17:11:25 +00:00
RELNOTES RELNOTES: Add entry for 0c370a416b 2026-02-12 12:47:53 -07:00
UPDATING Update in preparation for 15.1-RELEASE 2026-06-11 17:37:58 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Source code for third-party software under the Common Development and Distribution License.
contrib Source code for third-party software.
crypto Source code for cryptographic libraries and commands (see crypto/README).
etc Template files for /etc.
gnu Source code for third-party software under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Build system for Kerberos 5 (Heimdal).
krb5 Build system for Kerberos 5 (MIT).
lib System libraries.
libexec System commands intended to be executed by other commands or daemons.
release Makefiles and scripts used for building releases and VM images.
rescue Build system for statically linked /rescue commands.
sbin System commands.
secure Build system for cryptographic libraries and commands (excluding Kerberos).
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Tests which can be run by Kyua. See tests/README for additional information.
tools Ancillary utilities and tests (not included in the build).
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.