aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-06-15 16:00:05 -0600
committerJens Axboe <axboe@kernel.dk>2022-06-15 16:00:05 -0600
commite5d017ab9cd9605248db68168ae5451f830e646c (patch)
tree210fbb4ae04e727e5fe16dd2c0121f54ecb7263d
parent649d7468ffc2903ca659e976c134e5602e4810bc (diff)
downloadliburing-e5d017ab9cd9605248db68168ae5451f830e646c.tar.gz
test/nop: kill cqe32 test code
This was removed as it was just a debug feature, remove it from the test case as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/nop.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/nop.c b/test/nop.c
index ce223b3..01e41a6 100644
--- a/test/nop.c
+++ b/test/nop.c
@@ -20,7 +20,6 @@ static int test_single_nop(struct io_uring *ring)
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
int ret;
- bool cqe32 = (ring->flags & IORING_SETUP_CQE32);
sqe = io_uring_get_sqe(ring);
if (!sqe) {
@@ -29,10 +28,6 @@ static int test_single_nop(struct io_uring *ring)
}
io_uring_prep_nop(sqe);
- if (cqe32) {
- sqe->addr = 1234;
- sqe->addr2 = 5678;
- }
sqe->user_data = ++seq;
ret = io_uring_submit(ring);
@@ -50,17 +45,6 @@ static int test_single_nop(struct io_uring *ring)
fprintf(stderr, "Unexpected 0 user_data\n");
goto err;
}
- if (cqe32) {
- if (cqe->big_cqe[0] != 1234) {
- fprintf(stderr, "Unexpected extra1\n");
- goto err;
-
- }
- if (cqe->big_cqe[1] != 5678) {
- fprintf(stderr, "Unexpected extra2\n");
- goto err;
- }
- }
io_uring_cqe_seen(ring, cqe);
return 0;
err:
@@ -72,7 +56,6 @@ static int test_barrier_nop(struct io_uring *ring)
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
int ret, i;
- bool cqe32 = (ring->flags & IORING_SETUP_CQE32);
for (i = 0; i < 8; i++) {
sqe = io_uring_get_sqe(ring);
@@ -84,10 +67,6 @@ static int test_barrier_nop(struct io_uring *ring)
io_uring_prep_nop(sqe);
if (i == 4)
sqe->flags = IOSQE_IO_DRAIN;
- if (cqe32) {
- sqe->addr = 1234;
- sqe->addr2 = 5678;
- }
sqe->user_data = ++seq;
}
@@ -110,16 +89,6 @@ static int test_barrier_nop(struct io_uring *ring)
fprintf(stderr, "Unexpected 0 user_data\n");
goto err;
}
- if (cqe32) {
- if (cqe->big_cqe[0] != 1234) {
- fprintf(stderr, "Unexpected extra1\n");
- goto err;
- }
- if (cqe->big_cqe[1] != 5678) {
- fprintf(stderr, "Unexpected extra2\n");
- goto err;
- }
- }
io_uring_cqe_seen(ring, cqe);
}