diff options
author | Vakul Garg <vakul.garg@nxp.com> | 2019-03-05 18:03:14 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-03-22 20:57:26 +0800 |
commit | 16c4dd83a1b2a23004e2728b7c6222592e64e354 (patch) | |
tree | cf68af53279ebe79019009eb65ee2e3bdcda087c /crypto/simd.c | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) |
crypto: caam/jr - optimize job ring enqueue and dequeue operations
Instead of reading job ring's occupancy registers for every req/rsp
enqueued/dequeued respectively, we read these registers once and store
them in memory. After completing a job enqueue/dequeue, we decrement
these values. When these values become zero, we refresh the snapshot of
job ring's occupancy registers. This eliminates need of expensive device
register read operations for every job enqueued and dequeued and hence
makes caam_jr_enqueue() and caam_jr_dequeue() faster. The performance of
kernel ipsec improved by about 6% on ls1028 (for frame size 408 bytes).
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/simd.c')
0 files changed, 0 insertions, 0 deletions