From: Horia Geantă Date: Wed, 5 Feb 2020 10:19:58 +0000 (+0200) Subject: crypto: tcrypt - fix printed skcipher [a]sync mode X-Git-Tag: v5.7-rc1~140^2~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e3b7fd7ea554ccb1bdc596bfbcdaf56f7ab017c;p=thirdparty%2Fkernel%2Flinux.git crypto: tcrypt - fix printed skcipher [a]sync mode When running tcrypt skcipher speed tests, logs contain things like: testing speed of async ecb(des3_ede) (ecb(des3_ede-generic)) encryption or: testing speed of async ecb(aes) (ecb(aes-ce)) encryption The algorithm implementations are sync, not async. Fix this inaccuracy. Fixes: 7166e589da5b6 ("crypto: tcrypt - Use skcipher") Signed-off-by: Horia Geantă Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f42f486e90e8a..ba0b7702f2e91 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1514,8 +1514,8 @@ static void test_skcipher_speed(const char *algo, int enc, unsigned int secs, return; } - pr_info("\ntesting speed of async %s (%s) %s\n", algo, - get_driver_name(crypto_skcipher, tfm), e); + pr_info("\ntesting speed of %s %s (%s) %s\n", async ? "async" : "sync", + algo, get_driver_name(crypto_skcipher, tfm), e); req = skcipher_request_alloc(tfm, GFP_KERNEL); if (!req) {