Commit f7b60cce authored by Jason Xing's avatar Jason Xing Committed by David S. Miller
Browse files

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: default avatarJason Xing <kernelxing@tencent.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f00bf5dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}