Message ID | 20230209230144.465620-4-shr@devkernel.io (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | io_uring: add napi busy polling support | expand |
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 021f9af37c74..2e1b8de8505a 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -34,6 +34,10 @@ struct io_wait_queue { unsigned nr_timeouts; ktime_t timeout; +#ifdef CONFIG_NET_RX_BUSY_POLL + unsigned int napi_busy_poll_to; + bool napi_prefer_busy_poll; +#endif }; static inline bool io_should_wake(struct io_wait_queue *iowq)
This adds the two fields busy poll timeout and prefer busy poll to the io_wait_queue structure. They are used during the busy poll processing. Signed-off-by: Stefan Roesch <shr@devkernel.io> --- io_uring/io_uring.h | 4 ++++ 1 file changed, 4 insertions(+)