Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A052132ED2A for ; Sat, 28 Feb 2026 18:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772301940; cv=none; b=h6ryWpxXOsxGbSLgR27IVElpuhBok7NLxTeWsKj4QThWF1IuaA4eecZg1tl+/7KXsqJDlyaLXpdEBBKLFMocbmBpBKbK1hnUWxhK6qFKNz9W0FYeH8Msb8lvV0fZxEBZK86nUmVGoqWaD/lp46L+Phwp3i84nRYBurtgDtW2Zr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772301940; c=relaxed/simple; bh=5gCvKfs0bTB0F4Kk6OtyP7PM+umeOKiLiMN7hxWE1HA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EKVK/L+u4VAD72iuc3Sm7me03u/QvgDD7yiVuvAUmIAQpqpUGL2cB6T1YPR/1Ssx+rWfu+ka/530DOEe/si62PAYBPPxJ5CX4ilv4d2nj7TDqHXU8kmAfZmUlDm0RSplUjX3R3Q60K3nZgidxWCveLY5TrFXqoLxaUNzJdkGKTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X7h/kr/6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X7h/kr/6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0061C19423; Sat, 28 Feb 2026 18:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772301940; bh=5gCvKfs0bTB0F4Kk6OtyP7PM+umeOKiLiMN7hxWE1HA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7h/kr/6xqu0UK5o3ggDLpoBNATgsJV5fW8/iX5V/3qiytfLcpoZy+KZpWiBQehnN i00YXt12/ZdSn7oKaX8+TTFe+1ly8ugafih5WJNf4biscyJHM1rCsSaDMkv/o+RrtS 1Enjjc1wlOThJ0jDNiTDs8jLR5ELFMp1fWFOyYWaxOiK0FPFmRBaeL/pjhUGKmgGYg 8rGSARlOk5dqRa+RXph6cae9Cc3x/wC+Fhc3IBwCOP3mlsRik0Ur4YA8AcxRskh7zR toVPEvM/w8yIPSWSjuBBiJXj9dD0Znwplk2pFcCJRizn2es8GOEJXqvJhFQVQXoe5I WW+FNOye7KJUA== From: Sasha Levin To: patches@lists.linux.dev Cc: Aleksei Oladko , Ido Schimmel , Paolo Abeni , Sasha Levin Subject: [PATCH 6.12 377/385] selftests: forwarding: vxlan_bridge_1d_ipv6: fix test failure with br_netfilter enabled Date: Sat, 28 Feb 2026 12:59:59 -0500 Message-ID: <20260228180011.1568201-377-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228180011.1568201-1-sashal@kernel.org> References: <20260228180011.1568201-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Aleksei Oladko [ Upstream commit ce9f6aec0fb780dafc1dfc5f47c688422aff464a ] The test generates VXLAN traffic using mausezahn, where the encapsulated inner IPv6 packet has an incorrect payload length set in the IPv6 header. After VXLAN decapsulation, such packets do not pass sanity checks in br_netfilter and are dropped, which causes the test to fail. Fix this by setting the correct IPv6 payload length for the encapsulated packet generated by mausezahn, so that the packet is accepted by br_netfilter. tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh lines 698-706 )"00:03:"$( : Payload length )"3a:"$( : Next header )"04:"$( : Hop limit )"$saddr:"$( : IP saddr )"$daddr:"$( : IP daddr )"80:"$( : ICMPv6.type )"00:"$( : ICMPv6.code )"00:"$( : ICMPv6.checksum ) Data after IPv6 header: • 80: — 1 byte (ICMPv6 type) • 00: — 1 byte (ICMPv6 code) • 00: — 1 byte (ICMPv6 checksum, truncated) Total: 3 bytes → 00:03 is correct. The old value 00:08 did not match the actual payload size. Fixes: b07e9957f220 ("selftests: forwarding: Add VxLAN tests with a VLAN-unaware bridge for IPv6") Signed-off-by: Aleksei Oladko Reviewed-by: Ido Schimmel Link: https://patch.msgid.link/20260213131907.43351-3-aleksey.oladko@virtuozzo.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh index a603f7b0a08f0..e642feeada0e7 100755 --- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh +++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d_ipv6.sh @@ -695,7 +695,7 @@ vxlan_encapped_ping_do() )"6"$( : IP version )"$inner_tos"$( : Traffic class )"0:00:00:"$( : Flow label - )"00:08:"$( : Payload length + )"00:03:"$( : Payload length )"3a:"$( : Next header )"04:"$( : Hop limit )"$saddr:"$( : IP saddr -- 2.51.0