Skip to content

crypto: marvell - Remove custom swap function in favor of built-in sort swap

Kuan-Wei Chiu linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: octeontx - Remove custom swap function in favor of built-in sort swapdrivers/crypto/marvell/octeontx/otx_cptvf_algs.c+2 -100 replies
2/2crypto: octeontx2 - Remove custom swap functions in favor of built-in sort swapdrivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c+1 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] crypto: marvell - Remove custom swap function in favor of built-in sort swap

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(-)
Signature · 1 line
2.34.1