net/mlx5: Allow sync reset flow when BF MGT interface device is present
authorMoshe Shemesh <moshe@nvidia.com>
Mon, 12 Jun 2023 16:09:25 +0000 (19:09 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Nov 2023 19:34:29 +0000 (11:34 -0800)
commitcecf44ea1a1ffcc9158f746f391aa12fba953453
treec95e4f219af908e0e60a4d4fc3ef6226b36cadcb
parent7b2bfd4ebf796ec4c5ff86b2531b26766ab2fd61
net/mlx5: Allow sync reset flow when BF MGT interface device is present

In sync reset flow, PF is checking that only devices of same device ID
as itself present on the PCIe bridge, otherwise it will NACK the reset.
Since the PCIe bridge connection to NIC card has to be 1 to 1, this is
valid.

However, the BlueField device may also expose another sub-device to the
PCI called management interface, which only provides an ethernet channel
between the host and the smart NIC.

Allow sync reset flow also when management interface sub-device present
when checking devices on the PCIe bridge.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c