selftests: ublk: enable zero copy for null target
authorMing Lei <ming.lei@redhat.com>
Sat, 22 Mar 2025 09:32:14 +0000 (17:32 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Mar 2025 14:35:08 +0000 (08:35 -0600)
commit8cb9b971e2b6103c72faf765f64239f86ec9328f
tree80f9d875ff82c462cc3167f564c6afd9ca32c4ea
parent8842b72a821d4cd49281fa096c35f9fa630ec981
selftests: ublk: enable zero copy for null target

Enable zero copy for null target so that we can evaluate performance
from zero copy or not.

Also this should be the simplest ublk zero copy implementation, which
can be served as zc example.

Add test for covering 'add -t null -z'.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250322093218.431419-7-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/kublk.h
tools/testing/selftests/ublk/null.c
tools/testing/selftests/ublk/test_null_02.sh [new file with mode: 0755]