Intel® QuickAssist Technology (Intel® QAT)
For questions and discussions related to Intel® QuickAssist Technology (Intel® QAT).
87 Discussões

QAT 4943 in DPDK not supporting SNOW-3G and ZUC

frog1120
Principiante
640 Visualizações

Hi, 

 

I'm testing QAT Gen4 4943 VF devices in DPDK23.11 with AES, SNOW-3G and ZUC cipher algorithm.

(As far as I know, QAT devces can support all AES, SNOW-3G and ZUC)

 

However, when I test with dpdp example application, I found that my QAT 4943 device cannot pass the SNOW-3G and ZUC test suite.

In dpdk23.11 source,  in QAT Gen4 device capability list, SNOW-3G and ZUC are not included.

Gen2 and Gen3 capability list include SNOW-3G and ZUC.  

 

What happened? Cannot QAT 4943 (Gen4) support SNOW-3G and ZUC?

 

I run :

dpdk-test -l1 -n1 -a 0000:76:00.1

EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: VFIO support initialized
EAL: Probe PCI driver: qat (8086:4943) device: 0000:76:00.1 (socket 0)
CRYPTODEV: Creating cryptodev 0000:76:00.1_qat_sym
CRYPTODEV: Initialisation parameters - name: 0000:76:00.1_qat_sym,socket id: 0, max queue pairs: 0
TELEMETRY: No legacy callbacks, legacy socket not created
APP: HPET is not enabled, using TSC as default timer
RTE>>cryptodev_qat_autotest

...

+ Test Suite : SNOW 3G Test Suite
USER1: Capability requirements for Snow3G testsuite not met

...

+ Test Suite : ZUC Test Suite
USER1: Capability requirements for ZUC testsuite not met

...

...

+ ------------------------------------------------------- +
+ Test Suite Summary : DOCSIS Proto Unit Test Suite
+ ------------------------------------------------------- +
+ Tests Total : 52
+ Tests Skipped : 0
+ Tests Executed : 52
+ Tests Unsupported: 0
+ Tests Passed : 52
+ Tests Failed : 0
+ ------------------------------------------------------- +
+ ------------------------------------------------------- +
+ Test Suite Summary : Cryptodev Unit Test Suite
+ ------------------------------------------------------- +
+ AES Chain : 32/74 passed, 42/74 skipped, 0/74 failed, 0/74 unsupported
+ AES Cipher Only : 34/75 passed, 41/75 skipped, 0/75 failed, 0/75 unsupported
+ AES Docsis : 24/24 passed, 0/24 skipped, 0/24 failed, 0/24 unsupported
+ 3DES Chain : 0/20 passed, 20/20 skipped, 0/20 failed, 0/20 unsupported
+ 3DES Cipher Only : 0/10 passed, 10/10 skipped, 0/10 failed, 0/10 unsupported
+ DES Cipher Only : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
+ DES Docsis : 0/12 passed, 12/12 skipped, 0/12 failed, 0/12 unsupported
+ SM4 Chain : 12/24 passed, 12/24 skipped, 0/24 failed, 0/24 unsupported
+ SM4 Cipher Only : 4/10 passed, 6/10 skipped, 0/10 failed, 0/10 unsupported
+ Auth Only : 28/62 passed, 34/62 skipped, 0/62 failed, 0/62 unsupported
+ Multi Session Unit Test Suite : 2/2 passed, 0/2 skipped, 0/2 failed, 0/2 unsupported
+ NULL Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
+ AES CCM Authenticated Test Suite : 6/18 passed, 12/18 skipped, 0/18 failed, 0/18 unsupported
+ AES GCM Authenticated Test Suite : 52/58 passed, 6/58 skipped, 0/58 failed, 0/58 unsupported
+ AES GMAC Authentication Test Suite : 12/12 passed, 0/12 skipped, 0/12 failed, 0/12 unsupported
+ SNOW 3G Test Suite : 0/57 passed, 57/57 skipped, 0/57 failed, 0/57 unsupported
+ Chacha20-Poly1305 Test Suite : 3/3 passed, 0/3 skipped, 0/3 failed, 0/3 unsupported
+ ZUC Test Suite : 0/68 passed, 68/68 skipped, 0/68 failed, 0/68 unsupported
+ HMAC_MD5 Authentication Test Suite : 0/4 passed, 4/4 skipped, 0/4 failed, 0/4 unsupported
+ Kasumi Test Suite : 0/36 passed, 36/36 skipped, 0/36 failed, 0/36 unsupported
+ ESN Test Suite : 0/2 passed, 2/2 skipped, 0/2 failed, 0/2 unsupported
+ Negative AES GCM Test Suite : 12/12 passed, 0/12 skipped, 0/12 failed, 0/12 unsupported
+ Negative AES GMAC Test Suite : 2/2 passed, 0/2 skipped, 0/2 failed, 0/2 unsupported
+ Mixed CIPHER + HASH algorithms Test Suite : 16/50 passed, 34/50 skipped, 0/50 failed, 0/50 unsupported
+ Negative HMAC SHA1 Unit Test Suite : 0/4 passed, 4/4 skipped, 0/4 failed, 0/4 unsupported
+ CryptoGeneral Unit Test Suite : 5/7 passed, 2/7 skipped, 0/7 failed, 0/7 unsupported
+ IPsec Proto Unit Test Suite : 0/92 passed, 92/92 skipped, 0/92 failed, 0/92 unsupported
+ PDCP Proto Unit Test Suite : 0/1 passed, 1/1 skipped, 0/1 failed, 0/1 unsupported
+ DOCSIS Proto Unit Test Suite : 52/52 passed, 0/52 skipped, 0/52 failed, 0/52 unsupported
+ ------------------------------------------------------- +
+ Sub Testsuites Total : 29
+ Sub Testsuites Skipped : 13
+ Sub Testsuites Passed : 16
+ Sub Testsuites Failed : 0
+ ------------------------------------------------------- +
+ Tests Total : 795
+ Tests Skipped : 499
+ Tests Executed : 494
+ Tests Unsupported: 0
+ Tests Passed : 296
+ Tests Failed : 0
+ ------------------------------------------------------- +
Test OK

 

Please give me an advice,

Regards,

J.Hwan Kim

0 Kudos
1 Solução
DiegoV_Intel
Moderador
615 Visualizações

Hi,

QAT Gen4 devices use the driver for QAT Hardware version 2.0, while previous QAT Gen devices uses the QAT Hardware version 1.x. These two drivers support different cipher algorithms. SNOW-3G and ZUC are examples of algorithms that are supported by the QAT Hardware version 1.x driver (used by QAT Gen2 and Gen3) but not by the QAT Hardware version 2.0 driver (used by QAT Gen4). That's the reason why you see these specific algorithms being skipped in the DPDK test.

You can consult the supported algorithms in the QAT Hardware version 2.0 driver here: Cryptographic Services.

Regards,
Diego V.

Ver solução na publicação original

1 Responder
DiegoV_Intel
Moderador
616 Visualizações

Hi,

QAT Gen4 devices use the driver for QAT Hardware version 2.0, while previous QAT Gen devices uses the QAT Hardware version 1.x. These two drivers support different cipher algorithms. SNOW-3G and ZUC are examples of algorithms that are supported by the QAT Hardware version 1.x driver (used by QAT Gen2 and Gen3) but not by the QAT Hardware version 2.0 driver (used by QAT Gen4). That's the reason why you see these specific algorithms being skipped in the DPDK test.

You can consult the supported algorithms in the QAT Hardware version 2.0 driver here: Cryptographic Services.

Regards,
Diego V.

Responder