Re: [PATCH 4/4] crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2020/2/20 19:07, John Garry wrote:
On 20/02/2020 10:10, Xu Zaibo wrote:
Hi,


On 2020/2/20 17:50, John Garry wrote:
On 20/02/2020 09:04, Zaibo Xu wrote:
From: liulongfang <liulongfang@xxxxxxxxxx>

In the scenario of SMMU translation, the SEC performance of short messages (<512Bytes) cannot meet our expectations. To avoid this, we reserve the
plat buffer (PBUF) memory for small packets when creating TFM.


I haven't gone through the code here, but why not use this method also for non-translated? What are the pros and cons?
Because non-translated has no performance or throughput problems.


OK, so no problem, but I was asking could it be improved, and, if so, what would be the drawbacks?

As for the change to check if the IOMMU is translating, it seems exact same as that for the hi1616 driver...

Currently, I find the only drawback is needing more memory :), what's your idea?
Yes, the same as SEC V1.

Cheers,
Zaibo

.

.

The commit message is very light on details.

Thanks
john

.



.

.






[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux