selftest/net: adjust io_uring sendzc notif handling
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 23 Sep 2022 17:12:09 +0000 (18:12 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Sep 2022 20:57:27 +0000 (14:57 -0600)
commit4781185da411c0b51ef9b1db557c1ea28ac11de4
tree58670be19ba50e5628d251374e6b0457e2b186ff
parentec7fd2562f57fcfd96f15fbc8ad088f954c2dcf5
selftest/net: adjust io_uring sendzc notif handling

It's not currently possible but in the future we may get
IORING_CQE_F_MORE and so a notification even for a failed request, i.e.
when cqe->res <= 0. That's precisely what the documentation says, so
adjust the test and do IORING_CQE_F_MORE checks regardless of the main
completion cqe->res.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/aac948ea753a8bfe1fa3b82fe45debcb54586369.1663953085.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/net/io_uring_zerocopy_tx.c