]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: net: csum: Clean up recv_verify_packet_ipv6
authorSean Anderson <sean.anderson@linux.dev>
Mon, 30 Sep 2024 16:29:34 +0000 (12:29 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Oct 2024 23:44:28 +0000 (16:44 -0700)
commitd772cc25ccf772f4cbb81270970cbe1356c23d3e
tree437f5bba1937e6f0f9df2e35672c49f3e619053c
parentbe4e3235445725546f25f09ace04a4237c72e071
selftests: net: csum: Clean up recv_verify_packet_ipv6

Rename ip_len to payload_len since the length in this case refers only
to the payload, and not the entire IP packet like for IPv4. While we're
at it, just use the variable directly when calling
recv_verify_packet_udp/tcp.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240930162935.980712-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib/csum.c