crypto: Add prefetching for src and dst 32/41032/4
authorNiyaz Murshed <[email protected]>
Tue, 4 Jun 2024 02:35:46 +0000 (02:35 +0000)
committerFan Zhang <[email protected]>
Tue, 25 Jun 2024 10:32:55 +0000 (10:32 +0000)
commit290dc7b63ea4f97b8d9a05b9aa840e97e0bff7ad
tree8f9053150ef07c19daa9473e573a9bf7c7867ba4
parented9843826ab653717989709cb70de2f97331c459
crypto: Add prefetching for src and dst

Adding prefetching to openssl plugin improves both sync and async mode
ipsec performance by more than 5% on N1 ampere.

Sync mode (1420b)
core count            old (MPPS)              new (MPPS)  %diff
    1c                  0.972                   1.01            3.90
    2c                  1.91                    2.02            5.87
    3c                  2.86                    3.04            6.03

Async mode (1420b)
core count            old (MPPS)              new (MPPS)        %diff
    1c 1.296                   1.37 5.70
    2c 2.58 2.753 6.70
    3c 3.74 3.9 4.27
    6c 7.52 7.832 4.14

Type: improvement
Change-Id: Ieef22c37e1330ac9f8b7e09a25c24162516b6c26
Signed-off-by: Niyaz Murshed <[email protected]>
src/plugins/crypto_openssl/main.c