fou: Remove IPPROTO_UDPLITE check in gue_err() and gue6_err().
Subsystems (2)
PATCH 1/1 fou: Remove IPPROTO_UDPLITE check in gue_err() and gue6_err().
UDP-Lite has been removed, and its error handler is no longer found in either inet_protos[IPPROTO_UDPLITE] or inet6_protos[IPPROTO_UDPLITE].
The recursion fixed by the protocol check in gue_err() and gue6_err() no longer occurs with UDP-Lite.
Let's remove the checks.
--- net/ipv4/fou_core.c | 3 +-- net/ipv6/fou6.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
net/ipv4/fou_core.c +1 -2
@@ -1150,8 +1150,7 @@ static int gue_err(struct sk_buff *skb, u32 info)* recursion. Besides, this kind of encapsulation can't even be * configured currently. Discard this. */ -if (guehdr->proto_ctype ==IPPROTO_UDP || - guehdr->proto_ctype ==IPPROTO_UDPLITE ) +if (guehdr->proto_ctype ==IPPROTO_UDP )return -EOPNOTSUPP ;skb_set_transport_header (skb, -(int )sizeof (struct icmphdr ));
net/ipv6/fou6.c +1 -2
@@ -141,8 +141,7 @@ static int gue6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,* recursion. Besides, this kind of encapsulation can't even be * configured currently. Discard this. */ -if (guehdr->proto_ctype ==IPPROTO_UDP || - guehdr->proto_ctype ==IPPROTO_UDPLITE ) +if (guehdr->proto_ctype ==IPPROTO_UDP )return -EOPNOTSUPP ;skb_set_transport_header (skb, -(int )sizeof (struct icmp6hdr ));
Signature · 1 line
2.53.0.851.ga537e3e6e9-goog
Quoted 7 lines · Kuniyuki Iwashima
UDP-Lite has been removed, and its error handler is no longer found in either inet_protos[IPPROTO_UDPLITE] or inet6_protos[IPPROTO_UDPLITE].
The recursion fixed by the protocol check in
gue_err()andgue6_err()no longer occurs with UDP-Lite.
Quoted 7 lines
Let's remove the checks.
Signed-off-by Kuniyuki Iwashima <[email protected]>--- net/ipv4/fou_core.c | 3 +-- net/ipv6/fou6.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
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 8 lines · On Mon, 16 Mar 2026 13:31:25 +0000 you wrote:
UDP-Lite has been removed, and its error handler is no longer found in either inet_protos[IPPROTO_UDPLITE] or inet6_protos[IPPROTO_UDPLITE].
The recursion fixed by the protocol check in
gue_err()andgue6_err()no longer occurs with UDP-Lite.[...]
Here is the summary with links:
- [v1,net-next] fou: Remove IPPROTO_UDPLITE check in gue_err() and gue6_err().
https://git.kernel.org/netdev/net-next/c/e3f741f587a9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html