]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76533394364940ec73119b3738da86059ebc4101
tree58670be19ba50e5628d251374e6b0457e2b186ff
parentbb845bed8445699e2e6ee063642b7505da210a18
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