]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vsock/test: Add macros to identify transports
authorLuigi Leonardi <leonardi@redhat.com>
Mon, 30 Jun 2025 16:33:03 +0000 (18:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Jul 2025 22:05:22 +0000 (15:05 -0700)
commite84b20b25d37622641953568ac54f0c63c409fef
tree4764b3417c158d7b1bf1ebdd571b15bad1e70a7b
parent6d359cf464f40baadf5e5595613c38a12f5829ef
vsock/test: Add macros to identify transports

Add three new macros: TRANSPORTS_G2H, TRANSPORTS_H2G and
TRANSPORTS_LOCAL.
They can be used to identify the type of the transport(s) loaded when
using the `get_transports()` function.

Suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20250630-test_vsock-v5-1-2492e141e80b@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/vsock/util.h