net: mark some potential candidates __read_mostly
They are all either written once or extremly rarely (e.g. from init code), so we can move them to the .data..read_mostly section. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
055470d2a7
commit
207895fd38
@@ -2322,7 +2322,7 @@ static __net_initdata struct pernet_operations devinet_ops = {
|
||||
.exit = devinet_exit_net,
|
||||
};
|
||||
|
||||
static struct rtnl_af_ops inet_af_ops = {
|
||||
static struct rtnl_af_ops inet_af_ops __read_mostly = {
|
||||
.family = AF_INET,
|
||||
.fill_link_af = inet_fill_link_af,
|
||||
.get_link_af_size = inet_get_link_af_size,
|
||||
|
Reference in New Issue
Block a user