Commit 127532c
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 <hkallweit1@gmail.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/c65873a3-7394-4107-99a7-83f20030779c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent ee75463 commit 127532c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2227 | 2227 | | |
2228 | 2228 | | |
2229 | 2229 | | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2230 | 2233 | | |
2231 | 2234 | | |
2232 | 2235 | | |
| |||
4467 | 4470 | | |
4468 | 4471 | | |
4469 | 4472 | | |
4470 | | - | |
4471 | | - | |
| 4473 | + | |
4472 | 4474 | | |
4473 | 4475 | | |
4474 | 4476 | | |
| |||
0 commit comments