Commit 15004cab authored by Cong Wang's avatar Cong Wang Committed by David S. Miller

bridge: make ifla_br_policy and br_af_ops static

They are only used within this file.

Cc: Vlad Yasevich <vyasevic@redhat.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: default avatarCong Wang <amwang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4160815f
...@@ -217,7 +217,7 @@ int br_getlink(struct sk_buff *skb, u32 pid, u32 seq, ...@@ -217,7 +217,7 @@ int br_getlink(struct sk_buff *skb, u32 pid, u32 seq,
return err; return err;
} }
const struct nla_policy ifla_br_policy[IFLA_MAX+1] = { static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
[IFLA_BRIDGE_FLAGS] = { .type = NLA_U16 }, [IFLA_BRIDGE_FLAGS] = { .type = NLA_U16 },
[IFLA_BRIDGE_MODE] = { .type = NLA_U16 }, [IFLA_BRIDGE_MODE] = { .type = NLA_U16 },
[IFLA_BRIDGE_VLAN_INFO] = { .type = NLA_BINARY, [IFLA_BRIDGE_VLAN_INFO] = { .type = NLA_BINARY,
...@@ -463,7 +463,7 @@ static size_t br_get_link_af_size(const struct net_device *dev) ...@@ -463,7 +463,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)); return pv->num_vlans * nla_total_size(sizeof(struct bridge_vlan_info));
} }
struct rtnl_af_ops br_af_ops = { static struct rtnl_af_ops br_af_ops = {
.family = AF_BRIDGE, .family = AF_BRIDGE,
.get_link_af_size = br_get_link_af_size, .get_link_af_size = br_get_link_af_size,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment