Content-Type: multipart/mixed; boundary="===============4712596514917384605==" MIME-Version: 1.0 From: Luse, Paul E Subject: [SPDK] Re: Encryption on SPDK Date: Tue, 04 Aug 2020 01:19:21 +0000 Message-ID: In-Reply-To: 20200804010332.2837.81726@ml01.vlan13.01.org List-ID: To: spdk@lists.01.org --===============4712596514917384605== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Lihui, Sure, we can help you! Your steps below are correct and will enable crypto= using the software DPDK PMD. If you want to use QAT you'd use "crypto_qat= " in pace of " crypto_aesni_mb" but you'd need to have the QAT driver all i= nstalled and setup. I'd say make sure SW works first and then if you want = to go that route we can do that. So once you've done the steps below you can confirm that the bdev created i= s named CryNvmeA by running the RPC " bdev_get_bdevs" If that's working the next step would be to access the block device from yo= ur app, I assume you are using vhost, do you know how to configure and run = some IO there? There are some other tools we can use to baseline your syst= em too, we have a tool called bdevperf for example but I won't go into how = to do that until I hear more about how you intend to access the bdev Thx Paul =EF=BB=BFOn 8/3/20, 6:03 PM, "lihui.zhang(a)intel.com" wrote: Hi, We are now setting up a SPDK enviornment, some questions on encryption = of block dev, thanks! 1. How to enable encryption of block dev? 2. How to configure software and hardware(through cryptodev) encryption? 3. How to validate? We tried below steps to enable encrypted partition, is there any method= to validate whether it is works or not? = 1. Configure and compile SPDK=EF=BC=9A HUGEMEM=3D8192 ./scripts/setup.sh ./configure --with-vhost --with-crypto make -j32 2.Encryption=EF=BC=9A ./build/bin/vhost -i 0 ./scripts/rpc.py construct_nvme_bdev -b Nvme01 -t pcie -a 0000:81:00.0 ./scripts/rpc.py bdev_crypto_create NVMe0n1 CryNvmeA crypto_aesni_mb 01= 23456789123456 Thanks! _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org --===============4712596514917384605==--