mlx4_core: Pass an invalid PCI id number to VFs
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 19 Jun 2012 08:21:33 +0000 (11:21 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 9 Jul 2012 01:05:05 +0000 (18:05 -0700)
Currently, VFs have 0 in their dev->caps.function field.  This is a
valid pci id (usually of the PF).  Instead, pass an invalid PCI id to
the VF via QUERY_FW, so that if the value gets accessed in the VF
driver, we'll catch the problem.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>

No differences found