the crypto patch i posted is nss crypto acceleration for skciphers like aes cbc etc.
I figured it out
Should I use this variant patch or the original patch?
this version is a replacement. but you may need todo adjustments if its not 100% compatible to your source. i took it out of my source which is a little bit different. and its also made for people to understand how the calibration file works since it contains alot of documentation
use this variant patch:
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:1697:12: warning: unused variable 's1' [-Wunused-variable]
1697 | u8 *s1 = (u8 *)data;
| ^~
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:1696:13: warning: unused variable 's' [-Wunused-variable]
1696 | u16 *s = (u16 *)data;
| ^
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c: In function 'patchregdb':
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:1831:12: warning: unused variable 'i' [-Wunused-variable]
1831 | int i;
| ^
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c: In function 'patchvht160':
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:2017:26: warning: unused variable 'f6g' [-Wunused-variable]
2017 | struct feature6g *f6g = (struct feature6g *)®db[603];
| ^~~
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:2014:13: warning: unused variable 'tmp' [-Wunused-variable]
2014 | u32 *tmp;
| ^~~
/home/lin/ax6-6.x/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/mac80211-regular/backports-6.9.9/drivers/net/wireless/ath/ath11k/core.c:2013:12: warning: unused variable 's' [-Wunused-variable]
2013 | u8 *s = (u8 *)data;
| ^
yes. these warning might occure and none of them is critical or a error. just leftovers which can be removed.
I'll test your original patch first, and then test this variant patch.
I won't but it's temping to fire up a compile and flash these patches while I'm not there
Ive also put together a patch that should re-enable disabling of smps in hostapd again basically reversing that w1.fi patch I posted above @qosmio let me know if u want it but it's untested and I am unsure if clients will even respect it
so that's 3 juicy patches to give a whirl... gonna have to wait another week tho!
Is nss crypto with this still much slower than just using the ARM capabilities?
Does ipq807x cypto support AES GCM mode? Or is it still just CBC-HMAC like ipq806x?
Does it also support chacha20-poly1305? If so can make WireGuard super efficient.
It supports
[08/13/24 03:08:24](K-6.6.45)
root@WRX36 ~
➤ cat /proc/crypto |grep nas
[08/13/24 03:08:30](K-6.6.45)
root@WRX36 ~
➤ cat /proc/crypto |grep nsa
[08/13/24 03:08:32](K-6.6.45)
root@WRX36 ~
➤ cat /proc/crypto |grep nss
driver : nss-hmac-sha512
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha384
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha224
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-md5
module : qca_nss_cfi_cryptoapi
driver : nss-sha512
module : qca_nss_cfi_cryptoapi
driver : nss-sha384
module : qca_nss_cfi_cryptoapi
driver : nss-sha256
module : qca_nss_cfi_cryptoapi
driver : nss-sha224
module : qca_nss_cfi_cryptoapi
driver : nss-sha1
module : qca_nss_cfi_cryptoapi
driver : nss-md5
module : qca_nss_cfi_cryptoapi
driver : nss-gcm
module : qca_nss_cfi_cryptoapi
driver : nss-rfc4106-gcm
module : qca_nss_cfi_cryptoapi
driver : nss-rfc4106-gcm
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256-cbc-3des
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1-cbc-3des
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha512-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha384-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256-cbc-3des
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1-cbc-3des
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha512-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha384-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha512-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha384-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-md5-cbc-3des
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha256-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-md5-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-sha1-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-hmac-md5-cbc-aes
module : qca_nss_cfi_cryptoapi
driver : nss-cbc-des-ede
module : qca_nss_cfi_cryptoapi
driver : nss-ecb-aes
module : qca_nss_cfi_cryptoapi
driver : nss-rfc3686-ctr-aes
module : qca_nss_cfi_cryptoapi
driver : nss-cbc-aes
module : qca_nss_cfi_cryptoapi
No NoChaCha20. Since it's a stream chipper. The only accelerator I know of is an experimentalld with Intel QAT
➤ openssl speed -engine devcrypto aes
Engine "devcrypto" set.
Doing aes-128-cbc for 3s on 16 size blocks: 38478 aes-128-cbc's in 0.01s
Doing aes-128-cbc for 3s on 64 size blocks: 38407 aes-128-cbc's in 0.03s
Doing aes-128-cbc for 3s on 256 size blocks: 38389 aes-128-cbc's in 0.01s
Doing aes-128-cbc for 3s on 1024 size blocks: 38310 aes-128-cbc's in 0.06s
Doing aes-128-cbc for 3s on 8192 size blocks: 38336 aes-128-cbc's in 0.01s
Doing aes-128-cbc for 3s on 16384 size blocks: 34691 aes-128-cbc's in 0.04s
Doing aes-192-cbc for 3s on 16 size blocks: 38464 aes-192-cbc's in 0.02s
Doing aes-192-cbc for 3s on 64 size blocks: 38487 aes-192-cbc's in 0.03s
Doing aes-192-cbc for 3s on 256 size blocks: 38498 aes-192-cbc's in 0.05s
Doing aes-192-cbc for 3s on 1024 size blocks: 38308 aes-192-cbc's in 0.01s
Doing aes-192-cbc for 3s on 8192 size blocks: 38286 aes-192-cbc's in 0.00s
Doing aes-192-cbc for 3s on 16384 size blocks: 31065 aes-192-cbc's in 0.05s
Doing aes-256-cbc for 3s on 16 size blocks: 38394 aes-256-cbc's in 0.02s
Doing aes-256-cbc for 3s on 64 size blocks: 38450 aes-256-cbc's in 0.03s
Doing aes-256-cbc for 3s on 256 size blocks: 38453 aes-256-cbc's in 0.02s
Doing aes-256-cbc for 3s on 1024 size blocks: 38325 aes-256-cbc's in 0.07s
Doing aes-256-cbc for 3s on 8192 size blocks: 38347 aes-256-cbc's in 0.02s
Doing aes-256-cbc for 3s on 16384 size blocks: 27279 aes-256-cbc's in 0.02s
version: 3.0.14+quic
built on: Mon Aug 12 04:34:11 2024 UTC
options: bn(64,64)
compiler: ccache aarch64-openwrt-linux-musl-gcc -fPIC -pthread -Wa,--noexecstack -Wall -O3 -pipe -mcpu=cortex-a53+crypto+crc -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 -fno-caller-saves -fno-plt -ftree-vectorize -fhonour-copts -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,relro -O3 -DPIC -fPIC -pipe -mcpu=cortex-a53+crypto+crc -fno-caller-saves -fno-plt -ftree-vectorize -fhonour-copts -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -O3 -fPIC -fuse-ld=mold -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -D_FORTIFY_SOURCE=1 -DPIC
CPUINFO: OPENSSL_armcap=0x3d
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
aes-128-cbc 61564.80k 81934.93k 982758.40k 653824.00k 31404851.20k 14209433.60k
aes-192-cbc 30771.20k 82105.60k 197109.76k 3922739.20k infk 10179379.20k
aes-256-cbc 30715.20k 82026.67k 492198.40k 560640.00k 15706931.20k 22346956.80k
Thanks. Looks like similar to ipq806x then. I would have thot at least AES-GCM. Sad.
Edit:
I suspect the openssl bench you did are still using CPU cycles for encryption and decryption? I'm not sure if the ipq807x nss-crypto-cfi modules now supports sg buffers? ipq806x does not, so even if we use devcrypto, it will not use it.
In any case, openssl with devcrypto is not good performance wise, due to the user land - kernel transfers. Took a big hit with performance there.
according to the code it does support gcm aes. dont know if qosmio added all kernel support for it
driver : nss-rfc4106-gcm
name : rfc4106(gcm(aes))
driver : nss-rfc4106-gcm
name : rfc4106(gcm(aes))
If I'm not wrong, rfc4106 is for IPSec VPN. There's no standalone AES-GCM from what I can see. OpenVPN DCO only supports AES-GCM at the moment, so if there's AES-GCM acceleration, it could really free up CPU cycles when using OpenVPN DCO.
better?
name : gcm(aes)
driver : nss-gcm
module : qca_nss_cfi_cryptoapi_ipq807x
priority : 10000
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 16
ivsize : 12
maxauthsize : 16
geniv :
i will rename the nss-gcm to nss-aes-gcm in the driver, so people find it easier using grep
Can you provide your warehouse?
warehouse?
It's probably about the repository
he doesnt seem to know that i'm not developing on openwrt but on dd-wrt. very easy to find but not helpfull for non developers
qca-nss-crypto works as expected with your patches to qca-nss-cfi
. Kudos!
now the tests insmod tcrypt.ko mode=500 sec=1
will not crash the router anymore.
[ 120.472789] tcrypt: testing speed of async ecb(aes) (nss-ecb-aes) encryption
[ 120.472843] tcrypt: test 0 (128 bit key, 16 byte blocks): 12775 operations in 1 seconds (204400 bytes)
[ 121.465022] tcrypt: test 1 (128 bit key, 64 byte blocks): 12877 operations in 1 seconds (824128 bytes)
[ 122.464972] tcrypt: test 2 (128 bit key, 128 byte blocks): 12871 operations in 1 seconds (1647488 bytes)
[ 123.464924] tcrypt: test 3 (128 bit key, 256 byte blocks): 12870 operations in 1 seconds (3294720 bytes)
[ 124.464876] tcrypt: test 4 (128 bit key, 1024 byte blocks): 12876 operations in 1 seconds (13185024 bytes)
[ 125.464825] tcrypt: test 5 (128 bit key, 1424 byte blocks): 12867 operations in 1 seconds (18322608 bytes)
[ 126.464779] tcrypt: test 6 (128 bit key, 4096 byte blocks): 12861 operations in 1 seconds (52678656 bytes)
[ 127.464730] tcrypt: test 7 (192 bit key, 16 byte blocks): 12868 operations in 1 seconds (205888 bytes)
[ 128.464686] tcrypt: test 8 (192 bit key, 64 byte blocks): 12867 operations in 1 seconds (823488 bytes)
[ 129.464631] tcrypt: test 9 (192 bit key, 128 byte blocks): 12878 operations in 1 seconds (1648384 bytes)
[ 130.464597] tcrypt: test 10 (192 bit key, 256 byte blocks): 12865 operations in 1 seconds (3293440 bytes)
[ 131.464538] tcrypt: test 11 (192 bit key, 1024 byte blocks): 12869 operations in 1 seconds (13177856 bytes)
[ 132.464492] tcrypt: test 12 (192 bit key, 1424 byte blocks): 12866 operations in 1 seconds (18321184 bytes)
[ 133.464440] tcrypt: test 13 (192 bit key, 4096 byte blocks): 12867 operations in 1 seconds (52703232 bytes)
[ 134.464392] tcrypt: test 14 (256 bit key, 16 byte blocks): 12864 operations in 1 seconds (205824 bytes)
[ 135.464343] tcrypt: test 15 (256 bit key, 64 byte blocks): 12857 operations in 1 seconds (822848 bytes)
[ 136.464319] tcrypt: test 16 (256 bit key, 128 byte blocks): 12871 operations in 1 seconds (1647488 bytes)
[ 137.464246] tcrypt: test 17 (256 bit key, 256 byte blocks): 12869 operations in 1 seconds (3294464 bytes)
[ 138.464229] tcrypt: test 18 (256 bit key, 1024 byte blocks): 12867 operations in 1 seconds (13175808 bytes)
[ 139.464227] tcrypt: test 19 (256 bit key, 1424 byte blocks): 12868 operations in 1 seconds (18324032 bytes)
[ 140.464177] tcrypt: test 20 (256 bit key, 4096 byte blocks): 12871 operations in 1 seconds (52719616 bytes)
[ 141.464362] tcrypt: testing speed of async ecb(aes) (nss-ecb-aes) decryption
[ 141.472646] tcrypt: test 0 (128 bit key, 16 byte blocks): 12771 operations in 1 seconds (204336 bytes)
[ 142.464159] tcrypt: test 1 (128 bit key, 64 byte blocks): 12869 operations in 1 seconds (823616 bytes)
[ 143.464110] tcrypt: test 2 (128 bit key, 128 byte blocks): 12852 operations in 1 seconds (1645056 bytes)
[ 144.464065] tcrypt: test 3 (128 bit key, 256 byte blocks): 12853 operations in 1 seconds (3290368 bytes)
[ 145.464094] tcrypt: test 4 (128 bit key, 1024 byte blocks): 12850 operations in 1 seconds (13158400 bytes)
[ 146.464047] tcrypt: test 5 (128 bit key, 1424 byte blocks): 12856 operations in 1 seconds (18306944 bytes)
[ 147.464070] tcrypt: test 6 (128 bit key, 4096 byte blocks): 12857 operations in 1 seconds (52662272 bytes)
[ 148.464021] tcrypt: test 7 (192 bit key, 16 byte blocks): 12867 operations in 1 seconds (205872 bytes)
[ 149.463987] tcrypt: test 8 (192 bit key, 64 byte blocks): 12840 operations in 1 seconds (821760 bytes)
[ 150.464000] tcrypt: test 9 (192 bit key, 128 byte blocks): 12857 operations in 1 seconds (1645696 bytes)
[ 151.463959] tcrypt: test 10 (192 bit key, 256 byte blocks): 12883 operations in 1 seconds (3298048 bytes)
[ 152.463984] tcrypt: test 11 (192 bit key, 1024 byte blocks): 12859 operations in 1 seconds (13167616 bytes)
[ 153.463935] tcrypt: test 12 (192 bit key, 1424 byte blocks): 12829 operations in 1 seconds (18268496 bytes)
[ 154.463964] tcrypt: test 13 (192 bit key, 4096 byte blocks): 12816 operations in 1 seconds (52494336 bytes)
[ 155.463917] tcrypt: test 14 (256 bit key, 16 byte blocks): 12866 operations in 1 seconds (205856 bytes)
[ 156.463892] tcrypt: test 15 (256 bit key, 64 byte blocks): 12876 operations in 1 seconds (824064 bytes)
[ 157.463892] tcrypt: test 16 (256 bit key, 128 byte blocks): 12872 operations in 1 seconds (1647616 bytes)
[ 158.463847] tcrypt: test 17 (256 bit key, 256 byte blocks): 12874 operations in 1 seconds (3295744 bytes)
[ 159.463876] tcrypt: test 18 (256 bit key, 1024 byte blocks): 12871 operations in 1 seconds (13179904 bytes)
[ 160.463828] tcrypt: test 19 (256 bit key, 1424 byte blocks): 12870 operations in 1 seconds (18326880 bytes)
[ 161.463859] tcrypt: test 20 (256 bit key, 4096 byte blocks): 12849 operations in 1 seconds (52629504 bytes)
[ 162.464047] tcrypt: testing speed of async cbc(aes) (nss-cbc-aes) encryption
[ 162.472325] tcrypt: test 0 (128 bit key, 16 byte blocks): 12767 operations in 1 seconds (204272 bytes)
[ 163.463762] tcrypt: test 1 (128 bit key, 64 byte blocks): 12877 operations in 1 seconds (824128 bytes)
[ 164.463792] tcrypt: test 2 (128 bit key, 128 byte blocks): 12876 operations in 1 seconds (1648128 bytes)
[ 165.463744] tcrypt: test 3 (128 bit key, 256 byte blocks): 12871 operations in 1 seconds (3294976 bytes)
[ 166.463769] tcrypt: test 4 (128 bit key, 1024 byte blocks): 12872 operations in 1 seconds (13180928 bytes)
[ 167.463724] tcrypt: test 5 (128 bit key, 1424 byte blocks): 12870 operations in 1 seconds (18326880 bytes)
[ 168.463761] tcrypt: test 6 (128 bit key, 4096 byte blocks): 12864 operations in 1 seconds (52690944 bytes)
[ 169.463706] tcrypt: test 7 (192 bit key, 16 byte blocks): 12852 operations in 1 seconds (205632 bytes)
[ 170.463727] tcrypt: test 8 (192 bit key, 64 byte blocks): 12851 operations in 1 seconds (822464 bytes)
[ 171.463680] tcrypt: test 9 (192 bit key, 128 byte blocks): 12772 operations in 1 seconds (1634816 bytes)
[ 172.463635] tcrypt: test 10 (192 bit key, 256 byte blocks): 12847 operations in 1 seconds (3288832 bytes)
[ 173.463805] tcrypt: test 11 (192 bit key, 1024 byte blocks): 12845 operations in 1 seconds (13153280 bytes)
[ 174.463697] tcrypt: test 12 (192 bit key, 1424 byte blocks): 12839 operations in 1 seconds (18282736 bytes)
[ 175.463723] tcrypt: test 13 (192 bit key, 4096 byte blocks): 12858 operations in 1 seconds (52666368 bytes)
[ 176.463749] tcrypt: test 14 (256 bit key, 16 byte blocks): 12870 operations in 1 seconds (205920 bytes)
[ 177.463857] tcrypt: test 15 (256 bit key, 64 byte blocks): 12865 operations in 1 seconds (823360 bytes)
[ 178.463885] tcrypt: test 16 (256 bit key, 128 byte blocks): 12874 operations in 1 seconds (1647872 bytes)
[ 179.463916] tcrypt: test 17 (256 bit key, 256 byte blocks): 12875 operations in 1 seconds (3296000 bytes)
[ 180.464023] tcrypt: test 18 (256 bit key, 1024 byte blocks): 12870 operations in 1 seconds (13178880 bytes)
[ 181.464049] tcrypt: test 19 (256 bit key, 1424 byte blocks): 12869 operations in 1 seconds (18325456 bytes)
[ 182.464140] tcrypt: test 20 (256 bit key, 4096 byte blocks): 12856 operations in 1 seconds (52658176 bytes)
[ 183.464423] tcrypt: testing speed of async cbc(aes) (nss-cbc-aes) decryption
[ 183.472743] tcrypt: test 0 (128 bit key, 16 byte blocks): 12756 operations in 1 seconds (204096 bytes)
[ 184.464213] tcrypt: test 1 (128 bit key, 64 byte blocks): 12864 operations in 1 seconds (823296 bytes)
[ 185.464246] tcrypt: test 2 (128 bit key, 128 byte blocks): 12880 operations in 1 seconds (1648640 bytes)
[ 186.464279] tcrypt: test 3 (128 bit key, 256 byte blocks): 12876 operations in 1 seconds (3296256 bytes)
[ 187.464382] tcrypt: test 4 (128 bit key, 1024 byte blocks): 12872 operations in 1 seconds (13180928 bytes)
[ 188.464415] tcrypt: test 5 (128 bit key, 1424 byte blocks): 12876 operations in 1 seconds (18335424 bytes)
[ 189.464442] tcrypt: test 6 (128 bit key, 4096 byte blocks): 12858 operations in 1 seconds (52666368 bytes)
[ 190.464479] tcrypt: test 7 (192 bit key, 16 byte blocks): 12867 operations in 1 seconds (205872 bytes)
[ 191.464571] tcrypt: test 8 (192 bit key, 64 byte blocks): 12874 operations in 1 seconds (823936 bytes)
[ 192.464604] tcrypt: test 9 (192 bit key, 128 byte blocks): 12872 operations in 1 seconds (1647616 bytes)
[ 193.464633] tcrypt: test 10 (192 bit key, 256 byte blocks): 12875 operations in 1 seconds (3296000 bytes)
[ 194.464673] tcrypt: test 11 (192 bit key, 1024 byte blocks): 12881 operations in 1 seconds (13190144 bytes)
[ 195.464768] tcrypt: test 12 (192 bit key, 1424 byte blocks): 12874 operations in 1 seconds (18332576 bytes)
[ 196.464797] tcrypt: test 13 (192 bit key, 4096 byte blocks): 12876 operations in 1 seconds (52740096 bytes)
[ 197.464829] tcrypt: test 14 (256 bit key, 16 byte blocks): 12875 operations in 1 seconds (206000 bytes)
[ 198.464856] tcrypt: test 15 (256 bit key, 64 byte blocks): 12881 operations in 1 seconds (824384 bytes)
[ 199.464962] tcrypt: test 16 (256 bit key, 128 byte blocks): 12882 operations in 1 seconds (1648896 bytes)
[ 200.464992] tcrypt: test 17 (256 bit key, 256 byte blocks): 12880 operations in 1 seconds (3297280 bytes)
[ 201.465021] tcrypt: test 18 (256 bit key, 1024 byte blocks): 12872 operations in 1 seconds (13180928 bytes)
[ 202.465058] tcrypt: test 19 (256 bit key, 1424 byte blocks): 12880 operations in 1 seconds (18341120 bytes)
[ 203.465078] tcrypt: test 20 (256 bit key, 4096 byte blocks): 12872 operations in 1 seconds (52723712 bytes)
[ 204.592396] tcrypt: failed to load transform for lrw(aes): -2
[ 204.720884] tcrypt: failed to load transform for lrw(aes): -2
[ 204.805301] tcrypt: testing speed of async xts(aes) (xts-aes-qce) encryption
[ 204.805350] tcrypt: test 0 (256 bit key, 16 byte blocks):
[ 204.805359] tcrypt: setkey() failed flags=1
[ 204.817842] tcrypt: testing speed of async xts(aes) (xts(nss-ecb-aes)) decryption
[ 204.820916] tcrypt: test 0 (256 bit key, 16 byte blocks): 12765 operations in 1 seconds (204240 bytes)
[ 205.815239] tcrypt: test 1 (256 bit key, 64 byte blocks): 12865 operations in 1 seconds (823360 bytes)
[ 206.815188] tcrypt: test 2 (256 bit key, 128 byte blocks): 12871 operations in 1 seconds (1647488 bytes)
[ 207.815143] tcrypt: test 3 (256 bit key, 256 byte blocks): 12877 operations in 1 seconds (3296512 bytes)
[ 208.815094] tcrypt: test 4 (256 bit key, 1024 byte blocks): 12865 operations in 1 seconds (13173760 bytes)
[ 209.814978] tcrypt: test 5 (256 bit key, 1424 byte blocks): 12866 operations in 1 seconds (18321184 bytes)
[ 210.814921] tcrypt: test 6 (256 bit key, 4096 byte blocks): 12851 operations in 1 seconds (52637696 bytes)
[ 211.814873] tcrypt: test 7 (512 bit key, 16 byte blocks): 12876 operations in 1 seconds (206016 bytes)
[ 212.814822] tcrypt: test 8 (512 bit key, 64 byte blocks): 12875 operations in 1 seconds (824000 bytes)
[ 213.814770] tcrypt: test 9 (512 bit key, 128 byte blocks): 12874 operations in 1 seconds (1647872 bytes)
[ 214.814724] tcrypt: test 10 (512 bit key, 256 byte blocks): 12866 operations in 1 seconds (3293696 bytes)
[ 215.814676] tcrypt: test 11 (512 bit key, 1024 byte blocks): 12860 operations in 1 seconds (13168640 bytes)
[ 216.814628] tcrypt: test 12 (512 bit key, 1424 byte blocks): 12864 operations in 1 seconds (18318336 bytes)
[ 217.814591] tcrypt: test 13 (512 bit key, 4096 byte blocks): 12867 operations in 1 seconds (52703232 bytes)
[ 218.947330] tcrypt: failed to load transform for cts(cbc(aes)): -2
[ 219.074106] tcrypt: failed to load transform for cts(cbc(aes)): -2
[ 219.074188] tcrypt: testing speed of async ctr(aes) (ctr-aes-qce) encryption
[ 219.079249] tcrypt: test 0 (128 bit key, 16 byte blocks): 25600 operations in 1 seconds (409600 bytes)
[ 220.074479] tcrypt: test 1 (128 bit key, 64 byte blocks): 28021 operations in 1 seconds (1793344 bytes)
[ 221.074369] tcrypt: test 2 (128 bit key, 128 byte blocks): 27640 operations in 1 seconds (3537920 bytes)
[ 222.074336] tcrypt: test 3 (128 bit key, 256 byte blocks): 27246 operations in 1 seconds (6974976 bytes)
[ 223.074280] tcrypt: test 4 (128 bit key, 1024 byte blocks): 24514 operations in 1 seconds (25102336 bytes)
[ 224.074218] tcrypt: test 5 (128 bit key, 1420 byte blocks): 23488 operations in 1 seconds (33352960 bytes)
[ 225.074167] tcrypt: test 6 (128 bit key, 4096 byte blocks): 16322 operations in 1 seconds (66854912 bytes)
[ 226.074128] tcrypt: test 7 (192 bit key, 16 byte blocks): 1548393 operations in 1 seconds (24774288 bytes)
[ 227.074047] tcrypt: test 8 (192 bit key, 64 byte blocks): 587065 operations in 1 seconds (37572160 bytes)
[ 228.073991] tcrypt: test 9 (192 bit key, 128 byte blocks): 321595 operations in 1 seconds (41164160 bytes)
[ 229.073947] tcrypt: test 10 (192 bit key, 256 byte blocks): 168978 operations in 1 seconds (43258368 bytes)
[ 230.073898] tcrypt: test 11 (192 bit key, 1024 byte blocks): 43902 operations in 1 seconds (44955648 bytes)
[ 231.073858] tcrypt: test 12 (192 bit key, 1420 byte blocks): 31583 operations in 1 seconds (44847860 bytes)
[ 232.073833] tcrypt: test 13 (192 bit key, 4096 byte blocks): 10990 operations in 1 seconds (45015040 bytes)
[ 233.073766] tcrypt: test 14 (256 bit key, 16 byte blocks): 25517 operations in 1 seconds (408272 bytes)
[ 234.073710] tcrypt: test 15 (256 bit key, 64 byte blocks): 26675 operations in 1 seconds (1707200 bytes)
[ 235.073670] tcrypt: test 16 (256 bit key, 128 byte blocks): 26204 operations in 1 seconds (3354112 bytes)
[ 236.073676] tcrypt: test 17 (256 bit key, 256 byte blocks): 25912 operations in 1 seconds (6633472 bytes)
[ 237.073574] tcrypt: test 18 (256 bit key, 1024 byte blocks): 22871 operations in 1 seconds (23419904 bytes)
[ 238.073590] tcrypt: test 19 (256 bit key, 1420 byte blocks): 21568 operations in 1 seconds (30626560 bytes)
[ 239.073490] tcrypt: test 20 (256 bit key, 4096 byte blocks): 14283 operations in 1 seconds (58503168 bytes)
[ 240.073517] tcrypt: testing speed of async ctr(aes) (ctr-aes-qce) decryption
[ 240.081991] tcrypt: test 0 (128 bit key, 16 byte blocks): 25247 operations in 1 seconds (403952 bytes)
[ 241.073420] tcrypt: test 1 (128 bit key, 64 byte blocks): 27821 operations in 1 seconds (1780544 bytes)
[ 242.073356] tcrypt: test 2 (128 bit key, 128 byte blocks): 27704 operations in 1 seconds (3546112 bytes)
[ 243.073321] tcrypt: test 3 (128 bit key, 256 byte blocks): 27206 operations in 1 seconds (6964736 bytes)
[ 244.073283] tcrypt: test 4 (128 bit key, 1024 byte blocks): 24674 operations in 1 seconds (25266176 bytes)
[ 245.073212] tcrypt: test 5 (128 bit key, 1420 byte blocks): 23710 operations in 1 seconds (33668200 bytes)
[ 246.073163] tcrypt: test 6 (128 bit key, 4096 byte blocks): 16437 operations in 1 seconds (67325952 bytes)
[ 247.073142] tcrypt: test 7 (192 bit key, 16 byte blocks): 1546989 operations in 1 seconds (24751824 bytes)
[ 248.073078] tcrypt: test 8 (192 bit key, 64 byte blocks): 586465 operations in 1 seconds (37533760 bytes)
[ 249.073031] tcrypt: test 9 (192 bit key, 128 byte blocks): 321292 operations in 1 seconds (41125376 bytes)
[ 250.072995] tcrypt: test 10 (192 bit key, 256 byte blocks): 168837 operations in 1 seconds (43222272 bytes)
[ 251.072955] tcrypt: test 11 (192 bit key, 1024 byte blocks): 43853 operations in 1 seconds (44905472 bytes)
[ 252.072917] tcrypt: test 12 (192 bit key, 1420 byte blocks): 31542 operations in 1 seconds (44789640 bytes)
[ 253.072890] tcrypt: test 13 (192 bit key, 4096 byte blocks): 10981 operations in 1 seconds (44978176 bytes)
[ 254.072914] tcrypt: test 14 (256 bit key, 16 byte blocks): 28438 operations in 1 seconds (455008 bytes)
[ 255.072784] tcrypt: test 15 (256 bit key, 64 byte blocks): 30678 operations in 1 seconds (1963392 bytes)
[ 256.072816] tcrypt: test 16 (256 bit key, 128 byte blocks): 30254 operations in 1 seconds (3872512 bytes)
[ 257.072798] tcrypt: test 17 (256 bit key, 256 byte blocks): 25987 operations in 1 seconds (6652672 bytes)
[ 258.072822] tcrypt: test 18 (256 bit key, 1024 byte blocks): 23106 operations in 1 seconds (23660544 bytes)
[ 259.072817] tcrypt: test 19 (256 bit key, 1420 byte blocks): 21522 operations in 1 seconds (30561240 bytes)
[ 260.072863] tcrypt: test 20 (256 bit key, 4096 byte blocks): 14258 operations in 1 seconds (58400768 bytes)
[ 261.199648] tcrypt: failed to load transform for cfb(aes): -2
[ 261.329371] tcrypt: failed to load transform for cfb(aes): -2
[ 261.458316] tcrypt: failed to load transform for ofb(aes): -2
[ 261.590022] tcrypt: failed to load transform for ofb(aes): -2
[ 261.590097] tcrypt: testing speed of async rfc3686(ctr(aes)) (nss-rfc3686-ctr-aes) encryption
[ 261.594808] tcrypt: test 0 (160 bit key, 16 byte blocks): 12836 operations in 1 seconds (205376 bytes)
[ 262.592856] tcrypt: test 1 (160 bit key, 64 byte blocks): 12871 operations in 1 seconds (823744 bytes)
[ 263.592885] tcrypt: test 2 (160 bit key, 128 byte blocks): 12878 operations in 1 seconds (1648384 bytes)
[ 264.592837] tcrypt: test 3 (160 bit key, 256 byte blocks): 12868 operations in 1 seconds (3294208 bytes)
[ 265.592867] tcrypt: test 4 (160 bit key, 1024 byte blocks): 12880 operations in 1 seconds (13189120 bytes)
[ 266.592896] tcrypt: test 5 (160 bit key, 1424 byte blocks): 12872 operations in 1 seconds (18329728 bytes)
[ 267.592846] tcrypt: test 6 (160 bit key, 4096 byte blocks): 12876 operations in 1 seconds (52740096 bytes)
[ 268.592879] tcrypt: test 7 (224 bit key, 16 byte blocks): 12875 operations in 1 seconds (206000 bytes)
[ 269.592917] tcrypt: test 8 (224 bit key, 64 byte blocks): 12874 operations in 1 seconds (823936 bytes)
[ 270.592858] tcrypt: test 9 (224 bit key, 128 byte blocks): 12872 operations in 1 seconds (1647616 bytes)
[ 271.592890] tcrypt: test 10 (224 bit key, 256 byte blocks): 12866 operations in 1 seconds (3293696 bytes)
[ 272.592922] tcrypt: test 11 (224 bit key, 1024 byte blocks): 12883 operations in 1 seconds (13192192 bytes)
[ 273.592867] tcrypt: test 12 (224 bit key, 1424 byte blocks): 12883 operations in 1 seconds (18345392 bytes)
[ 274.592894] tcrypt: test 13 (224 bit key, 4096 byte blocks): 12860 operations in 1 seconds (52674560 bytes)
[ 275.592937] tcrypt: test 14 (288 bit key, 16 byte blocks): 12872 operations in 1 seconds (205952 bytes)
[ 276.592878] tcrypt: test 15 (288 bit key, 64 byte blocks): 12877 operations in 1 seconds (824128 bytes)
[ 277.592905] tcrypt: test 16 (288 bit key, 128 byte blocks): 12872 operations in 1 seconds (1647616 bytes)
[ 278.592936] tcrypt: test 17 (288 bit key, 256 byte blocks): 12877 operations in 1 seconds (3296512 bytes)
[ 279.592899] tcrypt: test 18 (288 bit key, 1024 byte blocks): 12882 operations in 1 seconds (13191168 bytes)
[ 280.592915] tcrypt: test 19 (288 bit key, 1424 byte blocks): 12881 operations in 1 seconds (18342544 bytes)
[ 281.592958] tcrypt: test 20 (288 bit key, 4096 byte blocks): 12867 operations in 1 seconds (52703232 bytes)
[ 282.593125] tcrypt: testing speed of async rfc3686(ctr(aes)) (nss-rfc3686-ctr-aes) decryption
[ 282.601428] tcrypt: test 0 (160 bit key, 16 byte blocks): 12770 operations in 1 seconds (204320 bytes)
[ 283.592944] tcrypt: test 1 (160 bit key, 64 byte blocks): 12881 operations in 1 seconds (824384 bytes)
[ 284.592952] tcrypt: test 2 (160 bit key, 128 byte blocks): 12877 operations in 1 seconds (1648256 bytes)
[ 285.592982] tcrypt: test 3 (160 bit key, 256 byte blocks): 12877 operations in 1 seconds (3296512 bytes)
[ 286.592965] tcrypt: test 4 (160 bit key, 1024 byte blocks): 12876 operations in 1 seconds (13185024 bytes)
[ 287.592960] tcrypt: test 5 (160 bit key, 1424 byte blocks): 12877 operations in 1 seconds (18336848 bytes)
[ 288.592993] tcrypt: test 6 (160 bit key, 4096 byte blocks): 12870 operations in 1 seconds (52715520 bytes)
[ 289.592948] tcrypt: test 7 (224 bit key, 16 byte blocks): 12878 operations in 1 seconds (206048 bytes)
[ 290.592895] tcrypt: test 8 (224 bit key, 64 byte blocks): 12876 operations in 1 seconds (824064 bytes)
[ 291.592845] tcrypt: test 9 (224 bit key, 128 byte blocks): 12868 operations in 1 seconds (1647104 bytes)
[ 292.592802] tcrypt: test 10 (224 bit key, 256 byte blocks): 12862 operations in 1 seconds (3292672 bytes)
[ 293.592748] tcrypt: test 11 (224 bit key, 1024 byte blocks): 12851 operations in 1 seconds (13159424 bytes)
[ 294.592700] tcrypt: test 12 (224 bit key, 1424 byte blocks): 12856 operations in 1 seconds (18306944 bytes)
[ 295.592653] tcrypt: test 13 (224 bit key, 4096 byte blocks): 12859 operations in 1 seconds (52670464 bytes)
[ 296.592603] tcrypt: test 14 (288 bit key, 16 byte blocks): 12872 operations in 1 seconds (205952 bytes)
[ 297.592578] tcrypt: test 15 (288 bit key, 64 byte blocks): 12866 operations in 1 seconds (823424 bytes)
[ 298.592511] tcrypt: test 16 (288 bit key, 128 byte blocks): 12845 operations in 1 seconds (1644160 bytes)
[ 299.592464] tcrypt: test 17 (288 bit key, 256 byte blocks): 12864 operations in 1 seconds (3293184 bytes)
[ 300.592414] tcrypt: test 18 (288 bit key, 1024 byte blocks): 12864 operations in 1 seconds (13172736 bytes)
[ 301.592438] tcrypt: test 19 (288 bit key, 1424 byte blocks): 12867 operations in 1 seconds (18322608 bytes)
[ 302.592405] tcrypt: test 20 (288 bit key, 4096 byte blocks): 12846 operations in 1 seconds (52617216 bytes)
the counter is also updated.
cat /sys/kernel/debug/qca-nss-crypto/eip197v1/completed
4230904
root@OpenWrt:~# cat /sys/kernel/debug/qca-nss-crypto/eip197v1/dropped
0
root@OpenWrt:~# cat /sys/kernel/debug/qca-nss-crypto/eip197v1/processed
4230904