mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
net: rps: locklessly access rflow->cpu
This is the last member in struct rps_dev_flow which should be protected locklessly. So finish it. Signed-off-by: Jason Xing <kernelxing@tencent.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f00bf5dc83
commit
f7b60cce84
1 changed files with 1 additions and 1 deletions
|
@ -4539,7 +4539,7 @@ set_rps_cpu(struct net_device *dev, struct sk_buff *skb,
|
|||
rps_input_queue_tail_save(&rflow->last_qtail, head);
|
||||
}
|
||||
|
||||
rflow->cpu = next_cpu;
|
||||
WRITE_ONCE(rflow->cpu, next_cpu);
|
||||
return rflow;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue