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 <[email protected]>
Signed-off-by: Peter Oskolkov <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Signed-off-by: Daniel Borkmann <[email protected]>
This commit is contained in:
Peter Oskolkov 2019-02-15 09:51:35 -08:00 • committed by Daniel Borkmann
commit b251f9f63a

View 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