net: devmem: ksft: upgrade rx test to send 1K data
authorMina Almasry <almasrymina@google.com>
Fri, 23 May 2025 23:05:23 +0000 (23:05 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 May 2025 02:19:36 +0000 (19:19 -0700)
commitbaa18bc5353fcb99bc49944c51c6c7829cb1da55
treec3bc14ee789045f24b7b8c203e39f0f610bddf76
parent243d47a5e1e47b2b72d654d7278fc8bff0199b0c
net: devmem: ksft: upgrade rx test to send 1K data

The current test just sends "hello\nworld" and verifies that is the
string received on the RX side. That is fine, but improve the test a bit
by sending 1K data. The test should be improved further to send more
data, but for now this should be a welcome improvement.

The test will send a repeating pattern of 0x01, 0x02, ... 0x06. The
ncdevmem `-v 7` flag will verify this pattern. ncdevmem will provide
useful debugging info when the test fails, such as the frags received
and verified fine, and which frag exactly failed, what was the expected
byte pattern, and what is the actual byte pattern received. All this
debug information will be useful when the test fails.

Signed-off-by: Mina Almasry <almasrymina@google.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250523230524.1107879-8-almasrymina@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/devmem.py