]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18542e56bc2cc234dde73faa015394ec11474b4d
tree5738e3b79c82042a6b812ace6eca12f6405c4c89
parentbb575d8c9e96b1ea290b5cdc1c395be868e9062c
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: 5c7a1179a4ac ("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