Re: [PATCH 5.10 142/147] selftests: forwarding: vxlan_bridge_1d: fix test failure with br_netfilter enabled

Ben Hutchings
2026-03-23T18:48:52Z

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

On Sat, 2026-02-28 at 13:17 -0500, Sasha Levin wrote:
> From: Aleksei Oladko <aleksey.oladko@virtuozzo.com>
>
> [ Upstream commit 02cb2e6bacbb08ebf6acb61be816efd11e1f4a21 ]
>
> The test generates VXLAN traffic using mausezahn, where the encapsulated
> inner IPv4 packet contains a zero IP header checksum. 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 calculating and setting a valid IPv4 header checksum for the
> encapsulated packet generated by mausezahn, so that the packet is accepted
> by br_netfilter. Fixed by using the payload_template_calc_checksum() /
> payload_template_expand_checksum() helpers that are only available
--------------
> in v6.3 and newer kernels.
-------------------------
[...]

So for 5.10-6.1 you need to either backport commit 952e0ee38c72
"selftests: forwarding: lib: Add helpers for checksum handling" or
revert this one.

Ben.

--
Ben Hutchings
73.46% of all statistics are made up.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]