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

Commit 8fc0ef30 authored by Ashwanth Goli's avatar Ashwanth Goli Committed by Tejaswi Tanikella
Browse files

net: rps: reset backlog state when IPI fails.



Changes that reset remote cpu backlog state are removed with the
following commit. Adding them back.
I6e688bf0d09 ("net: rps: send out pending IPI's on CPU hotplug")

Change-Id: I436d1a1f185f0ddc375349e135bbb5d6eb8c5f26
Signed-off-by: default avatarAshwanth Goli <ashwanth@codeaurora.org>
Signed-off-by: default avatarTejaswi Tanikella <tejaswit@codeaurora.org>
parent 57e151dd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4416,8 +4416,13 @@ 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 {
			rps_lock(remsd);
			remsd->backlog.state = 0;
			rps_unlock(remsd);
		}
		remsd = next;
	}
#endif