]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bpf: make LWTUNNEL_BPF dependent on INET
authorPeter Oskolkov <posk@google.com>
Fri, 15 Feb 2019 17:51:35 +0000 (09:51 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 16 Feb 2019 00:06:30 +0000 (01:06 +0100)
Lightweight tunnels are L3 constructs that are used with IP/IP6.

For example, lwtunnel_xmit is called from ip_output.c and
ip6_output.c only.

Make the dependency explicit at least for LWT-BPF, as now they
call into IP routing.

V2: added "Reported-by" below.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Oskolkov <posk@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/Kconfig

index 5cb9de1aaf886a7f6d0dd1eb883241d5f5104ff6..62da6148e9f8347f97384f7cc26d98901b1ad9fa 100644 (file)
@@ -403,7 +403,7 @@ config LWTUNNEL
 
 config LWTUNNEL_BPF
        bool "Execute BPF program as route nexthop action"
-       depends on LWTUNNEL
+       depends on LWTUNNEL && INET
        default y if LWTUNNEL=y
        ---help---
          Allows to run BPF programs as a nexthop action following a route