Skip to content

Commit 9aed6ae

Browse files
Danit Goldbergdavem330
authored andcommitted
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: 30aad41 ("net/core: Add support for getting VF GUIDs") Signed-off-by: Danit Goldberg <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c4b4c42 commit 9aed6ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

net/core/rtnetlink.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,9 @@ static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb,
12501250
vf_spoofchk.vf =
12511251
vf_linkstate.vf =
12521252
vf_rss_query_en.vf =
1253-
vf_trust.vf = ivi.vf;
1253+
vf_trust.vf =
1254+
node_guid.vf =
1255+
port_guid.vf = ivi.vf;
12541256

12551257
memcpy(vf_mac.mac, ivi.mac, sizeof(ivi.mac));
12561258
memcpy(vf_broadcast.broadcast, dev->broadcast, dev->addr_len);

0 commit comments

Comments
 (0)