aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2014-07-16 14:25:52 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-17 02:41:13 -0400
commit48e48a70c08a8a68f8697f8b30cb83775bda8001 (patch)
treec0bde42d5eebc0c3c90fbd549b874be77da39c27 /net/openvswitch
parent6b794c1cd8e0e693621e846166f6a25b38bcb862 (diff)
openvswitch: make generic netlink group const
Generic netlink tables can be const. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/datapath.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 493b5141a618..20f59b62721a 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -66,16 +66,16 @@ static struct genl_family dp_packet_genl_family;
66static struct genl_family dp_flow_genl_family; 66static struct genl_family dp_flow_genl_family;
67static struct genl_family dp_datapath_genl_family; 67static struct genl_family dp_datapath_genl_family;
68 68
69static struct genl_multicast_group ovs_dp_flow_multicast_group = { 69static const struct genl_multicast_group ovs_dp_flow_multicast_group = {
70 .name = OVS_FLOW_MCGROUP 70 .name = OVS_FLOW_MCGROUP,
71}; 71};
72 72
73static struct genl_multicast_group ovs_dp_datapath_multicast_group = { 73static const struct genl_multicast_group ovs_dp_datapath_multicast_group = {
74 .name = OVS_DATAPATH_MCGROUP 74 .name = OVS_DATAPATH_MCGROUP,
75}; 75};
76 76
77struct genl_multicast_group ovs_dp_vport_multicast_group = { 77static const struct genl_multicast_group ovs_dp_vport_multicast_group = {
78 .name = OVS_VPORT_MCGROUP 78 .name = OVS_VPORT_MCGROUP,
79}; 79};
80 80
81/* Check if need to build a reply message. 81/* Check if need to build a reply message.
@@ -1189,7 +1189,7 @@ static const struct nla_policy flow_policy[OVS_FLOW_ATTR_MAX + 1] = {
1189 [OVS_FLOW_ATTR_CLEAR] = { .type = NLA_FLAG }, 1189 [OVS_FLOW_ATTR_CLEAR] = { .type = NLA_FLAG },
1190}; 1190};
1191 1191
1192static struct genl_ops dp_flow_genl_ops[] = { 1192static const struct genl_ops dp_flow_genl_ops[] = {
1193 { .cmd = OVS_FLOW_CMD_NEW, 1193 { .cmd = OVS_FLOW_CMD_NEW,
1194 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ 1194 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */
1195 .policy = flow_policy, 1195 .policy = flow_policy,
@@ -1577,7 +1577,7 @@ static const struct nla_policy datapath_policy[OVS_DP_ATTR_MAX + 1] = {
1577 [OVS_DP_ATTR_USER_FEATURES] = { .type = NLA_U32 }, 1577 [OVS_DP_ATTR_USER_FEATURES] = { .type = NLA_U32 },
1578}; 1578};
1579 1579
1580static struct genl_ops dp_datapath_genl_ops[] = { 1580static const struct genl_ops dp_datapath_genl_ops[] = {
1581 { .cmd = OVS_DP_CMD_NEW, 1581 { .cmd = OVS_DP_CMD_NEW,
1582 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ 1582 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */
1583 .policy = datapath_policy, 1583 .policy = datapath_policy,
@@ -1944,7 +1944,7 @@ static const struct nla_policy vport_policy[OVS_VPORT_ATTR_MAX + 1] = {
1944 [OVS_VPORT_ATTR_OPTIONS] = { .type = NLA_NESTED }, 1944 [OVS_VPORT_ATTR_OPTIONS] = { .type = NLA_NESTED },
1945}; 1945};
1946 1946
1947static struct genl_ops dp_vport_genl_ops[] = { 1947static const struct genl_ops dp_vport_genl_ops[] = {
1948 { .cmd = OVS_VPORT_CMD_NEW, 1948 { .cmd = OVS_VPORT_CMD_NEW,
1949 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ 1949 .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */
1950 .policy = vport_policy, 1950 .policy = vport_policy,