net: split off __napi_busy_poll from napi_busy_poll
authorStefan Roesch <shr@devkernel.io>
Thu, 8 Jun 2023 16:38:33 +0000 (09:38 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:27:25 +0000 (13:27 -0700)
commit685ef12df97fc14f9921e348069eab0df04080bd
tree21d6e855d9628e3207b46e7bef1b65c9deb22084
parenta6e959bd3d6bfe8a3daeeacb714a299b9094a6cb
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>
net/core/dev.c