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 EC9CEA0562; Fri, 3 Apr 2020 18:49:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 95FC11C1F9; Fri, 3 Apr 2020 18:48:42 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 60FB71C1DE for ; Fri, 3 Apr 2020 18:48:40 +0200 (CEST) IronPort-SDR: V8pB5v/Z5v2OjiLIpMoTfhZ2CI22f7NNXMv8XMw7/OQdujDpUaxbS9oJIDbb9OP+9FILn+37gl EUaTR+/ggNEA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2020 09:48:40 -0700 IronPort-SDR: NLHWMVgIyeDS0f/guxvImhErqWTrAeowsjZfZ/lxxfE8jvkl7aXsRDqBxN77vqXMi7Tp3SNCsW obkMk8FXp4OA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,340,1580803200"; d="scan'208";a="274016909" Received: from silpixa00399912.ir.intel.com (HELO silpixa00399912.ger.corp.intel.com) ([10.237.223.64]) by fmsmga004.fm.intel.com with ESMTP; 03 Apr 2020 09:48:38 -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, David Coyle , Mairtin o Loingsigh Date: Fri, 3 Apr 2020 17:36:55 +0100 Message-Id: <20200403163656.60545-4-david.coyle@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200403163656.60545-1-david.coyle@intel.com> References: <20200403163656.60545-1-david.coyle@intel.com> Subject: [dpdk-dev] [PATCH v2 3/4] test/rawdev: add aesni_mb 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" Adding unit tests for the AESNI-MB raw device. Signed-off-by: David Coyle Signed-off-by: Mairtin o Loingsigh --- app/test/test_rawdev.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c index 524a9d5f3..badb6a756 100644 --- a/app/test/test_rawdev.c +++ b/app/test/test_rawdev.c @@ -45,3 +45,19 @@ test_rawdev_selftest_ioat(void) } REGISTER_TEST_COMMAND(ioat_rawdev_autotest, test_rawdev_selftest_ioat); + +static int +test_rawdev_selftest_aesni_mb(void) +{ + int ret; + + ret = rte_vdev_init("rawdev_aesni_mb", NULL); + if (ret) { + printf("Failed to create AESNI-MB rawdev\n"); + return ret; + } + + return rte_rawdev_selftest(rte_rawdev_get_dev_id("rawdev_aesni_mb")); +} + +REGISTER_TEST_COMMAND(rawdev_aesni_mb_autotest, test_rawdev_selftest_aesni_mb); -- 2.17.1