net: add napi_busy_loop_rcu()
authorStefan Roesch <shr@devkernel.io>
Thu, 8 Jun 2023 16:38:34 +0000 (09:38 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:27:25 +0000 (13:27 -0700)
commit63ff3998a68c3e3536316a3e61fc357816061be8
tree5b6b9131ba050edcbaa522abafbb011171f37682
parent685ef12df97fc14f9921e348069eab0df04080bd
net: add napi_busy_loop_rcu()

This adds the napi_busy_loop_rcu() function. This function assumes that
the calling function is already holding the rcu read lock and
napi_busy_loop() does not need to take the rcu read lock. Add a
NAPI_F_NO_SCHED flag, which tells __napi_busy_loop() to abort if we
need to reschedule rather than drop the RCU read lock and reschedule.

Signed-off-by: Stefan Roesch <shr@devkernel.io>
Link: https://lore.kernel.org/r/20230608163839.2891748-3-shr@devkernel.io
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/net/busy_poll.h
net/core/dev.c