From nobody Fri Nov 13 11:42:43 2026 X-Original-To: dev-commits-src-main@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 4jQwNg3Jnbz70QmV for ; Fri, 13 Nov 2026 11:42:43 +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 4jQwNg15zYz4PMc for ; Fri, 13 Nov 2026 11:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794570163; 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=qcoFiKwppyvnaENHhhQx+8Iv3VC/QejeUIVsF4f9CTU=; b=Te2ybkymXmP73sTf6OyP1UzbwnU0CzR9rydR0iTdQ0cZ5+z6wUKLPMEfu/F1QAot8+71yb H6viJ7244dFM/EkTR5TKU3S+rO9VSvxf0LnbMLiJp1wFgHTU+8MZkmo+RYaZHlBwObmXrr Ionoi6NsBdua2vPoFWjUfsE5alATHGopyVrn6j7DOYDIbicmGJkyXehCWOsCWOPc8vS2Ks pxFuhi8bcmZAk4gFAQf1sKkwiJ16tFpBMzLz3aHnP/EtUbla9tl3JXfMMFJDiArtOzgagJ 8+ap9InBCryB3RyI6ZpadpP7b8fNdG8lcz2PsbXFsd+9149N3PZMoULO5d4+Aw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794570163; b=wWpOuN0B79eLEonnQ5FekeyEJLjryo8zEoa7AY2q2WoMZCCGZswD2i3zLYU5pDQxVNEU/h E+mgc0E7kmfOOJ1IlhARjRR93yM52dZhzvkuqjpL/3NzbL/nfKL8MZz4dXuSJ+Legkq81z ppB2jcAp+MMK1+nStiVrwTY91LS7lMc6wqaDsWjyybjnyWpYk6dBFll0NeUt0DV87gUGii ISOUaECtf7SGq26sYTplOnoyfnsDL2Cf0SnKbBAMxhiWY0Ekzbn+i4e5JOW+0AAQE3LwWt 1VgmVop18vHN+X2/Xn3aAQ2v3wrzjRoQF2Hbr6ZeTTkzvPJEaP7zSxnzxecUdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794570163; 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=qcoFiKwppyvnaENHhhQx+8Iv3VC/QejeUIVsF4f9CTU=; b=hRN/cSdtwX8wDXXiPen0AqxOg4YE8X6eUca3GKkovQOJeyWox/HxT4kmQdL6itjXj4Oj9g dgvtif73nB+JRDJaL4JPh6DDFaCbGNW9P0Ku1Bs2zrsg5qIxyERqrzMnAB8QDTzvC4XMvr PZAQWiMnoRHyXm4hXr6w4vNTATWUExT8vWP3CVhMb59oHJO46HXTb2qHAhh6bhyawHcfyP /TP9OTyD53I6TGZNF2Fn9xCpZY/GrviquSye6VAepTI1JzCdMrkDK908oEUF2MKf8Nw4z9 wlRLvMkN1yylCCKfvmZFICzPOytv1xLqkbDxT7vV5g/08I/E6Z9JKsKUXm4IrQ== 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 4jQwNg0CKhzYwD for ; Fri, 13 Nov 2026 11:42:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 146a7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 11:42:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 39b97c10e6d0 - main - if_geneve: Ignore reserved bits on receive List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org List-Id: Commit messages for the main branch 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: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 39b97c10e6d0ed21f65bf0cb8bd8e359c2c2d8d3 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 11:42:43 +0000 Message-Id: <6af6f7b3.146a7.3d8e59dd@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=39b97c10e6d0ed21f65bf0cb8bd8e359c2c2d8d3 commit 39b97c10e6d0ed21f65bf0cb8bd8e359c2c2d8d3 Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-11-13 11:35:13 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-11-13 11:41:56 +0000 if_geneve: Ignore reserved bits on receive RFC 8926 section 3.4 requires the reserved fields of geneve header to be ignored on receipt. While here, remove the needless htons() from the version check, as geneve_ver is a 2-bit bitfield with no byte order. Fixes: e44d2e941e8e ("if_geneve: Add Support for Geneve (RFC8926)") --- sys/net/if_geneve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/net/if_geneve.c b/sys/net/if_geneve.c index c7571984c4cf..e13075ec583d 100644 --- a/sys/net/if_geneve.c +++ b/sys/net/if_geneve.c @@ -123,7 +123,6 @@ struct geneve_socket_mc_info { #define GENEVE_BASIC_IFCAPS (IFCAP_LINKSTATE | IFCAP_JUMBO_MTU | IFCAP_NV) #define GENEVE_VERSION 0 -#define GENEVE_VNI_MASK (GENEVE_VNI_MAX - 1) #define GENEVE_HDR_VNI_SHIFT 8 @@ -3005,8 +3004,7 @@ geneve_udp_input(struct mbuf *m, int offset, struct inpcb *inpcb, * Drop if there is a reserved bit or unknown version set in the header. * As defined in RFC 8926 3.4 */ - if (gnvh->geneve_ver != htons(GENEVE_VERSION) || - gnvh->geneve_vni & ~GENEVE_VNI_MASK) + if (gnvh->geneve_ver != GENEVE_VERSION) return (false); /*