提交 83d3459a 编写于 作者: E Eyal Perry 提交者: David S. Miller

net/mlx4_core: Don't issue PCIe speed/width checks for VFs

Carrying out PCI speed/width checks through pcie_get_minimum_link()
on VFs yield wrong results, so remove them.

Fixes: b912b2f8 ('net/mlx4_core: Warn if device doesn't have enough PCI bandwidth')
Signed-off-by: NEyal Perry <eyalpe@mellanox.com>
Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f24f790f
......@@ -2440,7 +2440,8 @@ static int __mlx4_init_one(struct pci_dev *pdev, int pci_dev_data)
* No return code for this call, just warn the user in case of PCI
* express device capabilities are under-satisfied by the bus.
*/
mlx4_check_pcie_caps(dev);
if (!mlx4_is_slave(dev))
mlx4_check_pcie_caps(dev);
/* In master functions, the communication channel must be initialized
* after obtaining its address from fw */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册