Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58723a1e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: Reset NAPI bit if IPI failed"

parents 3f66393f 47e2bc21
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -5776,8 +5776,14 @@ static void net_rps_send_ipi(struct softnet_data *remsd)
	while (remsd) {
		struct softnet_data *next = remsd->rps_ipi_next;

		if (cpu_online(remsd->cpu))
		if (cpu_online(remsd->cpu)) {
			smp_call_function_single_async(remsd->cpu, &remsd->csd);
		} else {
			pr_err("%s() cpu offline\n", __func__);
			rps_lock(remsd);
			remsd->backlog.state = 0;
			rps_unlock(remsd);
		}
		remsd = next;
	}
#endif