aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/napi.h
diff options
context:
space:
mode:
authorStefan Roesch <shr@devkernel.io>2023-06-08 09:38:37 -0700
committerJens Axboe <axboe@kernel.dk>2024-02-09 11:54:28 -0700
commitff183d427da0a733b0dbe11bd7acaf2dcb37b4cc (patch)
tree608885d59ca17fa553a9a9c9edfae6776b63545b /io_uring/napi.h
parent8d0c12a80cdeb80d5e0510e96d38fe551ed8e9b5 (diff)
downloadlinux-ff183d427da0a733b0dbe11bd7acaf2dcb37b4cc.tar.gz
io-uring: add sqpoll support for napi busy poll
This adds the sqpoll support to the io-uring napi. Signed-off-by: Stefan Roesch <shr@devkernel.io> Suggested-by: Olivier Langlois <olivier@trillion01.com> Link: https://lore.kernel.org/r/20230608163839.2891748-6-shr@devkernel.io Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/napi.h')
-rw-r--r--io_uring/napi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/io_uring/napi.h b/io_uring/napi.h
index be8aa8ee32d94..b6d6243fc7fe0 100644
--- a/io_uring/napi.h
+++ b/io_uring/napi.h
@@ -17,6 +17,7 @@ void __io_napi_add(struct io_ring_ctx *ctx, struct socket *sock);
void __io_napi_adjust_timeout(struct io_ring_ctx *ctx,
struct io_wait_queue *iowq, struct timespec64 *ts);
void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq);
+int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx);
static inline bool io_napi(struct io_ring_ctx *ctx)
{
@@ -83,7 +84,10 @@ static inline void io_napi_busy_loop(struct io_ring_ctx *ctx,
struct io_wait_queue *iowq)
{
}
-
+static inline int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
+{
+ return 0;
+}
#endif /* CONFIG_NET_RX_BUSY_POLL */
#endif