diff mbox

crypto: qat - Set max request size

Message ID 20150605225118.4911.47264.stgit@tstruk-mobl1 (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show

Commit Message

Tadeusz Struk June 5, 2015, 10:51 p.m. UTC
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>
---
 drivers/crypto/qat/qat_dh895xcc/adf_drv.c |    2 ++
 1 file changed, 2 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Herbert Xu June 9, 2015, 2:34 p.m. UTC | #1
On Fri, Jun 05, 2015 at 03:51:18PM -0700, Tadeusz Struk wrote:
> 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>

Both patches applied.
diff mbox

Patch

diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_drv.c b/drivers/crypto/qat/qat_dh895xcc/adf_drv.c
index ecf0ef1..1bde45b 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)
 	if (ret)
 		goto out_err;
 
+	pcie_set_readrq(pdev, 1024);
+
 	/* enable PCI device */
 	if (pci_enable_device(pdev)) {
 		ret = -EFAULT;