diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-10-10 09:35:04 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-12 06:16:14 (GMT) |
commit | bc9167f39ff8cd428e8577eb72751a653008edb2 (patch) | |
tree | 2c9bcd3b4ef09b24c5808effd672f32432a2b840 | |
parent | 1d1023d039d8295070b8dbb92c4d972237235304 (diff) | |
download | linux-fsl-qoriq-bc9167f39ff8cd428e8577eb72751a653008edb2.tar.xz |
qlge: Set PCIE max read request size.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 9fbded4..20a118d 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -3881,6 +3881,13 @@ static int __devinit ql_init_device(struct pci_dev *pdev, qdev->pdev = pdev; pci_set_drvdata(pdev, ndev); + /* Set PCIe read request size */ + err = pcie_set_readrq(pdev, 4096); + if (err) { + dev_err(&pdev->dev, "Set readrq failed.\n"); + goto err_out; + } + err = pci_request_regions(pdev, DRV_NAME); if (err) { dev_err(&pdev->dev, "PCI region request failed.\n"); |