aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst30
-rw-r--r--resources/tools/presentation/specification.yaml172
2 files changed, 202 insertions, 0 deletions
diff --git a/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst b/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst
index cd0af1f914..64bf06b0d9 100644
--- a/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst
+++ b/docs/report/vpp_performance_tests/comparisons/current_vs_previous_release.rst
@@ -50,6 +50,16 @@ Comparison tables in HTML, ASCII and CSV formats:
- `CSV 2t1c NDR comparison <../../_static/vpp/performance-changes-2n-skx-2t1c-ndr.csv>`_
- `CSV 4t2c NDR comparison <../../_static/vpp/performance-changes-2n-skx-4t2c-ndr.csv>`_
+ - `HTML 2t1c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-ndr.html>`_
+ - `HTML 4t2c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-ndr.html>`_
+ - `HTML 8t4c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-ndr.html>`_
+ - `ASCII 2t1c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-ndr.txt>`_
+ - `ASCII 4t2c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-ndr.txt>`_
+ - `ASCII 8t4c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-ndr.txt>`_
+ - `CSV 2t1c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-ndr.csv>`_
+ - `CSV 4t2c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-ndr.csv>`_
+ - `CSV 8t4c NFV Service Density NDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-ndr.csv>`_
+
PDR Comparison
``````````````
@@ -62,6 +72,16 @@ Comparison tables in HTML, ASCII and CSV formats:
- `CSV 2t1c PDR comparison <../../_static/vpp/performance-changes-2n-skx-2t1c-pdr.csv>`_
- `CSV 4t2c PDR comparison <../../_static/vpp/performance-changes-2n-skx-4t2c-pdr.csv>`_
+ - `HTML 2t1c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-pdr.html>`_
+ - `HTML 4t2c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-pdr.html>`_
+ - `HTML 8t4c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-pdr.html>`_
+ - `ASCII 2t1c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-pdr.txt>`_
+ - `ASCII 4t2c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-pdr.txt>`_
+ - `ASCII 8t4c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-pdr.txt>`_
+ - `CSV 2t1c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-pdr.csv>`_
+ - `CSV 4t2c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-pdr.csv>`_
+ - `CSV 8t4c NFV Service Density PDR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-pdr.csv>`_
+
MRR Comparison
``````````````
@@ -77,6 +97,16 @@ Comparison tables in HTML, ASCII and CSV formats:
- `CSV 4t2c MRR comparison <../../_static/vpp/performance-changes-2n-skx-4t2c-mrr.csv>`_
- `CSV 8t4c MRR comparison <../../_static/vpp/performance-changes-2n-skx-8t4c-mrr.csv>`_
+ - `HTML 2t1c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-mrr.html>`_
+ - `HTML 4t2c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-mrr.html>`_
+ - `HTML 8t4c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-mrr.html>`_
+ - `ASCII 2t1c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-mrr.txt>`_
+ - `ASCII 4t2c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-mrr.txt>`_
+ - `ASCII 8t4c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-mrr.txt>`_
+ - `CSV 2t1c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-2t1c-mrr.csv>`_
+ - `CSV 4t2c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-4t2c-mrr.csv>`_
+ - `CSV 8t4c NFV Service Density MRR comparison <../../_static/vpp/performance-changes-nfv-2n-skx-8t4c-mrr.csv>`_
+
3n-skx
~~~~~~
diff --git a/resources/tools/presentation/specification.yaml b/resources/tools/presentation/specification.yaml
index a589725036..b7f4e08b3d 100644
--- a/resources/tools/presentation/specification.yaml
+++ b/resources/tools/presentation/specification.yaml
@@ -728,6 +728,29 @@
- "vpp-performance-changes-2n-skx-ref"
- "vpp-performance-changes-2n-skx-cmp"
+ vpp-performance-changes-nfv-2n-skx-ref:
+ csit-vpp-perf-verify-1908-2n-skx:
+ - 22 # NFV
+ - 31 # NFV
+ - 32 # NFV
+# - 35 # NDRPDR sel
+# - 36 # NDRPDR sel
+# - 42 # NDRPDR sel
+# - 43 # NDRPDR sel
+# - 44 # NDRPDR sel
+# - 45 # NDRPDR sel
+# - 46 # NDRPDR sel
+ vpp-performance-changes-nfv-2n-skx-cmp:
+ # TODO: Replace
+ # csit-vpp-perf-verify-2001-2n-skx:
+ csit-vpp-perf-verify-1908-2n-skx:
+ - 22 # NFV
+ - 31 # NFV
+ - 32 # NFV
+ vpp-performance-changes-nfv-2n-skx:
+ - "vpp-performance-changes-nfv-2n-skx-ref"
+ - "vpp-performance-changes-nfv-2n-skx-cmp"
+
vpp-performance-changes-2n-dnv-ref:
csit-vpp-perf-verify-1908-2n-dnv:
- 1 # NDRPDR sel
@@ -849,6 +872,18 @@
- "vpp-performance-changes-2n-skx-mrr-ref"
- "vpp-performance-changes-2n-skx-mrr-cmp"
+ vpp-performance-changes-nfv-2n-skx-mrr-ref:
+ csit-vpp-perf-verify-1908-2n-skx:
+ - 71 # NFV MRR
+ vpp-performance-changes-nfv-2n-skx-mrr-cmp:
+ # TODO: Replace
+ # csit-vpp-perf-verify-2001-2n-skx:
+ csit-vpp-perf-verify-1908-2n-skx:
+ - 71 # NFV MRR
+ vpp-performance-changes-nfv-2n-skx-mrr:
+ - "vpp-performance-changes-nfv-2n-skx-mrr-ref"
+ - "vpp-performance-changes-nfv-2n-skx-mrr-cmp"
+
vpp-performance-changes-2n-dnv-mrr-ref:
csit-vpp-perf-verify-1908-2n-dnv:
- 11 # MRR sel
@@ -2708,6 +2743,86 @@
- "throughput"
- "tags"
+# VPP Performance Changes NFV Service Density 2n-skx 2t1c pdr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 2t1c pdr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-2t1c-pdr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx"
+ include-tests: "PDR" # "PDR" | "NDR" | "MRR"
+ filter: "'2T1C' and 'NDRPDR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "throughput"
+ - "tags"
+
+# VPP Performance Changes NFV Service Density 2n-skx 4t2c pdr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 4t2c pdr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-4t2c-pdr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx"
+ include-tests: "PDR" # "PDR" | "NDR" | "MRR"
+ filter: "'4T2C' and 'NDRPDR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "throughput"
+ - "tags"
+
+# VPP Performance Changes NFV Service Density 2n-skx 2t1c ndr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 2t1c ndr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-2t1c-ndr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx"
+ include-tests: "NDR" # "PDR" | "NDR" | "MRR"
+ filter: "'2T1C' and 'NDRPDR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "throughput"
+ - "tags"
+
+# VPP Performance Changes NFV Service Density 2n-skx 4t2c ndr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 4t2c ndr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-4t2c-ndr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx"
+ include-tests: "NDR" # "PDR" | "NDR" | "MRR"
+ filter: "'4T2C' and 'NDRPDR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "throughput"
+ - "tags"
+
# VPP Performance Changes 2n-dnv 1t1c pdr
- type: "table"
title: "VPP Performance Changes 2n-dnv 1t1c pdr"
@@ -3390,6 +3505,63 @@
- "parent"
- "result"
+# VPP Performance Changes NFV Service Density 2n-skx 2t1c mrr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 2t1c mrr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-2t1c-mrr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr"
+ include-tests: "MRR" # "PDR" | "NDR" | "MRR"
+ filter: "'2T1C' and 'MRR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "result"
+
+# VPP Performance Changes NFV Service Density 2n-skx 4t2c mrr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 4t2c mrr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-4t2c-mrr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr"
+ include-tests: "MRR" # "PDR" | "NDR" | "MRR"
+ filter: "'4T2C' and 'MRR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "result"
+
+# VPP Performance Changes NFV Service Density 2n-skx 8t4c mrr
+- type: "table"
+ title: "VPP Performance Changes NFV Service Density 2n-skx 8t4c mrr"
+ algorithm: "table_perf_comparison"
+ output-file: "{DIR[STATIC,VPP]}/performance-changes-nfv-2n-skx-8t4c-mrr"
+ reference:
+ title: "rls1908"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-ref"
+ compare:
+ title: "rls2001"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr-cmp"
+ data: "vpp-performance-changes-nfv-2n-skx-mrr"
+ include-tests: "MRR" # "PDR" | "NDR" | "MRR"
+ filter: "'8T4C' and 'MRR'"
+ parameters:
+ - "name"
+ - "parent"
+ - "result"
+
# VPP Performance Changes 2n-dnv 1t1c MRR
- type: "table"
title: "VPP Performance Changes 2n-dnv 1t1c MRR"
) { /* no more work to enqueue, so we are enqueueing placeholder buffer */ src[i] = dst[i] = placeholder; len[i] = sizeof (placeholder); placeholder_mask[i] = 0; } else { u8x16 t = aes_block_load (ops[0]->iv); ((u8x16 *) r)[i] = t; src[i] = ops[0]->src; dst[i] = ops[0]->dst; len[i] = ops[0]->len; placeholder_mask[i] = ~0; if (key_index[i] != ops[0]->key_index) { aes_cbc_key_data_t *kd; key_index[i] = ops[0]->key_index; kd = (aes_cbc_key_data_t *) cm->key_data[key_index[i]]; for (j = 0; j < rounds + 1; j++) ((u8x16 *) k[j])[i] = kd->encrypt_key[j]; } ops[0]->status = VNET_CRYPTO_OP_STATUS_COMPLETED; n_left--; ops++; } } count = u32xN_min_scalar (len); ASSERT (count % 16 == 0); for (i = 0; i < count; i += 16) { #if defined(__VAES__) && defined(__AVX512F__) r[0] = u8x64_xor3 (r[0], aes_block_load_x4 (src, i), k[0][0]); r[1] = u8x64_xor3 (r[1], aes_block_load_x4 (src + 4, i), k[0][1]); r[2] = u8x64_xor3 (r[2], aes_block_load_x4 (src + 8, i), k[0][2]); r[3] = u8x64_xor3 (r[3], aes_block_load_x4 (src + 12, i), k[0][3]); for (j = 1; j < rounds; j++) { r[0] = aes_enc_round_x4 (r[0], k[j][0]); r[1] = aes_enc_round_x4 (r[1], k[j][1]); r[2] = aes_enc_round_x4 (r[2], k[j][2]); r[3] = aes_enc_round_x4 (r[3], k[j][3]); } r[0] = aes_enc_last_round_x4 (r[0], k[j][0]); r[1] = aes_enc_last_round_x4 (r[1], k[j][1]); r[2] = aes_enc_last_round_x4 (r[2], k[j][2]); r[3] = aes_enc_last_round_x4 (r[3], k[j][3]); aes_block_store_x4 (dst, i, r[0]); aes_block_store_x4 (dst + 4, i, r[1]); aes_block_store_x4 (dst + 8, i, r[2]); aes_block_store_x4 (dst + 12, i, r[3]); #elif defined(__VAES__) r[0] = u8x32_xor3 (r[0], aes_block_load_x2 (src, i), k[0][0]); r[1] = u8x32_xor3 (r[1], aes_block_load_x2 (src + 2, i), k[0][1]); r[2] = u8x32_xor3 (r[2], aes_block_load_x2 (src + 4, i), k[0][2]); r[3] = u8x32_xor3 (r[3], aes_block_load_x2 (src + 6, i), k[0][3]); for (j = 1; j < rounds; j++) { r[0] = aes_enc_round_x2 (r[0], k[j][0]); r[1] = aes_enc_round_x2 (r[1], k[j][1]); r[2] = aes_enc_round_x2 (r[2], k[j][2]); r[3] = aes_enc_round_x2 (r[3], k[j][3]); } r[0] = aes_enc_last_round_x2 (r[0], k[j][0]); r[1] = aes_enc_last_round_x2 (r[1], k[j][1]); r[2] = aes_enc_last_round_x2 (r[2], k[j][2]); r[3] = aes_enc_last_round_x2 (r[3], k[j][3]); aes_block_store_x2 (dst, i, r[0]); aes_block_store_x2 (dst + 2, i, r[1]); aes_block_store_x2 (dst + 4, i, r[2]); aes_block_store_x2 (dst + 6, i, r[3]); #else #if __x86_64__ r[0] = u8x16_xor3 (r[0], aes_block_load (src[0] + i), k[0][0]); r[1] = u8x16_xor3 (r[1], aes_block_load (src[1] + i), k[0][1]); r[2] = u8x16_xor3 (r[2], aes_block_load (src[2] + i), k[0][2]); r[3] = u8x16_xor3 (r[3], aes_block_load (src[3] + i), k[0][3]); for (j = 1; j < rounds; j++) { r[0] = aes_enc_round (r[0], k[j][0]); r[1] = aes_enc_round (r[1], k[j][1]); r[2] = aes_enc_round (r[2], k[j][2]); r[3] = aes_enc_round (r[3], k[j][3]); } r[0] = aes_enc_last_round (r[0], k[j][0]); r[1] = aes_enc_last_round (r[1], k[j][1]); r[2] = aes_enc_last_round (r[2], k[j][2]); r[3] = aes_enc_last_round (r[3], k[j][3]); aes_block_store (dst[0] + i, r[0]); aes_block_store (dst[1] + i, r[1]); aes_block_store (dst[2] + i, r[2]); aes_block_store (dst[3] + i, r[3]); #else r[0] ^= aes_block_load (src[0] + i); r[1] ^= aes_block_load (src[1] + i); r[2] ^= aes_block_load (src[2] + i); r[3] ^= aes_block_load (src[3] + i); for (j = 0; j < rounds - 1; j++) { r[0] = vaesmcq_u8 (vaeseq_u8 (r[0], k[j][0])); r[1] = vaesmcq_u8 (vaeseq_u8 (r[1], k[j][1])); r[2] = vaesmcq_u8 (vaeseq_u8 (r[2], k[j][2])); r[3] = vaesmcq_u8 (vaeseq_u8 (r[3], k[j][3])); } r[0] = vaeseq_u8 (r[0], k[j][0]) ^ k[rounds][0]; r[1] = vaeseq_u8 (r[1], k[j][1]) ^ k[rounds][1]; r[2] = vaeseq_u8 (r[2], k[j][2]) ^ k[rounds][2]; r[3] = vaeseq_u8 (r[3], k[j][3]) ^ k[rounds][3]; aes_block_store (dst[0] + i, r[0]); aes_block_store (dst[1] + i, r[1]); aes_block_store (dst[2] + i, r[2]); aes_block_store (dst[3] + i, r[3]); #endif #endif } len -= u32xN_splat (count); for (i = 0; i < N; i++) { src[i] += count; dst[i] += count; } if (n_left > 0) goto more; if (!u32xN_is_all_zero (len & placeholder_mask)) goto more; return n_ops; } static_always_inline u32 aes_ops_dec_aes_cbc (vlib_main_t * vm, vnet_crypto_op_t * ops[], u32 n_ops, aes_key_size_t ks) { crypto_native_main_t *cm = &crypto_native_main; int rounds = AES_KEY_ROUNDS (ks); vnet_crypto_op_t *op = ops[0]; aes_cbc_key_data_t *kd = (aes_cbc_key_data_t *) cm->key_data[op->key_index]; u32 n_left = n_ops; ASSERT (n_ops >= 1); decrypt: #if defined(__VAES__) && defined(__AVX512F__) aes4_cbc_dec (kd->decrypt_key, (u8x64u *) op->src, (u8x64u *) op->dst, (u8x16u *) op->iv, op->len, rounds); #elif defined(__VAES__) aes2_cbc_dec (kd->decrypt_key, (u8x32u *) op->src, (u8x32u *) op->dst, (u8x16u *) op->iv, op->len, rounds); #else aes_cbc_dec (kd->decrypt_key, (u8x16u *) op->src, (u8x16u *) op->dst, (u8x16u *) op->iv, op->len, rounds); #endif op->status = VNET_CRYPTO_OP_STATUS_COMPLETED; if (--n_left) { op += 1; kd = (aes_cbc_key_data_t *) cm->key_data[op->key_index]; goto decrypt; } return n_ops; } #define foreach_aes_cbc_handler_type _(128) _(192) _(256) #define _(x) \ static u32 aes_ops_dec_aes_cbc_##x \ (vlib_main_t * vm, vnet_crypto_op_t * ops[], u32 n_ops) \ { return aes_ops_dec_aes_cbc (vm, ops, n_ops, AES_KEY_##x); } \ static u32 aes_ops_enc_aes_cbc_##x \ (vlib_main_t * vm, vnet_crypto_op_t * ops[], u32 n_ops) \ { return aes_ops_enc_aes_cbc (vm, ops, n_ops, AES_KEY_##x); } \ foreach_aes_cbc_handler_type; #undef _ static void * aes_cbc_key_exp_128 (vnet_crypto_key_t *key) { aes_cbc_key_data_t *kd; kd = clib_mem_alloc_aligned (sizeof (*kd), CLIB_CACHE_LINE_BYTES); clib_aes128_cbc_key_expand (kd, key->data); return kd; } static void * aes_cbc_key_exp_192 (vnet_crypto_key_t *key) { aes_cbc_key_data_t *kd; kd = clib_mem_alloc_aligned (sizeof (*kd), CLIB_CACHE_LINE_BYTES); clib_aes192_cbc_key_expand (kd, key->data); return kd; } static void * aes_cbc_key_exp_256 (vnet_crypto_key_t *key) { aes_cbc_key_data_t *kd; kd = clib_mem_alloc_aligned (sizeof (*kd), CLIB_CACHE_LINE_BYTES); clib_aes256_cbc_key_expand (kd, key->data); return kd; } #include <fcntl.h> clib_error_t * #if defined(__VAES__) && defined(__AVX512F__) crypto_native_aes_cbc_init_icl (vlib_main_t *vm) #elif defined(__VAES__) crypto_native_aes_cbc_init_adl (vlib_main_t *vm) #elif __AVX512F__ crypto_native_aes_cbc_init_skx (vlib_main_t * vm) #elif __aarch64__ crypto_native_aes_cbc_init_neon (vlib_main_t * vm) #elif __AVX2__ crypto_native_aes_cbc_init_hsw (vlib_main_t * vm) #else crypto_native_aes_cbc_init_slm (vlib_main_t * vm) #endif { crypto_native_main_t *cm = &crypto_native_main; #define _(x) \ vnet_crypto_register_ops_handler (vm, cm->crypto_engine_index, \ VNET_CRYPTO_OP_AES_##x##_CBC_ENC, \ aes_ops_enc_aes_cbc_##x); \ vnet_crypto_register_ops_handler (vm, cm->crypto_engine_index, \ VNET_CRYPTO_OP_AES_##x##_CBC_DEC, \ aes_ops_dec_aes_cbc_##x); \ cm->key_fn[VNET_CRYPTO_ALG_AES_##x##_CBC] = aes_cbc_key_exp_##x; foreach_aes_cbc_handler_type; #undef _ return 0; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */