netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/core: Add VF link state control policy
@ 2014-06-10 19:59 Doug Ledford
  2014-06-10 20:09 ` Sergei Shtylyov
  2014-06-11  8:01 ` Or Gerlitz
  0 siblings, 2 replies; 7+ messages in thread
From: Doug Ledford @ 2014-06-10 19:59 UTC (permalink / raw)
  To: netdev; +Cc: Rony Efraim, David S. Miller, Or Gerlitz, Doug Ledford

Commit 1d8faf48c7 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>
---
 net/core/rtnetlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 2d8d8fcfa06..cdccf028171 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] = {
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] net/core: Add VF link state control policy
@ 2014-06-11 14:38 Doug Ledford
  2014-06-11 22:59 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Doug Ledford @ 2014-06-11 14:38 UTC (permalink / raw)
  To: netdev; +Cc: Rony Efraim, David S. Miller, Or Gerlitz, Doug Ledford

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>
---
 net/core/rtnetlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 2d8d8fcfa06..cdccf028171 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] = {
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-11 22:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10 19:59 [PATCH] net/core: Add VF link state control policy Doug Ledford
2014-06-10 20:09 ` Sergei Shtylyov
2014-06-10 20:12   ` Doug Ledford
2014-06-11  3:47     ` David Miller
2014-06-11  8:01 ` Or Gerlitz
  -- strict thread matches above, loose matches on Subject: below --
2014-06-11 14:38 Doug Ledford
2014-06-11 22:59 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).