diff options
author | stephen hemminger <stephen@networkplumber.org> | 2016-08-31 18:20:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 17:09:01 -0400 |
commit | 6501f34ff702d5edb0f3c6fb5170b852350ba8cb (patch) | |
tree | 406ae88cf4865ce2fdb4d2cf1152396ac07a29eb /net/ipv6/ila | |
parent | 3f18ff2b42b95d57df79af50f1149d698e699c0e (diff) |
ila: make nla_policy const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ila')
-rw-r--r-- | net/ipv6/ila/ila_lwt.c | 2 | ||||
-rw-r--r-- | net/ipv6/ila/ila_xlat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ila/ila_lwt.c b/net/ipv6/ila/ila_lwt.c index c8314c6b6154..e50c27a93e17 100644 --- a/net/ipv6/ila/ila_lwt.c +++ b/net/ipv6/ila/ila_lwt.c | |||
@@ -51,7 +51,7 @@ drop: | |||
51 | return -EINVAL; | 51 | return -EINVAL; |
52 | } | 52 | } |
53 | 53 | ||
54 | static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = { | 54 | static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = { |
55 | [ILA_ATTR_LOCATOR] = { .type = NLA_U64, }, | 55 | [ILA_ATTR_LOCATOR] = { .type = NLA_U64, }, |
56 | [ILA_ATTR_CSUM_MODE] = { .type = NLA_U8, }, | 56 | [ILA_ATTR_CSUM_MODE] = { .type = NLA_U8, }, |
57 | }; | 57 | }; |
diff --git a/net/ipv6/ila/ila_xlat.c b/net/ipv6/ila/ila_xlat.c index e6eca5fdf4c9..e604013dd814 100644 --- a/net/ipv6/ila/ila_xlat.c +++ b/net/ipv6/ila/ila_xlat.c | |||
@@ -128,7 +128,7 @@ static struct genl_family ila_nl_family = { | |||
128 | .parallel_ops = true, | 128 | .parallel_ops = true, |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = { | 131 | static const struct nla_policy ila_nl_policy[ILA_ATTR_MAX + 1] = { |
132 | [ILA_ATTR_LOCATOR] = { .type = NLA_U64, }, | 132 | [ILA_ATTR_LOCATOR] = { .type = NLA_U64, }, |
133 | [ILA_ATTR_LOCATOR_MATCH] = { .type = NLA_U64, }, | 133 | [ILA_ATTR_LOCATOR_MATCH] = { .type = NLA_U64, }, |
134 | [ILA_ATTR_IFINDEX] = { .type = NLA_U32, }, | 134 | [ILA_ATTR_IFINDEX] = { .type = NLA_U32, }, |