|
@@ -391,16 +391,17 @@ void mlx5_remove_dev_by_protocol(struct mlx5_core_dev *dev, int protocol)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static u16 mlx5_gen_pci_id(struct mlx5_core_dev *dev)
|
|
|
+static u32 mlx5_gen_pci_id(struct mlx5_core_dev *dev)
|
|
|
{
|
|
|
- return (u16)((dev->pdev->bus->number << 8) |
|
|
|
+ return (u32)((pci_domain_nr(dev->pdev->bus) << 16) |
|
|
|
+ (dev->pdev->bus->number << 8) |
|
|
|
PCI_SLOT(dev->pdev->devfn));
|
|
|
}
|
|
|
|
|
|
/* Must be called with intf_mutex held */
|
|
|
struct mlx5_core_dev *mlx5_get_next_phys_dev(struct mlx5_core_dev *dev)
|
|
|
{
|
|
|
- u16 pci_id = mlx5_gen_pci_id(dev);
|
|
|
+ u32 pci_id = mlx5_gen_pci_id(dev);
|
|
|
struct mlx5_core_dev *res = NULL;
|
|
|
struct mlx5_core_dev *tmp_dev;
|
|
|
struct mlx5_priv *priv;
|