Skip to content

Commit

Permalink
bpfilter: remove bpfilter
Browse files Browse the repository at this point in the history
bpfilter was supposed to convert iptables filtering rules into
BPF programs on the fly, from the kernel, through a usermode
helper. The base code for the UMH was introduced in 2018, and
couple of attempts (2, 3) tried to introduce the BPF program
generate features but were abandoned.

bpfilter now sits in a kernel tree unused and unusable, occasionally
causing confusion amongst Linux users (4, 5).

As bpfilter is now developed in a dedicated repository on GitHub (6),
it was suggested a couple of times this year (LSFMM/BPF 2023,
LPC 2023) to remove the deprecated kernel part of the project. This
is the purpose of this patch.

[1]: https://lore.kernel.org/lkml/20180522022230.2492505-1-ast@kernel.org/
[2]: https://lore.kernel.org/bpf/20210829183608.2297877-1-me@ubique.spb.ru/#t
[3]: https://lore.kernel.org/lkml/20221224000402.476079-1-qde@naccy.de/
[4]: https://dxuuu.xyz/bpfilter.html
[5]: https://github.com/linuxkit/linuxkit/pull/3904
[6]: https://github.com/facebook/bpfilter

Signed-off-by: Quentin Deslandes <qde@naccy.de>
Link: https://lore.kernel.org/r/20231226130745.465988-1-qde@naccy.de
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
Quentin Deslandes authored and Alexei Starovoitov committed Jan 4, 2024
1 parent 9ddf872 commit 98e20e5
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 413 deletions.
1 change: 0 additions & 1 deletion arch/loongarch/configs/loongson3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ CONFIG_BRIDGE_EBT_T_NAT=m
CONFIG_BRIDGE_EBT_ARP=m
CONFIG_BRIDGE_EBT_IP=m
CONFIG_BRIDGE_EBT_IP6=m
CONFIG_BPFILTER=y
CONFIG_IP_SCTP=m
CONFIG_RDS=y
CONFIG_L2TP=m
Expand Down
24 changes: 0 additions & 24 deletions include/linux/bpfilter.h

This file was deleted.

21 changes: 0 additions & 21 deletions include/uapi/linux/bpfilter.h

This file was deleted.

2 changes: 0 additions & 2 deletions net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ source "net/bridge/netfilter/Kconfig"

endif

source "net/bpfilter/Kconfig"

source "net/dccp/Kconfig"
source "net/sctp/Kconfig"
source "net/rds/Kconfig"
Expand Down
1 change: 0 additions & 1 deletion net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ obj-$(CONFIG_TLS) += tls/
obj-$(CONFIG_XFRM) += xfrm/
obj-$(CONFIG_UNIX_SCM) += unix/
obj-y += ipv6/
obj-$(CONFIG_BPFILTER) += bpfilter/
obj-$(CONFIG_PACKET) += packet/
obj-$(CONFIG_NET_KEY) += key/
obj-$(CONFIG_BRIDGE) += bridge/
Expand Down
2 changes: 0 additions & 2 deletions net/bpfilter/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions net/bpfilter/Kconfig

This file was deleted.

20 changes: 0 additions & 20 deletions net/bpfilter/Makefile

This file was deleted.

136 changes: 0 additions & 136 deletions net/bpfilter/bpfilter_kern.c

This file was deleted.

7 changes: 0 additions & 7 deletions net/bpfilter/bpfilter_umh_blob.S

This file was deleted.

64 changes: 0 additions & 64 deletions net/bpfilter/main.c

This file was deleted.

17 changes: 0 additions & 17 deletions net/bpfilter/msgfmt.h

This file was deleted.

2 changes: 0 additions & 2 deletions net/ipv4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ obj-y := route.o inetpeer.o protocol.o \
inet_fragment.o ping.o ip_tunnel_core.o gre_offload.o \
metrics.o netlink.o nexthop.o udp_tunnel_stub.o

obj-$(CONFIG_BPFILTER) += bpfilter/

obj-$(CONFIG_NET_IP_TUNNEL) += ip_tunnel.o
obj-$(CONFIG_SYSCTL) += sysctl_net_ipv4.o
obj-$(CONFIG_PROC_FS) += proc.o
Expand Down
2 changes: 0 additions & 2 deletions net/ipv4/bpfilter/Makefile

This file was deleted.

Loading

0 comments on commit 98e20e5

Please sign in to comment.