net/mlx4_core: Don't issue PCIe speed/width checks for VFs
authorEyal Perry <eyalpe@mellanox.com>
Sun, 4 May 2014 14:07:25 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 19:48:22 +0000 (15:48 -0400)
Carrying out PCI speed/width checks through pcie_get_minimum_link()
on VFs yield wrong results, so remove them.

Fixes: b912b2f ('net/mlx4_core: Warn if device doesn't have enough PCI bandwidth')
Signed-off-by: Eyal Perry <eyalpe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c

index e98c15adb7e2ad4329c07bb1f9ce94731410c763..7cf9dadcb471bbfee9ef32761123ece4ceac131d 100644 (file)
@@ -2440,7 +2440,8 @@ slave_start:
         * 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 */