net/core: Populate VF index in struct ifla_vf_guid
authorDanit Goldberg <danitg@mellanox.com>
Tue, 3 Dec 2019 15:43:36 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Dec 2019 19:24:34 +0000 (11:24 -0800)
commit9aed6ae0647d8b23b5746223f376acd7de7b8868
treeb568aff4936509f60763e58f4a4fad8887292308
parentc4b4c421857dc7b1cf0dccbd738472360ff2cd70
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>
net/core/rtnetlink.c