summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2015-01-29 12:15:03 +0100
committerDavid S. Miller <davem@davemloft.net>2015-01-30 17:58:39 -0800
commit207895fd388c7c4c48bc33055cd726d9e750298c (patch)
tree560b36ca51ce4d654822e75e8c883d6e534e5992 /net/bridge/br_netlink.c
parent055470d2a7ad47dfb479308d713993173f1c6876 (diff)
downloadlinux-stable-207895fd388c7c4c48bc33055cd726d9e750298c.tar.gz
linux-stable-207895fd388c7c4c48bc33055cd726d9e750298c.tar.bz2
linux-stable-207895fd388c7c4c48bc33055cd726d9e750298c.zip
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>
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r--net/bridge/br_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 3875ea51f6fe..e08b260f33fe 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -701,7 +701,7 @@ static size_t br_get_link_af_size(const struct net_device *dev)
return pv->num_vlans * nla_total_size(sizeof(struct bridge_vlan_info));
}
-static struct rtnl_af_ops br_af_ops = {
+static struct rtnl_af_ops br_af_ops __read_mostly = {
.family = AF_BRIDGE,
.get_link_af_size = br_get_link_af_size,
};