]> www.infradead.org Git - users/willy/xarray.git/commitdiff
sit: replace 68 with micro IPV4_MIN_MTU
authorzhang kai <zhangkaiheb@126.com>
Wed, 2 Jun 2021 01:50:39 +0000 (09:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 20:28:05 +0000 (13:28 -0700)
Use meaningfull micro IPV4_MIN_MTU

Signed-off-by: zhang kai <zhangkaiheb@126.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c

index aa98294a3ad3177d69f39a773b08d77b1b950e6d..71b57bdb1519bc10d2120b48162de348f97d3538 100644 (file)
@@ -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;