Message ID | 20200504215811.15951-1-akhil.goyal@nxp.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCBF7A04AE; Tue, 5 May 2020 00:19:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FDEC1D577; Tue, 5 May 2020 00:19:22 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id C813E1D56D for <dev@dpdk.org>; Tue, 5 May 2020 00:19:21 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 780381A02AD; Tue, 5 May 2020 00:19:21 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 80B1A1A0021; Tue, 5 May 2020 00:19:15 +0200 (CEST) Received: from GDB1.ap.freescale.net (gdb1.ap.freescale.net [10.232.132.179]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B2CDB4028F; Tue, 5 May 2020 06:19:07 +0800 (SGT) From: Akhil Goyal <akhil.goyal@nxp.com> To: dev@dpdk.org Cc: Ruifeng.Wang@arm.com, declan.doherty@intel.com, asomalap@amd.com, anoobj@marvell.com, roy.fan.zhang@intel.com, fiona.trahe@intel.com, tdu@semihalf.com, rnagadheeraj@marvell.com, adwivedi@marvell.com, G.Singh@nxp.com, hemant.agrawal@nxp.com, jianjay.zhou@huawei.com, pablo.de.lara.guarch@intel.com, Akhil Goyal <akhil.goyal@nxp.com> Date: Tue, 5 May 2020 03:28:02 +0530 Message-Id: <20200504215811.15951-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH 0/9] test/crypto: code cleanup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
test/crypto: code cleanup
|
|
Message
Akhil Goyal
May 4, 2020, 9:58 p.m. UTC
Certain cases were put in PMD specific checks which should be avoided. Appropriate capability/supported feature flag should be checked before executing the test case. Added 1 missing feature flag for non-byte aligned data Enabled it for SNOW/ZUC/KASUMI PMDs. All the PMD owners are requested to verify these changes and let me know in case there are some issues. Also removed PMD specific testsuite for dpaa_sec and dpaa2_sec. It is requested to all PMD owners to remove their PMD specific suites and move to generic testsuite. Akhil Goyal (9): cryptodev: add feature flag for non-byte aligned data test/crypto: skip unsupported non-byte aligned cases test/crypto: skip unsupported SG cases test/crypto: skip unsupported sessionless cases test/crypto: skip unsupported session test/crypto: run PDCP cases if supported test/crypto: remove dpaaX_sec specific testsuites test/crypto: remove QAT specific check test/crypto: remove unused variable app/test/test_cryptodev.c | 845 +++++---------------- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/kasumi.ini | 1 + doc/guides/cryptodevs/features/snow3g.ini | 1 + doc/guides/cryptodevs/features/zuc.ini | 1 + drivers/crypto/kasumi/rte_kasumi_pmd.c | 1 + drivers/crypto/snow3g/rte_snow3g_pmd.c | 1 + drivers/crypto/zuc/rte_zuc_pmd.c | 1 + lib/librte_cryptodev/rte_cryptodev.c | 2 + lib/librte_cryptodev/rte_cryptodev.h | 2 + 10 files changed, 194 insertions(+), 662 deletions(-)
Comments
Hi Akhil. I checked these PMDs work properly after applying this patch series: QAT, SW_ZUC, SW_SNOW3G, SCHEDULER, NULL But there is a problem with OpenSSL PMD - it fails in one test now: + TestCase [15] : test_stats failed As it is software-only PMD, you can verify this also on your side. Please do. Adam Dybkowski > -----Original Message----- > From: dev <dev-bounces@dpdk.org> On Behalf Of Akhil Goyal > Sent: Monday, 4 May, 2020 23:58 > To: dev@dpdk.org > Cc: Ruifeng.Wang@arm.com; Doherty, Declan <declan.doherty@intel.com>; > asomalap@amd.com; anoobj@marvell.com; Zhang, Roy Fan > <roy.fan.zhang@intel.com>; Trahe, Fiona <fiona.trahe@intel.com>; > tdu@semihalf.com; rnagadheeraj@marvell.com; adwivedi@marvell.com; > G.Singh@nxp.com; hemant.agrawal@nxp.com; jianjay.zhou@huawei.com; > De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; Akhil Goyal > <akhil.goyal@nxp.com> > Subject: [dpdk-dev] [PATCH 0/9] test/crypto: code cleanup > > Certain cases were put in PMD specific checks which should be avoided. > Appropriate capability/supported feature flag should be checked before > executing the test case. > Added 1 missing feature flag for non-byte aligned data Enabled it for > SNOW/ZUC/KASUMI PMDs. > All the PMD owners are requested to verify these changes and let me know > in case there are some issues. > > Also removed PMD specific testsuite for dpaa_sec and dpaa2_sec. > It is requested to all PMD owners to remove their PMD specific suites and > move to generic testsuite. > > Akhil Goyal (9): > cryptodev: add feature flag for non-byte aligned data > test/crypto: skip unsupported non-byte aligned cases > test/crypto: skip unsupported SG cases > test/crypto: skip unsupported sessionless cases > test/crypto: skip unsupported session > test/crypto: run PDCP cases if supported > test/crypto: remove dpaaX_sec specific testsuites > test/crypto: remove QAT specific check > test/crypto: remove unused variable > > app/test/test_cryptodev.c | 845 +++++---------------- > doc/guides/cryptodevs/features/default.ini | 1 + > doc/guides/cryptodevs/features/kasumi.ini | 1 + > doc/guides/cryptodevs/features/snow3g.ini | 1 + > doc/guides/cryptodevs/features/zuc.ini | 1 + > drivers/crypto/kasumi/rte_kasumi_pmd.c | 1 + > drivers/crypto/snow3g/rte_snow3g_pmd.c | 1 + > drivers/crypto/zuc/rte_zuc_pmd.c | 1 + > lib/librte_cryptodev/rte_cryptodev.c | 2 + > lib/librte_cryptodev/rte_cryptodev.h | 2 + > 10 files changed, 194 insertions(+), 662 deletions(-) > > -- > 2.17.1
> -----Original Message----- > From: Akhil Goyal <akhil.goyal@nxp.com> > Sent: Tuesday, May 5, 2020 5:58 AM > To: dev@dpdk.org > Cc: Ruifeng Wang <Ruifeng.Wang@arm.com>; declan.doherty@intel.com; > asomalap@amd.com; anoobj@marvell.com; roy.fan.zhang@intel.com; > fiona.trahe@intel.com; tdu@semihalf.com; rnagadheeraj@marvell.com; > adwivedi@marvell.com; G.Singh@nxp.com; hemant.agrawal@nxp.com; > jianjay.zhou@huawei.com; pablo.de.lara.guarch@intel.com; > Akhil.goyal@nxp.com > Subject: [PATCH 0/9] test/crypto: code cleanup > > Certain cases were put in PMD specific checks which should be avoided. > Appropriate capability/supported feature flag should be checked before > executing the test case. > Added 1 missing feature flag for non-byte aligned data Enabled it for > SNOW/ZUC/KASUMI PMDs. > All the PMD owners are requested to verify these changes and let me know > in case there are some issues. > > Also removed PMD specific testsuite for dpaa_sec and dpaa2_sec. > It is requested to all PMD owners to remove their PMD specific suites and > move to generic testsuite. > > Akhil Goyal (9): > cryptodev: add feature flag for non-byte aligned data > test/crypto: skip unsupported non-byte aligned cases > test/crypto: skip unsupported SG cases > test/crypto: skip unsupported sessionless cases > test/crypto: skip unsupported session > test/crypto: run PDCP cases if supported > test/crypto: remove dpaaX_sec specific testsuites > test/crypto: remove QAT specific check > test/crypto: remove unused variable > > app/test/test_cryptodev.c | 845 +++++---------------- > doc/guides/cryptodevs/features/default.ini | 1 + > doc/guides/cryptodevs/features/kasumi.ini | 1 + > doc/guides/cryptodevs/features/snow3g.ini | 1 + > doc/guides/cryptodevs/features/zuc.ini | 1 + > drivers/crypto/kasumi/rte_kasumi_pmd.c | 1 + > drivers/crypto/snow3g/rte_snow3g_pmd.c | 1 + > drivers/crypto/zuc/rte_zuc_pmd.c | 1 + > lib/librte_cryptodev/rte_cryptodev.c | 2 + > lib/librte_cryptodev/rte_cryptodev.h | 2 + > 10 files changed, 194 insertions(+), 662 deletions(-) > > -- > 2.17.1 Tested on armv8 platform. armv8 PMD and null PMD are OK. cryptodev_openssl_autotest has a failure.
Hi Ruifeng, > > Tested on armv8 platform. > armv8 PMD and null PMD are OK. > cryptodev_openssl_autotest has a failure. I have added a workaround to fix the openssl failure in v2. It is caused by the 8/9 patch Of the patchset due to some dependency. I have altered the execution of two tests And now the cases are passing on openssl. Please check. If the workaround is not acceptable, we can skip the 8/9 patch in RC2 which is on Monday And debug the actual cause afterwards. Could you please Ack the other patches so that it can be applied in RC2? Regards, Akhil