From nobody Mon Apr 01 03:36:17 2024 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 4V7Grf3X7gz5FMpG; Mon, 1 Apr 2024 03:36:18 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V7Grd6tS4z4HnM; Mon, 1 Apr 2024 03:36:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711942578; 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=gtLKmMbD4wwJFb78iOIpT1Rcg+6WVx0MaoMvrcr3vcI=; b=YRoAVJkN/p3aOPuYQAqR6/X2spmtT/aCSR1Gb0GQmJvjGOuhQuQc/C0slSohakuummMQ2C pmYNtVPPqNBixMSDJUwXCpufMHCGi/wOTN9R+07K+UQjoUoSJpqyEfi0UksWby3v93bXi2 RN04KFGWfPjpom8yYbeUVNvgkm9FOhf6uYQCdvA/Qn8EEgKfOyagcnXOTUYzPAKNksrelX jYn501nIYB8wq/JnbeCp1q4NBDAD+WTi3cTWlPuwBR+Y0vd8/nfEQcdA9Bndp3duZYKq0y TPLLkuM8q3GG+/4pUSpRGf7c6HOTSNIonl/g5B27syI1a69hszGYPEYZ5tseSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711942578; a=rsa-sha256; cv=none; b=ANQu89IB60utC2RxXSTCvZ/6ooZ5zeui+RWAP43qhEyMwCf2bNK2HnT67Yzm+po7//TEO1 K0OjM/7VulrUCpy+hk0CYcMXMmywGRt7VHRbi/lWB5fHJbuHw1NEp+VCc+JYhgYjCgz5Wd AbMnYXn4PiHDwISF9jUXACqNE3RPAF2SLfPo/d3dEAr4mHkgET6oJAKPtRm9KxlngrWFBf xFXD0nWZ3DufBw6vcJuz1UkRRp5ZvrPBc5VgwKacPyGrOxBRTdKHCwC3QV94mHxsGtFgji wvH1WrC8wnxFdBGMGCsjIetVqAsaq54lt7xJHFHTT9uld9Qn1T5hlRvxVymLaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711942578; 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=gtLKmMbD4wwJFb78iOIpT1Rcg+6WVx0MaoMvrcr3vcI=; b=DtOEvAZohpV5XngJ17Hj8DxCIvt7haWtjIBoTy6fI5OwBzZ5BtV9ww9iztFPZjSJEuRhLU /SbBaJ6aXgFxvkAo+eBQ0dce4zte92ADuGo7vI6ZzQPTWQ8HU8Z7E9hLJM3jGQs6QxFwCg IxeUPMQbaoQhG7ER1tHohrmZW7rNkmqcJZ03axrTn5DwFmy5RuTXGFaYkk3Qv7vnPjX5Gd GeV370nek1d96K92Y6kk+dDe8wzwGEfUSEzReuiWjWDrID/x366qUT7RGlizEixdGXcpo8 5XrkN4b3DDm+h8KlS2j3qscWoirqdLxu0PxKqgCx8NVBmM64FpQ/yxkD8US2lQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V7Grd6VJVz15RZ; Mon, 1 Apr 2024 03:36:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4313aHDG030575; Mon, 1 Apr 2024 03:36:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4313aHGJ030572; Mon, 1 Apr 2024 03:36:17 GMT (envelope-from git) Date: Mon, 1 Apr 2024 03:36:17 GMT Message-Id: <202404010336.4313aHGJ030572@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Eugene Grosbein Subject: git: 319a5d086b50 - main - if_bridge: use IF_MINMTU List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 319a5d086b50f38618b62c78e83b12931f00b508 Auto-Submitted: auto-generated The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=319a5d086b50f38618b62c78e83b12931f00b508 commit 319a5d086b50f38618b62c78e83b12931f00b508 Author: Eugene Grosbein AuthorDate: 2024-04-01 03:31:51 +0000 Commit: Eugene Grosbein CommitDate: 2024-04-01 03:35:59 +0000 if_bridge: use IF_MINMTU Replace incorrect constant 576 with IF_MINMTU to check for minumum MTU. This unbreaks bridging tap interfaces with small mtu. MFC after: 1 week --- sys/net/if_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index fe5de468bf28..31758733adb1 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -960,7 +960,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCSIFMTU: oldmtu = sc->sc_ifp->if_mtu; - if (ifr->ifr_mtu < 576) { + if (ifr->ifr_mtu < IF_MINMTU) { error = EINVAL; break; }