2023-02-02 08:39:03

by Zhang Yiqun

[permalink] [raw]
Subject: [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config

This type of request is often happened in AF_ALG cases.
So add this vector in default cipher config array.

Signed-off-by: Zhang Yiqun <[email protected]>
---
crypto/testmgr.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 4476ac97baa5..6e8d08999104 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -356,6 +356,14 @@ static const struct testvec_config default_cipher_testvec_configs[] = {
{ .proportion_of_total = 5000 },
{ .proportion_of_total = 5000 },
},
+ }, {
+ .name = "one src, two even splits dst",
+ .inplace_mode = OUT_OF_PLACE,
+ .src_divs = { { .proportion_of_total = 10000 } },
+ .dst_divs = {
+ { .proportion_of_total = 5000 },
+ { .proportion_of_total = 5000 },
+ },
}, {
.name = "uneven misaligned splits, may sleep",
.req_flags = CRYPTO_TFM_REQ_MAY_SLEEP,
--
2.17.1



2023-02-07 05:20:31

by Eric Biggers

[permalink] [raw]
Subject: Re: [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config

On Thu, Feb 02, 2023 at 04:38:05PM +0800, Zhang Yiqun wrote:
> This type of request is often happened in AF_ALG cases.
> So add this vector in default cipher config array.
>
> Signed-off-by: Zhang Yiqun <[email protected]>
> ---
> crypto/testmgr.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/crypto/testmgr.c b/crypto/testmgr.c
> index 4476ac97baa5..6e8d08999104 100644
> --- a/crypto/testmgr.c
> +++ b/crypto/testmgr.c
> @@ -356,6 +356,14 @@ static const struct testvec_config default_cipher_testvec_configs[] = {
> { .proportion_of_total = 5000 },
> { .proportion_of_total = 5000 },
> },
> + }, {
> + .name = "one src, two even splits dst",
> + .inplace_mode = OUT_OF_PLACE,
> + .src_divs = { { .proportion_of_total = 10000 } },
> + .dst_divs = {
> + { .proportion_of_total = 5000 },
> + { .proportion_of_total = 5000 },
> + },
> }, {
> .name = "uneven misaligned splits, may sleep",
> .req_flags = CRYPTO_TFM_REQ_MAY_SLEEP,
> --

Reviewed-by: Eric Biggers <[email protected]>

- Eric

2023-02-10 09:48:32

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: testmgr - add diff-splits of src/dst into default cipher config

On Thu, Feb 02, 2023 at 04:38:05PM +0800, Zhang Yiqun wrote:
> This type of request is often happened in AF_ALG cases.
> So add this vector in default cipher config array.
>
> Signed-off-by: Zhang Yiqun <[email protected]>
> ---
> crypto/testmgr.c | 8 ++++++++
> 1 file changed, 8 insertions(+)

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt