]> git.baikalelectronics.ru Git - kernel.git/commit
net: make net sysfs attributes ro_after_init
authorstephen hemminger <stephen@networkplumber.org>
Fri, 18 Aug 2017 20:46:23 +0000 (13:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Aug 2017 05:37:35 +0000 (22:37 -0700)
commit12a36c502cd905db7ce9af2cae4e6f8b4989b65e
treee52b07b1c35a2fe6eccf83d5037b5195b02bd9ea
parentac639d1ab3f1629b8832d155888c1a9e7294dd00
net: make net sysfs attributes ro_after_init

The attributes of net devices are immutable.

Ideally, attribute groups would contain const attributes
but there are too many places that do modifications of list
during startup (in other code) to allow that.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c