Skip to contentSkip to conversation

mpls: remove test against ipv6_stub

PATCH Applied Eric Dumazet 3 participants 3 messages Feb 28 – Mar 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpls: remove test against ipv6_stub

ipv6_stub is never NULL, let's remove this test.

---
 net/mpls/af_mpls.c | 3 ---
 1 file changed, 3 deletions(-)
net/mpls/af_mpls.c +0 -3
index ef9e749d5e08f4c04e97b2b2182a67329c04d343..ae85a7654b1f6d2871c29e936f582a6faa5d0656 100644
@@ -640,9 +640,6 @@ static struct net_device *inet6_fib_lookup_dev(struct net *net,
 	struct dst_entry *dst;
 	struct flowi6 fl6;
 
-	if (!ipv6_stub)
-		return ERR_PTR(-EAFNOSUPPORT);
-
 	memset(&fl6, 0, sizeof(fl6));
 	memcpy(&fl6.daddr, addr, sizeof(struct in6_addr));
 	dst = ipv6_stub->ipv6_dst_lookup_flow(net, NULL, &fl6, NULL);
Signature · 1 line
2.53.0.473.g4a7958ca14-goog
#2 lore raw
In reply to Eric Dumazet
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Sat, 28 Feb 2026 17:57:15 +0000 you wrote:

ipv6_stub is never NULL, let's remove this test.

---
 net/mpls/af_mpls.c | 3 ---
 1 file changed, 3 deletions(-)

Here is the summary with links:
- [net-next] mpls: remove test against ipv6_stub

    https://git.kernel.org/netdev/net-next/c/a0e8c9a5060f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html