diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2008-02-11 12:25:56 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-11 14:51:40 -0500 |
commit | 0c254d863338ceff630814bf17cf8e4b61cb8aa3 (patch) | |
tree | ffad0ddfa0fbd201df414eecc4502afa8e979424 /drivers/net/ixgbe | |
parent | 23b66e2bc2bcebacab7292d7731b7372065b3f98 (diff) |
ixgbe: warn when device is in a x4 or lower width slot
It's easy to oversee this issue when working with this card
as evrything will work OK but performance is severely limited
(something like 1.5gbit on a x1 link) if the pci-express
slot does not offer more bandwidth.
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index ead49e54f31b..576fb51eb748 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2778,6 +2778,14 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
2778 | hw->mac.type, hw->phy.type, | 2778 | hw->mac.type, hw->phy.type, |
2779 | (part_num >> 8), (part_num & 0xff)); | 2779 | (part_num >> 8), (part_num & 0xff)); |
2780 | 2780 | ||
2781 | if (link_width <= IXGBE_PCI_LINK_WIDTH_4) { | ||
2782 | dev_warn(&pdev->dev, "PCI-Express bandwidth available for " | ||
2783 | "this card is not sufficient for optimal " | ||
2784 | "performance.\n"); | ||
2785 | dev_warn(&pdev->dev, "For optimal performance a x8 " | ||
2786 | "PCI-Express slot is required.\n"); | ||
2787 | } | ||
2788 | |||
2781 | /* reset the hardware with the new settings */ | 2789 | /* reset the hardware with the new settings */ |
2782 | ixgbe_start_hw(hw); | 2790 | ixgbe_start_hw(hw); |
2783 | 2791 | ||