summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDanit Goldberg <danitg@mellanox.com>2019-12-03 17:43:36 +0200
committerDavid S. Miller <davem@davemloft.net>2019-12-03 11:24:34 -0800
commit9aed6ae0647d8b23b5746223f376acd7de7b8868 (patch)
treeb568aff4936509f60763e58f4a4fad8887292308 /net
parentc4b4c421857dc7b1cf0dccbd738472360ff2cd70 (diff)
net/core: Populate VF index in struct ifla_vf_guid
In addition to filling the node_guid and port_guid attributes, there is a need to populate VF index too, otherwise users of netlink interface will see same VF index for all VFs. Fixes: 30aad41721e0 ("net/core: Add support for getting VF GUIDs") Signed-off-by: Danit Goldberg <danitg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 0b5ccb7c9bc8..02916f43bf63 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1250,7 +1250,9 @@ static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb,
vf_spoofchk.vf =
vf_linkstate.vf =
vf_rss_query_en.vf =
- vf_trust.vf = ivi.vf;
+ vf_trust.vf =
+ node_guid.vf =
+ port_guid.vf = ivi.vf;
memcpy(vf_mac.mac, ivi.mac, sizeof(ivi.mac));
memcpy(vf_broadcast.broadcast, dev->broadcast, dev->addr_len);