Skip to content
Commit b4e8ae5c authored by Stefan Roesch's avatar Stefan Roesch Committed by Jakub Kicinski
Browse files

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: default avatarStefan Roesch <shr@devkernel.io>
Link: https://lore.kernel.org/r/20230608163839.2891748-3-shr@devkernel.io


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 13d381b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment