blob: 73d0b12789f1e05454839982bccb1f5124a427db [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -07002menuconfig BPFILTER
3 bool "BPF based packet filtering framework (BPFILTER)"
Alexei Starovoitov61a552e2018-05-23 21:29:05 -07004 depends on NET && BPF && INET
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -07005 help
6 This builds experimental bpfilter framework that is aiming to
7 provide netfilter compatible functionality via BPF
8
9if BPFILTER
10config BPFILTER_UMH
11 tristate "bpfilter kernel module with user mode helper"
Masahiro Yamada9326e0f2020-07-01 18:26:44 +090012 depends on CC_CAN_LINK
13 depends on m || CC_CAN_LINK_STATIC
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -070014 default m
15 help
16 This builds bpfilter kernel module with embedded user mode helper
Valdis Kl ē tnieks9f64fbd2020-05-09 00:47:19 -040017
Masahiro Yamada9326e0f2020-07-01 18:26:44 +090018 Note: To compile this as built-in, your toolchain must support
19 building static binaries, since rootfs isn't mounted at the time
20 when __init functions are called and do_execv won't be able to find
21 the elf interpreter.
Alexei Starovoitovd2ba09c2018-05-21 19:22:30 -070022endif