projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: annotate writes on dev->mtu from ndo_change_mtu()
[linux-block.git]
/
net
/
ipv6
/
ip6_vti.c
diff --git
a/net/ipv6/ip6_vti.c
b/net/ipv6/ip6_vti.c
index 78344cf3867eac74cdaff5eda5d603ba68db3828..590737c275379851f7bbd8c44e08c2d75ce7c375 100644
(file)
--- a/
net/ipv6/ip6_vti.c
+++ b/
net/ipv6/ip6_vti.c
@@
-666,7
+666,8
@@
static void vti6_link_config(struct ip6_tnl *t, bool keep_mtu)
dev->flags &= ~IFF_POINTOPOINT;
if (keep_mtu && dev->mtu) {
- dev->mtu = clamp(dev->mtu, dev->min_mtu, dev->max_mtu);
+ WRITE_ONCE(dev->mtu,
+ clamp(dev->mtu, dev->min_mtu, dev->max_mtu));
return;
}