app/crypto-perf: change buffer size based on optype
PATCH 1/1 app/crypto-perf: change buffer size based on optype
Adding digest size to buffer size in auth-then-cipher mode with auth_op set to generate as cipher length includes digest size also.
--- app/test-crypto-perf/cperf_options_parsing.c | 8 ++++++++ 1 file changed, 8 insertions(+)
app/test-crypto-perf/cperf_options_parsing.c +8 -0
@@ -1064,6 +1064,10 @@ check_cipher_buffer_length(struct cperf_options *options)else buffer_size = options->buffer_size_list[0 ]; +if ((options->auth_op ==RTE_CRYPTO_AUTH_OP_GENERATE ) && + (options->op_type ==CPERF_AUTH_THEN_CIPHER )) + buffer_size += options->digest_sz; +while (buffer_size <= options->max_buffer_size) {if ((buffer_size %AES_BLOCK_SIZE ) !=0 ) { RTE_LOG(ERR, USER1, "Some of the buffer sizes are "
@@ -1090,6 +1094,10 @@ check_cipher_buffer_length(struct cperf_options *options)else buffer_size = options->buffer_size_list[0 ]; +if ((options->auth_op ==RTE_CRYPTO_AUTH_OP_GENERATE ) && + (options->op_type ==CPERF_AUTH_THEN_CIPHER )) + buffer_size += options->digest_sz; +while (buffer_size <= options->max_buffer_size) {if ((buffer_size %DES_BLOCK_SIZE ) !=0 ) { RTE_LOG(ERR, USER1, "Some of the buffer sizes are "
Signature · 1 line
2.25.1
Quoted 10 lines
-----Original Message-----
From: Tejasree Kondoj <[email protected]>
Sent: Thursday 6 April 2023 09:16
To: Akhil Goyal <[email protected]>; Fan Zhang <[email protected]>; Power, Ciara <[email protected]>
Cc: Anoob Joseph <[email protected]>; [email protected]
Subject: [PATCH] app/crypto-perf: change buffer size based on optype
Quoted 8 lines
Adding digest size to buffer size in auth-then-cipher mode with
auth_opset to generate as cipher length includes digest size also.Signed-off-by Tejasree Kondoj <[email protected]>--- app/test-crypto-perf/cperf_options_parsing.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Quoted 8 lines
Adding digest size to buffer size in auth-then-cipher mode with
auth_opset to generate as cipher length includes digest size also.Signed-off-by Tejasree Kondoj <[email protected]>--- app/test-crypto-perf/cperf_options_parsing.c | 8 ++++++++ 1 file changed, 8 insertions(+)
Akhil Goyal
AppliedQuoted 5 lines
Subject: RE: [PATCH] app/crypto-perf: change buffer size based on optype
Quoted 3 lines
Adding digest size to buffer size in auth-then-cipher mode with
auth_opset to generate as cipher length includes digest size also.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Tejasree Kondoj <[email protected]>--- app/test-crypto-perf/cperf_options_parsing.c | 8 ++++++++ 1 file changed, 8 insertions(+)Acked-by Anoob Joseph <[email protected]>
Applied to dpdk-next-crypto
Thanks.