aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-02-09 17:35:57 -0500
committerDavid S. Miller <davem@davemloft.net>2015-02-09 17:35:57 -0500
commit2573beec56aa28a0e6d4430fb6796d0c76308bcf (patch)
tree15c902551b78a954d5138304b97a16a4d9968202 /net/core/rtnetlink.c
parentfd3137cd33ae5590c45c81e9a46fe53b6ab5f66e (diff)
parent531c94a9681b8c253fd0490a4ca8bbe01a38c78b (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 5dad4f782f03..5be499b6a2d2 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1263,18 +1263,12 @@ static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = {
1263}; 1263};
1264 1264
1265static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = { 1265static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
1266 [IFLA_VF_MAC] = { .type = NLA_BINARY, 1266 [IFLA_VF_MAC] = { .len = sizeof(struct ifla_vf_mac) },
1267 .len = sizeof(struct ifla_vf_mac) }, 1267 [IFLA_VF_VLAN] = { .len = sizeof(struct ifla_vf_vlan) },
1268 [IFLA_VF_VLAN] = { .type = NLA_BINARY, 1268 [IFLA_VF_TX_RATE] = { .len = sizeof(struct ifla_vf_tx_rate) },
1269 .len = sizeof(struct ifla_vf_vlan) }, 1269 [IFLA_VF_SPOOFCHK] = { .len = sizeof(struct ifla_vf_spoofchk) },
1270 [IFLA_VF_TX_RATE] = { .type = NLA_BINARY, 1270 [IFLA_VF_RATE] = { .len = sizeof(struct ifla_vf_rate) },
1271 .len = sizeof(struct ifla_vf_tx_rate) }, 1271 [IFLA_VF_LINK_STATE] = { .len = sizeof(struct ifla_vf_link_state) },
1272 [IFLA_VF_SPOOFCHK] = { .type = NLA_BINARY,
1273 .len = sizeof(struct ifla_vf_spoofchk) },
1274 [IFLA_VF_RATE] = { .type = NLA_BINARY,
1275 .len = sizeof(struct ifla_vf_rate) },
1276 [IFLA_VF_LINK_STATE] = { .type = NLA_BINARY,
1277 .len = sizeof(struct ifla_vf_link_state) },
1278}; 1272};
1279 1273
1280static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = { 1274static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = {