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, 0 insertions, 31 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 deleted file mode 100644 index 64450df9..00000000 --- a/recipes-kernel/cryptodev/sdk_patches/0080-graceful-exit-if-cryptodev-is-not-built-with-ASYNC-f.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 9a486f5ebf648971db9bdbd30f7e52251a659ddd Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Fri, 28 Oct 2016 12:01:00 +0300 | ||
4 | Subject: [PATCH 080/104] graceful exit if cryptodev is not built with ASYNC | ||
5 | flags | ||
6 | |||
7 | --- | ||
8 | tests/async_speed_multi.sh | 7 +++++++ | ||
9 | 1 file changed, 7 insertions(+) | ||
10 | |||
11 | diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh | ||
12 | index 125d45c..f2a8ba6 100755 | ||
13 | --- a/tests/async_speed_multi.sh | ||
14 | +++ b/tests/async_speed_multi.sh | ||
15 | @@ -82,6 +82,13 @@ function run_parallel | ||
16 | |||
17 | wait $MPSTAT_PID | ||
18 | |||
19 | + grep "ioctl" ${OUT_BASENAME}_* &> /dev/null | ||
20 | + if (($? == 0)) | ||
21 | + then | ||
22 | + echo "cryptodev is not built with -DENABLE_ASYNC flag" | ||
23 | + exit 1 | ||
24 | + fi | ||
25 | + | ||
26 | runtime=$(echo "scale=2; ($end - $start) / 1" | bc -l ) | ||
27 | total_data=$(cat ${OUT_BASENAME}_* | cut -f 1 | SUM) | ||
28 | avg_speed=$(echo "scale=2; $total_data / $runtime / 1000000000" | bc -l) | ||
29 | -- | ||
30 | 2.10.2 | ||
31 | |||