aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2015-06-05 18:51:18 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-09 10:22:04 -0400
commite4fa1460b35e18a0eae26223ca91047d92992f3e (patch)
treee56ee5db302ba3fd18e6d696fb1d38e19208596f
parenta7eed15627795b60c57da48051826ecca5e9fa93 (diff)
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 <tianliang.wang@intel.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/qat/qat_dh895xcc/adf_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_drv.c b/drivers/crypto/qat/qat_dh895xcc/adf_drv.c
index ecf0ef1fcda8..1bde45b7a3c5 100644
--- a/drivers/crypto/qat/qat_dh895xcc/adf_drv.c
+++ b/drivers/crypto/qat/qat_dh895xcc/adf_drv.c
@@ -300,6 +300,8 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
300 if (ret) 300 if (ret)
301 goto out_err; 301 goto out_err;
302 302
303 pcie_set_readrq(pdev, 1024);
304
303 /* enable PCI device */ 305 /* enable PCI device */
304 if (pci_enable_device(pdev)) { 306 if (pci_enable_device(pdev)) {
305 ret = -EFAULT; 307 ret = -EFAULT;