Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2024 10:17:47 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7de38cbb5dc4 - stable/14 - if_vxlan(4): Exclude ETHER_CRC_LEN from macro VXLAN_MAX_MTU
Message-ID:  <202407101017.46AAHlFj070921@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=7de38cbb5dc4d0a6de65eb562a1b066313dc756a

commit 7de38cbb5dc4d0a6de65eb562a1b066313dc756a
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-07-02 04:57:01 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-07-10 10:17:09 +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)
---
 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 87648abd116b..7a8cf7acae58 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -98,7 +98,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407101017.46AAHlFj070921>