]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: convert dev->reg_state to u8
authorEric Dumazet <edumazet@google.com>
Tue, 13 Feb 2024 06:32:36 +0000 (06:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 11:20:13 +0000 (11:20 +0000)
commit4d42b37def70327b2bb19f823d42289aed2cd7c7
tree0ee229c7a15618c9187eb26ef07f47cb2d0ee7ca
parenta6473fe9b623f6667af72d972b87cd9a5ff87e21
net: convert dev->reg_state to u8

Prepares things so that dev->reg_state reads can be lockless,
by adding WRITE_ONCE() on write side.

READ_ONCE()/WRITE_ONCE() do not support bitfields.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c