aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 446cbaf81185..5daabfda6f6f 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1237,18 +1237,12 @@ static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = {
1237}; 1237};
1238 1238
1239static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = { 1239static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
1240 [IFLA_VF_MAC] = { .type = NLA_BINARY, 1240 [IFLA_VF_MAC] = { .len = sizeof(struct ifla_vf_mac) },
1241 .len = sizeof(struct ifla_vf_mac) }, 1241 [IFLA_VF_VLAN] = { .len = sizeof(struct ifla_vf_vlan) },
1242 [IFLA_VF_VLAN] = { .type = NLA_BINARY, 1242 [IFLA_VF_TX_RATE] = { .len = sizeof(struct ifla_vf_tx_rate) },
1243 .len = sizeof(struct ifla_vf_vlan) }, 1243 [IFLA_VF_SPOOFCHK] = { .len = sizeof(struct ifla_vf_spoofchk) },
1244 [IFLA_VF_TX_RATE] = { .type = NLA_BINARY, 1244 [IFLA_VF_RATE] = { .len = sizeof(struct ifla_vf_rate) },
1245 .len = sizeof(struct ifla_vf_tx_rate) }, 1245 [IFLA_VF_LINK_STATE] = { .len = sizeof(struct ifla_vf_link_state) },
1246 [IFLA_VF_SPOOFCHK] = { .type = NLA_BINARY,
1247 .len = sizeof(struct ifla_vf_spoofchk) },
1248 [IFLA_VF_RATE] = { .type = NLA_BINARY,
1249 .len = sizeof(struct ifla_vf_rate) },
1250 [IFLA_VF_LINK_STATE] = { .type = NLA_BINARY,
1251 .len = sizeof(struct ifla_vf_link_state) },
1252}; 1246};
1253 1247
1254static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = { 1248static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = {