Skip to contentSkip to conversation

fou: Remove IPPROTO_UDPLITE check in gue_err() and gue6_err().

PATCH Applied Kuniyuki Iwashima 3 participants 3 messages Mar 16 – Mar 17

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

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
index 3baaa4df7e42..5bae3cf7fe76 100644
@@ -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
index 430518ae26fa..157765259e2f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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() and gue6_err() no longer occurs with UDP-Lite.

Quoted 7 lines

Let's remove the checks.

---
 net/ipv4/fou_core.c | 3 +--
 net/ipv6/fou6.c     | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
#2 lore raw
In reply to Kuniyuki Iwashima
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() and gue6_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