diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2023-01-10 10:15:15 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-01-12 12:53:54 +0100 |
commit | 5c338112e48ab1937f99e4a8990a82c999fda126 (patch) | |
tree | 4a9e9bd4ce34b36fc1e8e5313787c20003630a8b /tools/testing/vsock/util.h | |
parent | c43170b7e1571efc11c443fb8889842073b77fe5 (diff) |
test/vsock: rework message bounds test
This updates message bound test making it more complex. Instead of
sending 1 bytes messages with one MSG_EOR bit, it sends messages of
random length(one half of messages are smaller than page size, second
half are bigger) with random number of MSG_EOR bits set. Receiver
also don't know total number of messages.
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/vsock/util.h')
-rw-r--r-- | tools/testing/vsock/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/vsock/util.h b/tools/testing/vsock/util.h index a3375ad2fb7f..fb99208a95ea 100644 --- a/tools/testing/vsock/util.h +++ b/tools/testing/vsock/util.h @@ -49,4 +49,5 @@ void run_tests(const struct test_case *test_cases, void list_tests(const struct test_case *test_cases); void skip_test(struct test_case *test_cases, size_t test_cases_len, const char *test_id_str); +unsigned long hash_djb2(const void *data, size_t len); #endif /* UTIL_H */ |