diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch')
-rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch b/recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch new file mode 100644 index 00000000..64450df9 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch @@ -0,0 +1,31 @@ +From 9a486f5ebf648971db9bdbd30f7e52251a659ddd Mon Sep 17 00:00:00 2001 +From: Cristian Stoica <cristian.stoica@nxp.com> +Date: Fri, 28 Oct 2016 12:01:00 +0300 +Subject: [PATCH 080/104] graceful exit if cryptodev is not built with ASYNC + flags + +--- + tests/async_speed_multi.sh | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh +index 125d45c..f2a8ba6 100755 +--- a/tests/async_speed_multi.sh ++++ b/tests/async_speed_multi.sh +@@ -82,6 +82,13 @@ function run_parallel + + wait $MPSTAT_PID + ++ grep "ioctl" ${OUT_BASENAME}_* &> /dev/null ++ if (($? == 0)) ++ then ++ echo "cryptodev is not built with -DENABLE_ASYNC flag" ++ exit 1 ++ fi ++ + runtime=$(echo "scale=2; ($end - $start) / 1" | bc -l ) + total_data=$(cat ${OUT_BASENAME}_* | cut -f 1 | SUM) + avg_speed=$(echo "scale=2; $total_data / $runtime / 1000000000" | bc -l) +-- +2.10.2 + |