Skip to contentSkip to conversation

crypto: qat - Set max request size

PATCH In review Tadeusz Struk 2 participants 2 messages Jun 5, 2015 – Jun 9, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/crypto/qat/qat_dh895xcc/adf_drv.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/crypto/qat/qat_dh895xcc/adf_drv.c +2 -0
index ecf0ef1..1bde45b 100644
@@ -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;
maintainer
#1 lore raw
Quoted 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.

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