aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2023-11-27 18:20:11 +0100
committerJakub Kicinski <[email protected]>2023-11-29 19:46:22 -0800
commit127532cd0f060ebc3c4cbca81b6438728ad5896e (patch)
tree2cb2f9f805233438f783513264bc7c8c12069a13 /tools/testing/selftests/bpf/progs/test_autoload.c
parentee7546390aedf12856ff4a35fa654889130a3fe3 (diff)
r8169: improve handling task scheduling
If we know that the task is going to be a no-op, don't even schedule it. And remove the check for netif_running() in the worker function, the check for flag RTL_FLAG_TASK_ENABLED is sufficient. Note that we can't remove the check for flag RTL_FLAG_TASK_ENABLED in the worker function because we have no guarantee when it will be executed. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions