]> git.ipfire.org Git - thirdparty/linux.git/commit
macvlan: annotate data-races around port->bc_queue_len_used
authorEric Dumazet <edumazet@google.com>
Wed, 1 Apr 2026 10:38:08 +0000 (10:38 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 00:56:35 +0000 (17:56 -0700)
commit1ef5789d9906df3771c99b7f413caaf2bf473ca5
treeb6ee3734c77261aaf7d45bb8ef43ff854d0e9eca
parentf35340f2d653f1003602878403c901396ab03c17
macvlan: annotate data-races around port->bc_queue_len_used

port->bc_queue_len_used is read and written locklessly,
add READ_ONCE()/WRITE_ONCE() annotations.

While WRITE_ONCE() in macvlan_fill_info() is not yet needed,
it is a prereq for future RTNL avoidance.

Fixes: d4bff72c8401 ("macvlan: Support for high multicast packet rate")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260401103809.3038139-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/macvlan.c