aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-05-03 19:20:55 +0000
committerPaolo Abeni <[email protected]>2024-05-07 11:14:50 +0200
commit55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43 (patch)
treeb14aeedf2fef869a5bf90c85ba3888ec69d133b1 /net/switchdev/switchdev.c
parentad13b5b0d1f9eb8e048394919e6393e520b14552 (diff)
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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions