net/core: Add VF link state control policy
authorDoug Ledford <dledford@redhat.com>
Wed, 11 Jun 2014 14:38:03 +0000 (10:38 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:51:37 +0000 (15:51 -0700)
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>
net/core/rtnetlink.c

index fbdb1556b0db61e1ec14cbe2db869268a3cc1965..d57d7bc22182180d01cb3f0b45a9a83fdd5499fa 100644 (file)
@@ -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] = {