]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: Calculate udpgso segment count without header adjustment
authorCoco Li <lixiaoyan@google.com>
Thu, 23 Dec 2021 22:24:41 +0000 (22:24 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Fri, 21 Jan 2022 14:49:19 +0000 (15:49 +0100)
commitb7e8acdfc573f2dfc96589edd3d71ecda92914c0
tree5b9c2047c8d71c6902ac79bd22d52c4921391b1a
parent8d66550de253f4e01f98e3733e2f6e2681899d09
selftests: Calculate udpgso segment count without header adjustment

BugLink: https://bugs.launchpad.net/bugs/1956926
[ Upstream commit 5471d5226c3b39b3d2f7011c082d5715795bd65c ]

The below referenced commit correctly updated the computation of number
of segments (gso_size) by using only the gso payload size and
removing the header lengths.

With this change the regression test started failing. Update
the tests to match this new behavior.

Both IPv4 and IPv6 tests are updated, as a separate patch in this series
will update udp_v6_send_skb to match this change in udp_send_skb.

Fixes: 158390e45612 ("udp: using datalen to cap max gso segments")
Signed-off-by: Coco Li <lixiaoyan@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20211223222441.2975883-2-lixiaoyan@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
tools/testing/selftests/net/udpgso.c