Re: [Intel-wired-lan] [PATCH iwl-net] selftests/net: Fix csum test for short packets

2024-08-27 Thread Galazka, Krzysztof
On 2024-08-21 16:32, Willem de Bruijn wrote: Krzysztof Galazka wrote: For IPv4 and IPv6 packets shorter than minimum Ethernet frame payload, recvmsg returns lenght including padding. nit: length Use length from header for checksum verification to avoid csum test failing on correct packets

Re: [Intel-wired-lan] [PATCH iwl-net] selftests/net: Fix csum test for short packets

2024-08-21 Thread Simon Horman
On Wed, Aug 21, 2024 at 04:24:09PM +0200, Krzysztof Galazka wrote: > For IPv4 and IPv6 packets shorter than minimum Ethernet > frame payload, recvmsg returns lenght including padding. > Use length from header for checksum verification to avoid > csum test failing on correct packets. > > Fixes: 1d0

[Intel-wired-lan] [PATCH iwl-net] selftests/net: Fix csum test for short packets

2024-08-21 Thread Krzysztof Galazka
For IPv4 and IPv6 packets shorter than minimum Ethernet frame payload, recvmsg returns lenght including padding. Use length from header for checksum verification to avoid csum test failing on correct packets. Fixes: 1d0dc857b5d8 (selftests: drv-net: add checksum tests) Signed-off-by: Krzysztof Gal

Re: [Intel-wired-lan] [PATCH iwl-net] selftests/net: Fix csum test for short packets

2024-08-21 Thread Willem de Bruijn
Krzysztof Galazka wrote: > For IPv4 and IPv6 packets shorter than minimum Ethernet > frame payload, recvmsg returns lenght including padding. nit: length > Use length from header for checksum verification to avoid > csum test failing on correct packets. > > Fixes: 1d0dc857b5d8 (selftests: drv-ne