tapi: remove the unclaim path
Reched doesn't come back in 300us only 1 in 20 times.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
diff --git a/net/core/dev.c b/net/core/dev.c
index 5d7a023..71078fd 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6271,7 +6271,6 @@
bool TAPI_POLLING;
bool TAPI_BREAK_PREC;
-bool TAPI_RESCHED_UNCLAIM;
#include <linux/average.h>
DECLARE_EWMA(tapi_avg_lat, 16, 1024);
@@ -6866,22 +6865,6 @@
struct task_struct *thread;
};
-static void
-tapi_unclaim_local(struct tapi_timer_wrap *tt, struct net_device *dev)
-{
- struct napi_struct *napi;
-
- list_for_each_entry(napi, &dev->napi_list, dev_list) {
- /* if TAPI_POLLING is set SCHED is never cleared */
- if (test_bit(NAPI_STATE_CLAIMED, &napi->state))
- continue;
-
- /* don't bother with atomicity, this is a hint */
- if (napi->last_poll_thread == tt->thread)
- WRITE_ONCE(napi->last_poll_thread, NULL);
- }
-}
-
static struct napi_struct *
find_ripe_napi(struct tapi_timer_wrap *tt, struct net_device *dev,
bool from_idle, s64 *to, u64 *now)
@@ -7075,8 +7058,6 @@
if (need_resched()) {
trace_napi_poller_exit(0, 0, 'R');
- if (TAPI_RESCHED_UNCLAIM)
- tapi_unclaim_local(&tt, dev);
cond_resched();
trace_napi_poller_enter(0);
}
@@ -11059,8 +11040,6 @@
debugfs_create_u32("tapi_break_min", 0666, NULL, &TAPI_BREAK_MIN);
debugfs_create_u32("tapi_break_max", 0666, NULL, &TAPI_BREAK_MAX);
debugfs_create_bool("tapi_polling", 0666, NULL, &TAPI_POLLING);
- debugfs_create_bool("tapi_resched_unclaim", 0666, NULL,
- &TAPI_RESCHED_UNCLAIM);
debugfs_create_file("tapi_cnt", 0666, NULL, NULL, &tapi_stats_fops);