Skip to content

Commit 4a56b9f

Browse files
committed
zcrx: add unit test
TODO: fix test Signed-off-by: David Wei <dw@davidwei.uk> [pavel: expanded with more tests] Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
1 parent 27eea50 commit 4a56b9f

File tree

3 files changed

+924
-6
lines changed

3 files changed

+924
-6
lines changed

src/include/liburing.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,13 @@ struct io_uring {
133133
};
134134

135135
struct io_uring_zcrx_rq {
136-
unsigned *khead;
137-
unsigned *ktail;
138-
struct io_uring_zcrx_rqe *rqes;
139-
140-
unsigned rq_tail;
136+
__u32 *khead;
137+
__u32 *ktail;
138+
__u32 rq_tail;
139+
unsigned ring_entries;
141140

141+
struct io_uring_zcrx_rqe *rqes;
142142
void *ring_ptr;
143-
unsigned ring_entries;
144143
};
145144

146145
/*

test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ test_srcs := \
239239
wakeup-hang.c \
240240
wq-aff.c \
241241
xattr.c \
242+
zcrx.c \
242243
# EOL
243244

244245
# Please keep this list sorted alphabetically.

0 commit comments

Comments
 (0)