BPFJIT(4)
π NAME π
bpfjit β Just-In-Time compiler for Berkeley Packet Filter. Yes bestie, this is the BPFJIT(4) manual page, and we are gonna get through it together, no cap π
π οΈ SYNOPSIS π οΈ
options BPFJIT
options SLJIT
π DESCRIPTION π
Okay so the bpfjit kernel interface adds Just-In-Time compilation for filter programs that get sent to a bpf(4) device. Instead of being interpreted for every packet, these filter programs are compiled into native code, and that code is being executed for every packet. Itβs giving βmain character energyβ for your packet path β¨
The implementation of bpfjit is based on the Stack-Less Just-In-Time library, or sljit for short. The library supports multiple platforms, including:
AMD-x86 64ARM 32(ARM-v5,ARM-v7andThumb2instruction sets)Intel-x86 32MIPS 32(III,R1)MIPS 64(III,R1)PowerPC 32PowerPC 64SPARC 32
bpfjit supports all architectures listed above. Iconic behavior, honestly π
bpfjit is also available as a module in modular kernels. So modular-kernel besties are included too π«Ά
ποΈ SYSCTLS ποΈ
The following sysctl is available when bpfjit is enabled:
net.bpf.jitβ Toggle Just-In-Time compilation of new filter programs. Changing a value of this sysctl doesn't affect existing filter programs.
Heads up, bestie: changing this sysctl only touches new filter programs β the existing ones stay exactly as they are, periodt π
π SEE ALSO π
bpf(4)modload(8)sljitlibrary:https://zherczeg.github.io/sljit/
πΈ HISTORY πΈ
The bpfjit interface first appeared in NetBSD 7.0. A whole little historical moment, fr fr π¦
π«Ά AUTHORS π«Ά
The bpfjit code was written by Alexander Nasonov <alnsn@NetBSD.org>.
The sljit library was written by Zoltan Herczeg <hzmester@freemail.hu>.
Cute lil sign-off time: this page is from the Debian manual set, dated July 24, 2014, and itβs the BPFJIT(4) page β slay and goodbye, bestie ππβ¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2014 Alexander Nasonov
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms