From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49B61A059F; Fri, 10 Apr 2020 16:41:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 506F41D59A; Fri, 10 Apr 2020 16:40:36 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3C3531D539 for ; Fri, 10 Apr 2020 16:40:33 +0200 (CEST) IronPort-SDR: 3GYvhOcVYXZwO0nq6nTrkpd6AFKAaYFpZPoGwc6qT+ubsiEehf1+zy4uLP3VZ9dji2FCt2X0NO DG4tUfy+80Eg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2020 07:40:32 -0700 IronPort-SDR: fDcsP9va94ivZy8HovRsk5FmBgZCRXtLXlTQruc9xdKnMJ+nOXsyEeKU5fd+KxPChPw+ENCHG0 Pai65btX+hjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,367,1580803200"; d="scan'208";a="242938918" Received: from silpixa00399912.ir.intel.com (HELO silpixa00399912.ger.corp.intel.com) ([10.237.223.64]) by fmsmga007.fm.intel.com with ESMTP; 10 Apr 2020 07:40:30 -0700 From: David Coyle To: dev@dpdk.org Cc: declan.doherty@intel.com, fiona.trahe@intel.com, pablo.de.lara.guarch@intel.com, brendan.ryan@intel.com, shreyansh.jain@nxp.com, hemant.agrawal@nxp.com, akhil.goyal@nxp.com, ferruh.yigit@intel.com, David Coyle , Mairtin o Loingsigh Date: Fri, 10 Apr 2020 15:27:56 +0100 Message-Id: <20200410142757.31508-4-david.coyle@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200410142757.31508-1-david.coyle@intel.com> References: <20200410142757.31508-1-david.coyle@intel.com> Subject: [dpdk-dev] [PATCH v3 3/4] test/rawdev: add aesni_mb_mfn raw device tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add unit tests for the AESNI-MB Multi-Function raw device PMD. Signed-off-by: David Coyle Signed-off-by: Mairtin o Loingsigh --- app/test/test_rawdev.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c index 524a9d5f3..eae88c20f 100644 --- a/app/test/test_rawdev.c +++ b/app/test/test_rawdev.c @@ -45,3 +45,21 @@ test_rawdev_selftest_ioat(void) } REGISTER_TEST_COMMAND(ioat_rawdev_autotest, test_rawdev_selftest_ioat); + +static int +test_rawdev_selftest_aesni_mb_mfn(void) +{ + int ret; + + ret = rte_vdev_init("rawdev_mfn_aesni_mb", NULL); + if (ret) { + printf("Failed to create AESNI-MB Multi-Function rawdev\n"); + return ret; + } + + return rte_rawdev_selftest(rte_rawdev_get_dev_id( + "rawdev_mfn_aesni_mb")); +} + +REGISTER_TEST_COMMAND(rawdev_mfn_aesni_mb_autotest, + test_rawdev_selftest_aesni_mb_mfn); -- 2.17.1