]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: qat - Set max request size
authorTadeusz Struk <tadeusz.struk@intel.com>
Fri, 5 Jun 2015 22:51:18 +0000 (15:51 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Jun 2015 14:22:04 +0000 (22:22 +0800)
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>
drivers/crypto/qat/qat_dh895xcc/adf_drv.c

index ecf0ef1fcda83457738edb4dee192f24d783af8c..1bde45b7a3c560f5e409c17f45c4bf6bb9eb730e 100644 (file)
@@ -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;