Skip to content

Commit

Permalink
crypto: qat - Set max request size
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
tstruk authored and herbertx committed Jun 9, 2015
1 parent a7eed15 commit e4fa146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/crypto/qat/qat_dh895xcc/adf_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4fa146

Please sign in to comment.