Re: [dpdk-dev] [PATCH v2 3/4] examples/fips_validation: remove illegal usage of APIs
From: Zhang, Roy Fan <hidden>
Date: 2021-08-30 20:27:34
-----Original Message----- From: Akhil Goyal <redacted> Sent: Wednesday, August 11, 2021 9:20 AM To: Matan Azrad <redacted>; dev@dpdk.org Cc: Anoob Joseph <redacted>; Nicolau, Radu [off-list ref]; Doherty, Declan [off-list ref]; hemant.agrawal@nxp.com; Ananyev, Konstantin [off-list ref]; NBU-Contact-Thomas Monjalon [off-list ref]; Zhang, Roy Fan [off-list ref]; asomalap@amd.com; ruifeng.wang@arm.com; ajit.khaparde@broadcom.com; De Lara Guarch, Pablo [off-list ref]; Trahe, Fiona [off-list ref]; Ankur Dwivedi [off-list ref]; Michael Shamis [off-list ref]; Nagadheeraj Rottela [off-list ref]; jianjay.zhou@huawei.com Subject: RE: [PATCH v2 3/4] examples/fips_validation: remove illegal usage of APIsquoted
From: Akhil Goyalquoted
Some of the cryptodev APIs are not allowed to be used by application directly. Hence removing the usage of 1. queue_pair_release: it is not required, as configure of queue pair release the previous queue pairs and the dev is not directly exposed to application, hence cannot use its ops from app. 2. rte_cryptodev_stop: it can be used directly without checking if the device is started or not. 3. rte_cryptodev_pmd_destroy: application should use rte_cryptodev_close instead. Signed-off-by: Akhil Goyal <redacted>Look's like it should be backported to stable releases with a Fixes reference. What do you think? Besides, Acked-by: Matan Azrad <redacted>Yes, Agreed. I wanted to get opinion from the Maintainer of fips app first if the changes are Correct or not.
Hi Akhil, FIPS requirement is upon failure of running self-test the device memory shall be destroyed completely and not visible by the application at all - rte_cryptodev_close does not provide this functionality. In this case we may need new API rte_cryptodev_destroy() to replace rte_cryptodev_pmd_destroy(). Regards, Fan