[PATCH] md: dm-verity: aggregate crypto API calls

2017-10-25 Thread Yael Chemla
Current implementation makes multiple crypto API calls for a single block, forcing underlying crypto tfm implementation to "stop & go", leading to under utilization of CPU (e.g. SIMD state saves) or HW engines. To fix it unify calls to crypto init/update/final into a digest call with a single sg wh

[PATCH] md: dm-verity: aggregate crypto API calls

2017-10-25 Thread yaeceh01
From: Yael Chemla Current implementation makes multiple crypto API calls for a single block, forcing underlying crypto tfm implementation to "stop & go", leading to under utilization of CPU (e.g. SIMD state saves) or HW engines. To fix it unify calls to crypto init/update/final into a digest call