diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2024-01-10 13:21:17 +0100 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2024-01-10 15:20:22 +0100 |
commit | f4398e4e39f5c08debece60a77442b1b851d3d26 (patch) | |
tree | 1b4b194cfa66b8d46024ad4a2d7e1de00199ba32 | |
parent | 08c4c43362443608d59274441b690fc446899a29 (diff) | |
download | staging-net_ipi_5.tar.gz |
hack: switch to NAPI_STATE_SCHED_THREADED.net_ipi_5
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
-rw-r--r-- | net/core/dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 2feff88507a964..cd6184892e7c51 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4448,8 +4448,7 @@ static inline void ____napi_schedule(struct softnet_data *sd, * makes sure to proceed with napi polling * if the thread is explicitly woken from here. */ - if (READ_ONCE(thread->__state) != TASK_INTERRUPTIBLE) - set_bit(NAPI_STATE_SCHED_THREADED, &napi->state); + set_bit(NAPI_STATE_SCHED_THREADED, &napi->state); wake_up_process(thread); return; } @@ -11486,7 +11485,7 @@ static int backlog_napi_should_run(unsigned int cpu) struct softnet_data *sd = per_cpu_ptr(&softnet_data, cpu); struct napi_struct *napi = &sd->backlog; - return test_bit(NAPI_STATE_SCHED, &napi->state); + return test_bit(NAPI_STATE_SCHED_THREADED, &napi->state); } static void run_backlog_napi(unsigned int cpu) |