Skip to contentSkip to conversation

bpf: make LWTUNNEL_BPF dependent on INET

PATCH Superseded Peter Oskolkov 3 participants 3 messages Feb 15, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: make LWTUNNEL_BPF dependent on INET

Lightweight tunnels are L3 constructs that are used with IP/IP6. Make the dependency explicit at least for LWT-BPF, as now they call into IP routing.

---
 net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/Kconfig +1 -1
index 5cb9de1aaf88..62da6148e9f8 100644
@@ -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
Signature · 1 line
2.21.0.rc0.258.g878e2cd30e-goog
#1 lore raw
Quoted 15 lines · Peter Oskolkov

Lightweight tunnels are L3 constructs that are used with IP/IP6. Make the dependency explicit at least for LWT-BPF, as now they call into IP routing.

---
 net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/Kconfig +0 -0
index 5cb9de1aaf88..62da6148e9f8 100644

net/Kconfig config LWTUNNEL · line 409

Quoted 8 lines
net/Kconfig +1 -1
@@ -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

It seems you forgot a 'Reported-by:' tag

Thanks.

#2 lore raw
Quoted 19 lines · Eric Dumazet
Quoted 15 lines · Peter Oskolkov

Lightweight tunnels are L3 constructs that are used with IP/IP6. Make the dependency explicit at least for LWT-BPF, as now they call into IP routing.

---
 net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/Kconfig +0 -0
index 5cb9de1aaf88..62da6148e9f8 100644
@@ -403,7 +403,7 @@ config LWTUNNEL
 
Quoted 10 lines

net/Kconfig config LWTUNNEL · line 409

Quoted 8 lines
net/Kconfig +1 -1
 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

It seems you forgot a 'Reported-by:' tag

Fixed: https://patchwork.ozlabs.org/patch/1043108/

Quoted 2 lines

Thanks.