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: Ashwanth Goli <ashwanth@codeaurora.org>
This commit is contained in:
parent
0c44f3c838
commit
68af09edd5
1 changed files with 6 additions and 1 deletions
|
@ -4560,8 +4560,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
|
||||
|
|
Loading…
Add table
Reference in a new issue