[dpdk-users] OpenSSL Crypto PMD Fails
Trahe, Fiona
fiona.trahe at intel.com
Fri Apr 27 12:19:29 CEST 2018
It's not enabled by default - have you enabled it in the config file?
sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_OPENSSL\)=n,\1=y,' $RTE_OUTPUT/.config
> -----Original Message-----
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of Kudupudi, Ugendreshwar
> Sent: Wednesday, April 25, 2018 2:24 PM
> To: users at dpdk.org
> Subject: [dpdk-users] OpenSSL Crypto PMD Fails
>
> Hello Team
>
> We are looking to execute the sample OpenSSL Crypto PMD and got the below error.
>
> Environment Details:
> -----------------------------
>
> OS: Centos 7.3 (3.10.0)
> DPDK: 17.11.2
> OpenSSL Version: 1.0.2k-fips
> Ethernet: Intel X710
> Isolcpu: 0-3
> Link: https://dpdk.org/doc/guides/cryptodevs/openssl.html
>
> Any help in resolving this issue is deeply appreciated.
>
> ----------------------------------------- log start ----------------------------------------------------------------------------------
> sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 0-1 -n 4 --vdev crypto_openssl -- -p 0x3 --chain
> CIPHER_HASH --cipher_op ENCRYPT --cipher_algo AES_CBC --cipher_key
> 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f --iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff --
> auth_op GENERATE --auth_algo SHA1_HMAC --auth_key
> 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:
> 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11
> EAL: Detected 28 lcore(s)
> ERROR: failed to parse device "crypto_openssl"
> EAL: Unable to parse device 'crypto_openssl'
> EAL: Error - exiting with code: 1
> Cause: Invalid EAL arguments
> ----------------------------------------- log end ----------------------------------------------------------------------------------
>
>
>
> We ran the NULL Crypto PMD successfully though.
>
>
>
> ----------------------------------------- log start ----------------------------------------------------------------------------------
>
> sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 1 -n 4 --
> vdev=crypto_null,socket_id=0,max_nb_sessions=128 -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo
> null
> EAL: Detected 28 lcore(s)
> EAL: Probing VFIO support...
> EAL: VFIO support initialized
> EAL: PCI device 0000:01:00.0 on NUMA socket 0
> EAL: probe driver: 8086:1521 net_e1000_igb
> EAL: PCI device 0000:01:00.1 on NUMA socket 0
> EAL: probe driver: 8086:1521 net_e1000_igb
> EAL: PCI device 0000:02:00.0 on NUMA socket 0
> EAL: probe driver: 8086:1572 net_i40e
> EAL: using IOMMU type 1 (Type 1)
> PMD: Global register is changed during enable FDIR flexible payload
> PMD: Global register is changed during support QinQ parser
> PMD: Global register is changed during configure hash input set
> PMD: Global register is changed during configure fdir mask
> PMD: Global register is changed during configure hash mask
> PMD: Global register is changed during support QinQ cloud filter
> PMD: Global register is changed during support TPID configuration
> EAL: PCI device 0000:02:00.1 on NUMA socket 0
> EAL: probe driver: 8086:1572 net_i40e
> CRYPTODEV: [crypto_null] - Creating cryptodev crypto_null
>
> CRYPTODEV: [crypto_null] - Initialisation parameters - name: crypto_null,socket id: 0, max queue pairs: 8,
> max sessions: 128
> MAC updating enabled
> Initializing port 0... Port 0, MAC address: 3C:FD:FE:0D:1C:E0
>
>
> Checking link status..........................................................................................done
> Port 0 Link Down
> Lcore 1: RX port 0
> Allocated session pool on socket 0
> Lcore 1: cryptodev 0
> L2FWD: entering main loop on lcore 1
> L2FWD: -- lcoreid=1 portid=0
> L2FWD: -- lcoreid=1 cryptoid=0
> Options:-
> nportmask: 1
> ports per lcore: 1
> refresh period : 10000
> single lcore mode: disabled
> stats_printing: enabled
> sessionless crypto: disabled
>
> Crypto chain: Input --> Encrypt --> Output
>
> ---- Cipher information ---
> Algorithm: null
> Cipher key: at [0x7fedbff38080], len=0
> IV: at [0x7fedbff34640], len=0
>
> Port statistics ====================================
> Statistics for port 0 ------------------------------
> Packets sent: 0
> Packets received: 0
> Packets dropped: 0
> Crypto statistics ==================================
> Statistics for cryptodev 0 -------------------------
> Packets enqueued: 0
> Packets dequeued: 0
> Packets errors: 0
> Aggregate statistics ===============================
> Total packets received: 0
> Total packets enqueued: 0
> Total packets dequeued: 0
> Total packets sent: 0
> Total packets dropped: 0
> Total packets crypto errors: 0
> ====================================================
> ----------------------------------------- log end ----------------------------------------------------------------------------------
>
>
> Regards
> Ugen
More information about the users
mailing list