]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: octeontx - Remove custom swap function in favor of built-in sort swap
authorKuan-Wei Chiu <visitorckw@gmail.com>
Sun, 11 Aug 2024 06:28:16 +0000 (14:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 17 Aug 2024 05:55:50 +0000 (13:55 +0800)
commita304393a9d950ae498151890d6cacc83909d90a4
treef302fe1f2a0b87e0d03deb63c3827157638ffea1
parent5a72a244bac3e8663834d88bb0b4f9069203e5e0
crypto: octeontx - Remove custom swap function in favor of built-in sort swap

The custom swap function used in octeontx driver do not perform any
special operations and can be replaced with the built-in swap function
of sort. This change not only reduces code size but also improves
efficiency, especially in scenarios where CONFIG_RETPOLINE is enabled,
as it makes indirect function calls more expensive.

By using the built-in swap, we avoid these costly indirect function
calls, leading to better performance.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c