mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: marvell - Remove custom swap function in favor of built-in sort swap
@ 2024-08-11  6:28 Kuan-Wei Chiu
  2024-08-11  6:28 ` [PATCH 1/2] crypto: octeontx " Kuan-Wei Chiu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kuan-Wei Chiu @ 2024-08-11  6:28 UTC (permalink / raw)
  To: bbrezillon, arno, schalla
  Cc: herbert, davem, jserv, linux-crypto, linux-kernel, Kuan-Wei Chiu

The custom swap function used in octeontx/octeontx2 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.

Kuan-Wei Chiu (2):
  crypto: octeontx - Remove custom swap function in favor of built-in
    sort swap
  crypto: octeontx2 - Remove custom swap functions in favor of built-in
    sort swap

 drivers/crypto/marvell/octeontx/otx_cptvf_algs.c   | 12 ++----------
 drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c | 10 +---------
 2 files changed, 3 insertions(+), 19 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-17  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-11  6:28 [PATCH 0/2] crypto: marvell - Remove custom swap function in favor of built-in sort swap Kuan-Wei Chiu
2024-08-11  6:28 ` [PATCH 1/2] crypto: octeontx " Kuan-Wei Chiu
2024-08-11  6:28 ` [PATCH 2/2] crypto: octeontx2 - Remove custom swap functions " Kuan-Wei Chiu
2024-08-17  7:09 ` [PATCH 0/2] crypto: marvell - Remove custom swap function " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®