]> git.baikalelectronics.ru Git - 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)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Dec 2021 03:20:06 +0000 (19:20 -0800)
commitcfd5ce5203198948879dba0dd8028a17b80c2ab6
tree14309a39074964d91bf7010914d5153c81fd5b22
parent5e89a0f6970f38659cdf51574b84202971727176
selftests: Calculate udpgso segment count without header adjustment

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: f3de503872c7 ("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>
tools/testing/selftests/net/udpgso.c