Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mpls: remove test against ipv6_stub

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

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260228175715.1195536-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
a0e8c9a5 c3460457

-3
-3
net/mpls/af_mpls.c
··· 640 640 struct dst_entry *dst; 641 641 struct flowi6 fl6; 642 642 643 - if (!ipv6_stub) 644 - return ERR_PTR(-EAFNOSUPPORT); 645 - 646 643 memset(&fl6, 0, sizeof(fl6)); 647 644 memcpy(&fl6.daddr, addr, sizeof(struct in6_addr)); 648 645 dst = ipv6_stub->ipv6_dst_lookup_flow(net, NULL, &fl6, NULL);