From nobody Fri Oct 16 21:17:24 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4j5ySh2HYvz6vmdy for ; Fri, 16 Oct 2026 21:17:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4j5ySh1mFnz3Ly8 for ; Fri, 16 Oct 2026 21:17:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792185444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rDmDQPs1iYMkuGWgX3Yvy6oHI+b+5EJuJp0oFVfrXOU=; b=R33s1vTE/2fTqcGA4zeOEd/OLVK8V4X239p5XJzhUBzpkGrAccypKXaiKpfKigoU5v6I/L pgDck2d+X6UR6nNnzorrsDoZTHTh2it0/E6cpWcK8GPHtypN9mu/bexafLjMsnxyeq9DdL n6TqSPWXdqatv1tjiWK0/Wm2/o+HeGk3fuE0XE2ZX4hdsfaHzR5zdVvcZu/vgks3jU4KDm Vl4/yDDm1wFscue9o5pyo1UkhjK4HMRAAzHZU3qE6ZO8H8ZEwQByaIE/kpJiCT+hU+E2Wy hzgYlCoMTViabbWLtBBYw7FEnlKjokkO58s68rYQgtSqqN9AK1I6BRm9vAANIg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792185444; b=c4VND9Cy5Xu5Vd5z4XahufG6CmyGjKJsXTSb7Sozmt91CCN5WpQkT8Vw8zaKdWQYrMFxPV ufakbZotwIL3R//LlgC5ATcSKCaJzAqNB89GlhL3x9ezfbfU6X4xeMDjHDXt0hbUI41nFS v+Dfsj6eDeR934LnRqKIlXtHA0vTjc4ntZ/sHXXW0wM02Qghr2IOsOU4um2qzwv0EFcxVG 7XCs+6orUXXRTr/dzU7dBHNNuv1tS6e4zZFvHH0/LZcBYYVJmkupWUyOxFPKai7SeX1OGp hGi8aJ9ZYVaAkx0Bl2bS+IXeDLUQBolgSaZSK792rB7tqWasHxhqRiYt60GZig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792185444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rDmDQPs1iYMkuGWgX3Yvy6oHI+b+5EJuJp0oFVfrXOU=; b=xRg2pODBPRXDg8QNhGwaUsE9UYpHJGGaDhV82uhUkjhHs1OgtKwjlh7fXpX62QPULfwkzE SUl+dgihjEsfcssBtBkXbaca7ObUY1Vh69ihRQkRvIy1P5A4c3CFSw92ycDUdUdejwG6PX WWEOla0+06Y3I+AWJr6xtTYt7wDr/bRAPJA9NACPYyMukLDFRC18JWsbeq7hWD+3MoXlFL GNLAaSGeL1dlqVLI69g9kYxogqidenCDckRyWaXn4jdrBeIws2qn6yaOsLJihUeFzSKaSw Qabd2BVQlfLOfe5pdTWAACo9Lc73H6B2kjVP99MoX5nl7MrVb9NRdlcFjXJ67A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j5ySh18jczcrK for ; Fri, 16 Oct 2026 21:17:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3923f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 16 Oct 2026 21:17:24 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: a44c11974c82 - main - loopback: set MTU to IF_MAXMTU List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a44c11974c82a01c767a33332177a39fd65616fe Auto-Submitted: auto-generated Date: Fri, 16 Oct 2026 21:17:24 +0000 Message-Id: <6ad29464.3923f.23a5f45f@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=a44c11974c82a01c767a33332177a39fd65616fe commit a44c11974c82a01c767a33332177a39fd65616fe Author: Gleb Smirnoff AuthorDate: 2026-10-16 21:08:36 +0000 Commit: Gleb Smirnoff CommitDate: 2026-10-16 21:08:36 +0000 loopback: set MTU to IF_MAXMTU It was temporarily reduced in af78195e0024 in 1994 to hide some bugs with signed short overflow. We believe all these bugs were sorted out by today. :) Note that earlier ba582a82b0e36 reduced the MTU be rounded to a longword with a reference "NFS likes it to be rounded". We have had several refactors of the NFS code since that. Reviewed by: pouria, zlei, tuexen Differential Revision: https://reviews.freebsd.org/D59450 --- sys/net/if_loop.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 647dbe79e229..9231ec6dab85 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -73,14 +73,6 @@ #include -#ifdef TINY_LOMTU -#define LOMTU (1024+512) -#elif defined(LARGE_LOMTU) -#define LOMTU 131072 -#else -#define LOMTU 16384 -#endif - #define LO_CSUM_FEATURES (CSUM_IP | CSUM_IP_TCP | CSUM_IP_UDP | \ CSUM_IP_SCTP) #define LO_CSUM_FEATURES6 (CSUM_IP6_TCP | CSUM_IP6_UDP | CSUM_IP6_SCTP) @@ -123,7 +115,7 @@ lo_clone_create(struct if_clone *ifc, char *name, size_t len, ifp = if_alloc(IFT_LOOP); if_initname(ifp, loname, ifd->unit); - ifp->if_mtu = LOMTU; + ifp->if_mtu = IF_MAXMTU; ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST; ifp->if_ioctl = loioctl; ifp->if_output = looutput;