summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2014-06-11 10:38:03 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-11 15:51:37 -0700
commitc5b46160877a9bb23ab6f96fb666e7766f407704 (patch)
treea02e46758e0eb2204b1dc310a63f138291c7fd4a /net
parentdaf37b556e437ec1ea1a597dcfeff338068380e1 (diff)
downloadlinux-c5b46160877a9bb23ab6f96fb666e7766f407704.tar.bz2
net/core: Add VF link state control policy
Commit 1d8faf48c7 (net/core: Add VF link state control) added VF link state control to the netlink VF nested structure, but failed to add a proper entry for the new structure into the VF policy table. Add the missing entry so the table and the actual data copied into the netlink nested struct are in sync. Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index fbdb1556b0db..d57d7bc22182 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1208,6 +1208,8 @@ static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = {
.len = sizeof(struct ifla_vf_tx_rate) },
[IFLA_VF_SPOOFCHK] = { .type = NLA_BINARY,
.len = sizeof(struct ifla_vf_spoofchk) },
+ [IFLA_VF_LINK_STATE] = { .type = NLA_BINARY,
+ .len = sizeof(struct ifla_vf_link_state) },
};
static const struct nla_policy ifla_port_policy[IFLA_PORT_MAX+1] = {