From nobody Fri Oct 16 21:17:24 2026 X-Original-To: dev-commits-src-all@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 4j5ySn3nd7z6vn0l for ; Fri, 16 Oct 2026 21:17:29 +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 4j5ySn1M11z3M97 for ; Fri, 16 Oct 2026 21:17:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792185449; 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=uAasLa/Pk1uMuwP6cYLPICdUDlwlYG80TbqQM9bZ2r39PK7Oy1A2xLOiTJPHB0jCQirTjl bTTSxhkKypAOyqDsVyc3Dgq2n+9LsUPUQevcQB4HjAexXdyETVoN5d8lcyCyRQO/Ji8v7m QxG+7Zt+YpARTLSBicEqa0vmvpBO1OAq6w0Fl7nPd1WEMksvDkHeqqDhTTRrnDOS3Cboj7 AUAb58KSM2HD8ljWmXrjQwzN/UIpO9AWJeSe90Yjleui4IOnRpHpAzELWKtTl4sM7KWL2T 8LxS6ED7rg9pMABgwg4ev2/B/d2HPPHiQHqwJQy2q42fEjYTOh7deDO0P83Lrw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1792185449; b=iUJJ46GwNF93/YE8WuMHTg305DTbGAOFyEnndcdqos4mfuvE2B7C8D+8md40u87yVAu1l2 nzR/gwOVdVdSg52V074pWdlTCYPeB9RgbiCsR9a6Ezw9gSnabhIOzTym4XBmZqaOkTrQV0 vDRq76mxQ/++L9nH6yI8roSPHh6Bp6jsJX5t3bEPFkPizyHtTMtyCc6AIK9mn1gsEUMgxD K/wKMCDR8s0Gw8N4znzMoARxQjaL/u1e/XJfbUzum/7Bm+oDAuqM29FeJ1o5+Fgymo2e5+ vrnNnkk5agXdF74c842twHy6BmQJkgqFn8spRrQWdi5p+m1PWpn5KquoVc2qDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792185449; 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=EIxbKuyW+bk9HfRDJ1mufgQUiY+dr8oJw7YvqCwv2/rco/f4mqwrFR3cBILEYZsQ6jGihM N21GRXlVp4FnXEyRKymHywd+9k/Xkv7SHuTdvQ8kI0+ueqJ8IrmcpQeG/g4NK7fQVNhI1d I4B+7Jkj5VWXH5O+PqFgncEkIOJT5Rzl+f9Aw9I04tNtrg2kHF8gCTFprlkM4IJJCFnoJ+ sL8AKYItOVeKjD/918gZWotT69J4ZXUdH8mW3L/tClbjbbgDUAMylajcsnom+nhoH5cCXs qWwzxb5huoi5BpkwLY/sDUhFMk+ErHlwxCnRWgrgPSkoDOBaYw8eI2gT+6uPkw== 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 4j5ySn0tyFzd30 for ; Fri, 16 Oct 2026 21:17:29 +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-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches 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;