From nobody Wed Jul 10 11:45:20 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 4WJwym51RMz5QJV1; Wed, 10 Jul 2024 11:45:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJwym2LrXz49hB; Wed, 10 Jul 2024 11:45:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720611920; 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=z6mThVOHdFk71oPQizlwhVAxswZ4py02ZDr22+5+oeo=; b=NqGSI7TqGc/vVmxfynud9jK6c/KWvPDYMiztvkMzOBh1lP/XPEEjH/0yTRWsGdQUc6kuj4 cHZInxEv/sdy+g9x53w4UaIsY9UCz+S++Gp244XUioUBvA1Xrq1kMsRrX+KIIPfhE8VmbP gD1j1lUhqSST3ud7Anoa0e8FoC/uUolQ5/+T4tO3L0AnHFS/adhqzslaASkn6gKsZaeFFM w+M2Po5HpuPOd49RJlVWPGruiFfMA0RREZg15nEA+gcYAM7u0lUnICNRbmI2WZieWVogLK 6oleyTkGfXXET6DkwbtBNB29/P5MyI8fmXTLG8JnEzDcmVpo5wsP7CLuf6O6Ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720611920; a=rsa-sha256; cv=none; b=USrfw4TQWG3CMcOttZ9DAtz10hiSkE24bZiacvB6vsHzbp0i+9OTwQu4/KW4nSNQJUlyFV cnZpYm/ldCh199Ayj/ioBn6RCjY5bEg9Hp3sKeOZ1zFlT2RqZ6O5TTjfMbakChtVX5cwCY PQsT+dJn4bEpLr9A0+V1B9el8Q3FdmfyXhV8X10NBmVzrbVmVCJ5JA5+adRoG5GW4XTSx3 e+WY9RsCUFvsKzt3dINNKRnDyCR/7qlbrWDSxpZM9lcvztIy456L5O78zDiJ4y7AO5E2Ug Ptdlbvc81lM4ueigmITtMS9mEib+0V0DBBhkdIY6dn29snXiBLLHaMG4Abewfw== 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=1720611920; 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=z6mThVOHdFk71oPQizlwhVAxswZ4py02ZDr22+5+oeo=; b=kBme2RR7eCB0jTt3RxYy2Lkgo5mHwxOkRWawbcQ6lXto+vNKtS87As5/XLyJCZb0xl5hiL qQ5yWb+HJasBTDszOqEPUVRe+iU2vaDDwuFavCqJxgXVfGQBbnlINDiL84b1KHfHT/hGYc fecDw5e49WrP5OCA8hPVaeqrNPNawS/R2eQp28s0UKoyLDbUsuIG407S89iqcYHed8TRpY QQFKGd9DV8kXNnLLluVEppEpir3UwOac6P1SE3uACLrlbaFc2c0RnYquofjGyGyp9DYmBz t2nZXCkJgeE+2XCOOxosaMb11nZGrn5Dudjr8jf7y75on2Izh3H0J4NRmwHVAQ== 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 4WJwym1z5NzGMv; Wed, 10 Jul 2024 11:45:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46ABjKKi023178; Wed, 10 Jul 2024 11:45:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46ABjKsB023175; Wed, 10 Jul 2024 11:45:20 GMT (envelope-from git) Date: Wed, 10 Jul 2024 11:45:20 GMT Message-Id: <202407101145.46ABjKsB023175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 44aca0397cc8 - stable/13 - if_vxlan(4): Exclude ETHER_CRC_LEN from macro VXLAN_MAX_MTU 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 44aca0397cc84e2483bc04b21b3e836aa2ae79c7 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=44aca0397cc84e2483bc04b21b3e836aa2ae79c7 commit 44aca0397cc84e2483bc04b21b3e836aa2ae79c7 Author: Zhenlei Huang AuthorDate: 2024-07-02 04:57:01 +0000 Commit: Zhenlei Huang CommitDate: 2024-07-10 11:43:36 +0000 if_vxlan(4): Exclude ETHER_CRC_LEN from macro VXLAN_MAX_MTU The encapsulated (original) frame does not count in FCS as per Section 5 of RFC 7348. Reviewed by: afedorov, bryanv, #network Fixes: b7592822d5de Allow set MTU more than 1500 bytes MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45195 (cherry picked from commit d6963b9ed3287e91db3d1df153861591faff0007) (cherry picked from commit 7de38cbb5dc4d0a6de65eb562a1b066313dc756a) --- sys/net/if_vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index 3802ebe4bfbe..34816ede13a3 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -97,7 +97,7 @@ struct vxlan_socket_mc_info { 60 /* Maximum IPv4 header len */ - \ sizeof(struct udphdr) - \ sizeof(struct vxlan_header) - \ - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN) + ETHER_HDR_LEN - ETHER_VLAN_ENCAP_LEN) #define VXLAN_BASIC_IFCAPS (IFCAP_LINKSTATE | IFCAP_JUMBO_MTU) #define VXLAN_SO_MC_MAX_GROUPS 32