Patchwork [net-next,2/8] qlge: Set PCIE max read request size.

login
register
mail settings
Submitter Ron Mercer
Date Oct. 10, 2009, 7:35 p.m.
Message ID <1255203310-18114-3-git-send-email-ron.mercer@qlogic.com>
Download mbox | patch
Permalink /patch/35671/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ron Mercer - Oct. 10, 2009, 7:35 p.m.
From: root <root@localhost.localdomain>

Signed-off-by: root <root@localhost.localdomain>
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
---
 drivers/net/qlge/qlge_main.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 7a9dca8..aeb0104 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");