From: Peter Oskolkov Date: Fri, 15 Feb 2019 17:51:35 +0000 (-0800) Subject: bpf: make LWTUNNEL_BPF dependent on INET X-Git-Tag: v5.15~6918^2~195^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b251f9f63a3bea7864bf627960926d978e97814d;p=platform%2Fkernel%2Flinux-starfive.git bpf: make LWTUNNEL_BPF dependent on INET 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 Signed-off-by: Peter Oskolkov Acked-by: Randy Dunlap # build-tested Signed-off-by: Daniel Borkmann --- diff --git a/net/Kconfig b/net/Kconfig index 5cb9de1..62da614 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -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