]> www.infradead.org Git - users/hch/misc.git/commit
net: split off __napi_busy_poll from napi_busy_poll
authorStefan Roesch <shr@devkernel.io>
Tue, 6 Feb 2024 16:30:03 +0000 (09:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Feb 2024 18:01:09 +0000 (10:01 -0800)
commit13d381b440ed84ec4cc92975de035efb1a9e5f7e
tree776f8a71ed397d20311bdcc4cfc3f664fc07e054
parent54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
net: split off __napi_busy_poll from napi_busy_poll

This splits off the key part of the napi_busy_poll function into its own
function, __napi_busy_poll, and changes the prefer_busy_poll bool to be
flag based to allow passing in more flags in the future.

This is done in preparation for an additional napi_busy_poll() function,
that doesn't take the rcu_read_lock(). The new function is introduced
in the next patch.

Signed-off-by: Stefan Roesch <shr@devkernel.io>
Link: https://lore.kernel.org/r/20230608163839.2891748-2-shr@devkernel.io
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c