OSDN Git Service

net/core: Do not clear VF index for node/port GUIDs query
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 30 Jan 2020 12:59:49 +0000 (14:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jan 2020 14:20:26 +0000 (15:20 +0100)
commit9fbf082f569980ddd7cab348e0a118678db0e47e
tree5738e3b79c82042a6b812ace6eca12f6405c4c89
parent31484d56ca9511e62c08626db338d2aaafb3aa3f
net/core: Do not clear VF index for node/port GUIDs query

VF numbers were assigned to node_guid and port_guid, but cleared
right before such query calls were issued. It caused to return
node/port GUIDs of VF index 0 for all VFs.

Fixes: 30aad41721e0 ("net/core: Add support for getting VF GUIDs")
Reported-by: Adrian Chiris <adrianc@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c