[PATCH] sit: replace 68 with micro IPV4_MIN_MTU

Subsystems: networking [general], the rest

STALE1914d

2 messages, 2 authors, 2021-06-02 · open the first message on its own page

[PATCH] sit: replace 68 with micro IPV4_MIN_MTU

From: zhang kai <hidden>
Date: 2021-06-02 02:23:13

Use meaningfull micro IPV4_MIN_MTU

Signed-off-by: zhang kai <redacted>
---
 net/ipv6/sit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index aa98294a3..71b57bdb1 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -970,7 +970,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,
 	if (df) {
 		mtu = dst_mtu(&rt->dst) - t_hlen;
 
-		if (mtu < 68) {
+		if (mtu < IPV4_MIN_MTU) {
 			dev->stats.collisions++;
 			ip_rt_put(rt);
 			goto tx_error;
-- 
2.17.1

Re: [PATCH] sit: replace 68 with micro IPV4_MIN_MTU

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-02 20:30:14

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Wed,  2 Jun 2021 09:50:39 +0800 you wrote:
Use meaningfull micro IPV4_MIN_MTU

Signed-off-by: zhang kai <redacted>
---
 net/ipv6/sit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
  - sit: replace 68 with micro IPV4_MIN_MTU
    https://git.kernel.org/netdev/net-next/c/7f0e869c4e39

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help