crypto: qat - Set max request size
PATCH 1/1 crypto: qat - Set max request size
The device doensn't support the default value and will change it to 256, which will cause performace degradation for biger packets.
Add an explicit write to set it to 1024.
Reported-by Tianliang Wang <[email protected]>
Signed-off-by Tadeusz Struk <[email protected]>
--- drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/crypto/qat/qat_dh895xcc/adf_drv.c +2 -0
@@ -300,6 +300,8 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret) goto out_err; +pcie_set_readrq (pdev,1024 ); +/* enable PCI device */ if (pci_enable_device (pdev)) { ret = -EFAULT ;
Herbert Xu
maintainerQuoted 6 lines · Tadeusz Struk
The device doensn't support the default value and will change it to 256, which will cause performace degradation for biger packets.
Add an explicit write to set it to 1024.Reported-by Tianliang Wang <[email protected]>Signed-off-by Tadeusz Struk <[email protected]>
Both patches applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt