From nobody Tue Jul 02 04:58:16 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 4WCrJm59sHz5PDLQ; Tue, 02 Jul 2024 04:58:16 +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 4WCrJm4gGXz3x59; Tue, 2 Jul 2024 04:58:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719896296; 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=MlywIGpjV683OXwq7vkcDXy9qDUPYeG2MSekda5Y02o=; b=Oe8JANGRvd2JdSiGhDjlFGX2+Nw7uVuU+MJaZ0bXp51duQfJXn9zrpJwOBpyg1UexZky/g 7GZGSqw6TQhHfEwDCArHNb0keHMz2FP5WsxTZFxmGv4qxd6g6J6D4kq/UHYeZdQeapySGB Sp9+kPwq6uQ9Mq/0rT9lNPKDM9LqpCioW4PGj4CcXygV2To3itsFHlmG4uti/Eej5JEiJx dTzMVavbaPnc823phJgtZ5tA0Wqj460fIdf34MEZlmD8hC7yaXMshnRVtIQsCqq2ASxJGS 6G/pJ3kki7qfiilIxT/irXMGA1opf220Fth6i20duutmgz2L2GrgsJSzvxWJ4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719896296; a=rsa-sha256; cv=none; b=wjhP5aR72yv05kBYG7IhU+1VbQGQ9VyDbuPJdXN/buNZXsPDgDHsLSlUL5Lf32qvUjWwDC W3rxK2TeCVy6eHq/AyF3i2Zb8w7r3y8/srNqU/RAxgwih4KSRo43r800Ojr/HAocFYaNkB rNliY7hppn/L5ZXwt1wbo5r0SAaVurkUgMp5yxGsSRH866jrZ8YO7Pl7lQIp+Rulwkxc/R xqJFjrxSdnS3LOhumKA2ZKW8zr5Plf9orNBLtXXwPlG16wDH5itJX/iOZGpONio63D799H 16ISAmborH90X9/74wSav+XxYF+qNdWLDP4NELRRXZuV+9MF8YLiy973Dv5wQg== 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=1719896296; 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=MlywIGpjV683OXwq7vkcDXy9qDUPYeG2MSekda5Y02o=; b=GeXfofHPwUEdVsT2CgqvATY8D0yADwju0UVRj1U3Kd8KgfymHtccU8eLWTIBlUHU1OvQM6 8nS1G6ta14ExRN2C6sohmn11oZyueJRCgzV5qAmWIh3BAtlB0A2GQXL5pH4xKDHA1lynLB x3VWR+zXj6E3tP9Vwt70xFDMfUxvd8heH8kIo+THIvZtaVqXUQcE43fAKYYIQgTxPUaQrG IY1wAYmFSMMwA4F5M3K7KEvn03YlSeD/sX3btwjR4onsKdl/ps6oh/MpVMDy7i0nTLbtOB oABA7UhYLsBBuO+E3bDT6JzVSLWtt+nom/8V3BwV9VpF2wZQmSP2sAaY5Gf6kA== 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 4WCrJm4GkszbBF; Tue, 2 Jul 2024 04:58:16 +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 4624wGWe062892; Tue, 2 Jul 2024 04:58:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4624wGtR062889; Tue, 2 Jul 2024 04:58:16 GMT (envelope-from git) Date: Tue, 2 Jul 2024 04:58:16 GMT Message-Id: <202407020458.4624wGtR062889@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: d6963b9ed328 - main - 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/main X-Git-Reftype: branch X-Git-Commit: d6963b9ed3287e91db3d1df153861591faff0007 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d6963b9ed3287e91db3d1df153861591faff0007 commit d6963b9ed3287e91db3d1df153861591faff0007 Author: Zhenlei Huang AuthorDate: 2024-07-02 04:57:01 +0000 Commit: Zhenlei Huang CommitDate: 2024-07-02 04:57:01 +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 --- 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 37f987981a0c..05430768cc73 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