All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sit: replace 68 with micro IPV4_MIN_MTU
@ 2021-06-02  1:50 zhang kai
  2021-06-02 20:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: zhang kai @ 2021-06-02  1:50 UTC (permalink / raw)
  To: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel; +Cc: zhang kai

Use meaningfull micro IPV4_MIN_MTU

Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sit: replace 68 with micro IPV4_MIN_MTU
  2021-06-02  1:50 [PATCH] sit: replace 68 with micro IPV4_MIN_MTU zhang kai
@ 2021-06-02 20:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-02 20:30 UTC (permalink / raw)
  To: zhang kai; +Cc: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel

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 <zhangkaiheb@126.com>
> ---
>  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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-02 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02  1:50 [PATCH] sit: replace 68 with micro IPV4_MIN_MTU zhang kai
2021-06-02 20:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.