diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-10-10 09:35:04 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-28 15:01:43 -0800 |
commit | 836750ba4928d6af719bedcd338fe471fd440c6a (patch) | |
tree | 713c5243ba3b415cfbb2ea9e9ceea02ec6673890 /drivers/net/qlge | |
parent | ffd1fabc743060f589b1510f9b385d8c9bf0ffca (diff) | |
download | lwn-836750ba4928d6af719bedcd338fe471fd440c6a.tar.gz lwn-836750ba4928d6af719bedcd338fe471fd440c6a.zip |
qlge: Set PCIE max read request size.
commit bc9167f39ff8cd428e8577eb72751a653008edb2 upstream.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/qlge')
-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 1d8f195c3153..0c6ceecfd547 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"); |