diff options
author | Eric Dumazet <edumazet@google.com> | 2024-05-03 19:20:55 +0000 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-05-07 11:14:50 +0200 |
commit | 55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43 (patch) | |
tree | b14aeedf2fef869a5bf90c85ba3888ec69d133b1 /drivers/net/xen-netback/interface.c | |
parent | ad13b5b0d1f9eb8e048394919e6393e520b14552 (diff) | |
download | linux-55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43.tar.gz linux-55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43.tar.bz2 linux-55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43.zip |
net: write once on dev->allmulti and dev->promiscuity
In the following patch we want to read dev->allmulti
and dev->promiscuity locklessly from rtnl_fill_ifinfo()
In this patch I change __dev_set_promiscuity() and
__dev_set_allmulti() to write these fields (and dev->flags)
only if they succeed, with WRITE_ONCE() annotations.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions