mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 14:02:10 +00:00
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>
This commit is contained in:
parent
1d1023d039
commit
bc9167f39f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user