]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: rps: annotate data-races around (struct sd_flow_limit)->count
authorEric Dumazet <edumazet@google.com>
Mon, 7 Apr 2025 16:36:00 +0000 (16:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Apr 2025 19:30:55 +0000 (12:30 -0700)
commit7b6f0a852da34379a304d7020d70049ba5d1f0f3
tree7dfb396686dab3189b36f237f97d57f521ec6685
parentc3025e94daa9ce84ef0e53df983b5bf2fbd76ea6
net: rps: annotate data-races around (struct sd_flow_limit)->count

softnet_seq_show() can read fl->count while another cpu
updates this field from skb_flow_limit().

Make this field an 'unsigned int', as its only consumer
only deals with 32 bit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250407163602.170356-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c
net/core/dev.h
net/core/net-procfs.c