From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0051.outbound.protection.outlook.com [104.47.1.51]) by dpdk.org (Postfix) with ESMTP id 52E687CF8 for ; Wed, 25 Apr 2018 16:40:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FYi/oHJa9qxLJI5BQmGtf2evuxCHAiZM+qMUvaiiLuY=; b=l6lVQBEkRj4rejpm1py6V50k1BIM1iHD182wveCMkFWbpkJV653N/PFYm++COihio/Uow3fAp3/yOpN54F2EAPCQ1Gev99mD+45r6tQu+8V3kb6xrlzy1Vs69V057k/YlH0KAvwZ0GMCS+/bul9dTyB6DJxRHRSb1o2/DmqG6Og= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.49] (14.142.187.166) by HE1PR04MB1386.eurprd04.prod.outlook.com (2a01:111:e400:535b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Wed, 25 Apr 2018 14:40:33 +0000 To: Abhinandan Gujjar , jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, akhil.goyal@nxp.com, dev@dpdk.org References: <1524573807-168522-1-git-send-email-abhinandan.gujjar@intel.com> <1524573807-168522-5-git-send-email-abhinandan.gujjar@intel.com> Cc: narender.vangati@intel.com, nikhil.rao@intel.com, gage.eads@intel.com From: Akhil Goyal Organization: NXP Message-ID: <4750e560-5c72-8f1d-ac8e-99af53f5bc20@nxp.com> Date: Wed, 25 Apr 2018 20:10:16 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1524573807-168522-5-git-send-email-abhinandan.gujjar@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0018.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::28) To HE1PR04MB1386.eurprd04.prod.outlook.com (2a01:111:e400:535b::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1386; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1386; 3:DV7kod4ciR8OTzAa0UHMNX5T7JPvDDCNlhArAubEOn6kbg7C/jJh0F4jUxWNiRir5nYDyHQOd88U3M5QPqoyYP6hQQkH32A/O2mXTAWcxqaYLISKWm3eF4GLg5TXumauWjpEqE4ieK0RyvC2lA58bqM6bfWorRtwtm5FXR+6ufOfzJMBCrJDv6ZYwlzlv0ulvon8BOh3awq2LNSNrBr2Y0KZj/uWXouKgHB1/qsIfqW+fHRGYKWUL6nvfs6IUwN0; 25:IRH5V8bLFMEgBD3WaJH53Tswhg3+70RmcQG2HYrjmZmZTBaGidvmr10W/sVz0Qt+8vnDC5R3bfkrfES3q8B3zIBBZGB77Ex9w7h3Kw4r65ozQ8FZFMShS3yMLMuYhJyFhpJZ9KxOU8fW02NeqMPlEzQmYOfx3fkcTImVp/9r73FyXJKtTa8dlxaVslOi1cbdndcGkUrrp8ybrk+OupxnUU3VQiFziQRXGLHcQVsXBnpzJgQ3U4Y8lJeiiF3kz/0nP73FOHgtDrY3dyPZAcNWcw95l9+Y7areLY+QJSmWa/4TERIacbwcjd+pf5qJycaPV5x7jfIuw3TPu6VgQifDPg==; 31:J8Koe/GYXd3HGkRxcRezuCH+ShmwiryQYhSDoHWdgdTMaZEXcZ0LhDzI/Ttd4NdP6W76/U64QlkzYNSN7Yc4cSsoOEI+f+aYELHr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ispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR04MB1386; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1386; X-Forefront-PRVS: 06530126A4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(376002)(346002)(396003)(39380400002)(39860400002)(189003)(199004)(68736007)(77096007)(105586002)(47776003)(66066001)(6246003)(67846002)(305945005)(64126003)(486006)(476003)(97736004)(36916002)(52116002)(6666003)(386003)(7736002)(8676002)(2906002)(106356001)(55236004)(31686004)(36756003)(8936002)(65806001)(53936002)(81156014)(65956001)(81166006)(76176011)(26005)(50466002)(53546011)(59450400001)(16576012)(3260700006)(3846002)(186003)(230700001)(44832011)(6486002)(229853002)(11346002)(86362001)(478600001)(65826007)(956004)(4326008)(16526019)(446003)(31696002)(316002)(58126008)(25786009)(23746002)(5660300001)(2616005)(5009440100003)(6116002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1386; H:[10.232.134.49]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; HE1PR04MB1386; 23:SdThABMsSYr+vPh/Z4cU43YJeOzG1JAugZUXs?= =?Windows-1252?Q?XVOW021wXGV+sWRFAqdaskJ4havpaI/42fIvIxE3d/UTx1VL+L+5RXzx?= =?Windows-1252?Q?p83+5f1/HoRtiRJJ628qkYnmWUgLOlxz7XjsAABrcepEWHpRvPHIrPTy?= =?Windows-1252?Q?vJAr+B+P0+afeZ4UHLG67DNRSoe61eI0cF/f5VRE4kuncXCqPnyU3Le2?= =?Windows-1252?Q?tEzLsSf1x6/ravDuWBP0TIo8efKoynod0jdB57Tg4qyTA5qLsHvc4kPc?= =?Windows-1252?Q?+9/SFybXXmwy/3juzSjJPJt+MMVwt3RwdcmgFmPI/OLxtLaE3xIkfzL2?= =?Windows-1252?Q?ohZ7IfHNnLXZl5ZfFj9+ukEijIgOQI0jAvffDkaaTiEb/Qo7qmZVxOXO?= =?Windows-1252?Q?vi6vEe5hW2Vo37L4HOWvmcXdMC71wskodCGF1iQGH8Xax8wuBhdXEmh5?= =?Windows-1252?Q?AzFQv7wOqfJUpqWwJoEJ/OQBvEfvVwEWjUnN/Ni8QIGcO7Lcb7kkxI+i?= =?Windows-1252?Q?JASgI4h40g/GOdBIWvy8J0EHQ//O56ZnrjbjqJ6ojWbyBYc6y07t8kLk?= =?Windows-1252?Q?2yoOhozid9HawxazJVEjhj3mOho3i7Lq86aoAUuZeVGcwMOgRhc3G0lj?= =?Windows-1252?Q?R3GNx62MV0hsLE+dOCFX28ADjHGQ3EyqY3DYASFgas/J9DLDobnNQlzd?= =?Windows-1252?Q?Awcm0eSDsay3iZaO+uLwriwyB+SNjXvbaHodadVFCCehpXnNSU0yV1GY?= =?Windows-1252?Q?OOP7/8Wegmzs1zxDH03Zree2Vjwz1G2VQpRmJ9LN75oqbjh/mMV2HGKu?= =?Windows-1252?Q?9wPCnh6rhVnfGI7oIrxEPzrtudXfJQJuLsVV9ZhOtXUCn+4eugr05R8k?= =?Windows-1252?Q?zrP4qLUwDuROOqvofwQQZQtYdTQRvfAeyYH3k2M60FWH+xRC5ymHQT3a?= =?Windows-1252?Q?itGfByGrxdHUMdNCRALMIQyFJ8zXzwnR0Rc8E3XBp4Z+T7uHZgEEw+s4?= =?Windows-1252?Q?a1pn/yfCfJmRMeAJyYEMsaX4kNwnOqupF7Re9FrjlDKy5hSBOwYWr5Fx?= =?Windows-1252?Q?CP5mFAIyC5O0NWPZH8BupIuWSrFAqOzf92gO4dvy0LQ3eKz+yc5I9Joe?= =?Windows-1252?Q?cxUoEWIdjTqtcNHfT9Rdr5JlXmfe5efsIqJVor7dEmH/KD45ovW74R8J?= =?Windows-1252?Q?BnqxGgAj2gWPHZKh60yIFYBAy7JYgtbMAEdOPA81PhOlA9lhKjLsIBXg?= =?Windows-1252?Q?Gh1ZLIu5xlUOorKOS1R1TkCfgO3Bo3Rtnx7ENVyYCKmsMHy581ZyQjmg?= =?Windows-1252?Q?UihvQ+oOQuROaZR1+EQbp56DwlLFyOerTyiy/I3uaaIDUixqTonHlCo5?= =?Windows-1252?Q?n48eDYH213x9NEorMIbN5h7NWesH4dQ+JdLJyHgsPxwwe+8cvcABkX6w?= =?Windows-1252?Q?5eaFdu9BBFTGQy1FsYIFhm+smpEiS1Xd/AWJjdj6DTxE1i3s/acMBS1c?= =?Windows-1252?Q?NXyNLgR+rFTeez49TT73LvDivjhM+b13esxPj97r8detWpvR9p0+nEFj?= =?Windows-1252?Q?lAfNKk7ygZuHp0pn6lQiapwBd3ph2g7BDfF5ZPwiYzJBPzauLy5gI959?= =?Windows-1252?Q?GJrheeUULdNBu2M2OE4BW1sL6XHrNv0/5FvaoGMbshRJFBWRoXiA6Dc7?= =?Windows-1252?Q?p15rLokRA=3D=3D?= X-Microsoft-Antispam-Message-Info: DXA518ooNaRbHb1Tx+ydfzh/DYgTgdBskRjWA5bTc0tlY+/3Vb4fmNmUF17g6jhC6uvNb4PajRlfcPiW40f5nSxep1sW8K0NVBXceQzYoOZgakt6xLjHS8NOUZ0pJLyN89jnE9y3zk0p5rVFBu6A493/hH1YEEFKzk7UvhvkQa2h+ZyNnTA+lhbjoFzUGpJG X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1386; 6:yA15RvyDdhG4LysyMWfdVFEz4GOa8UIT88Y8tYWqAPEPHgfQEYfTrpVAlFSrqg0Q7H5iTPja8vpcMw72Vk8+2mqtJW4aY4YtjCVGyinCGzjKrVXoIuRhQFdSU+qxZ+We84tsVYWhpTtuGBQS5eG7g8oTdx8wiLaL6X5Gn6XuGDgTItXuKJIwKR3DUz7Q0oBqc8/p2GE3+t0WabJ5wwvbTHsX/0ZMW3yVKpVK91mYMTuS4PPXP6JpXEIA5KPrPaAYCWFv85YywHY8MxqqhSQnz89jNLePw0RJG/oZZ7kLeNPEeYWZcc5GB8u5b2aj5YUxZuT8VUs5wnF9p4JIQ5egZC3vNfTeXYsW/y4kMe9QQeOjnsbwP1rkBeGEFkGYVKeJGMWEt0lzwnBjTSJIIVpSirzSmvUQLL9mh6y6qpXgeDYuD9OO/tRH/pEqokgO2whZgKZ31hdELaD6tWy1OrMPVA==; 5:yXrkoqROKwJNGkxctylw5wFp+TSx+rgxcC8R2JhPbYf73LeYhT11XS1mYAHX1nAbjF9cqFPBmssYljYV0rqDGvedq+3KiUVpYGV4QV5MPaEJVH3Mi5b/STnB8s17MnhUeKHMSp9hzAppzFld/h29M6wQXIL49x+RWI/CLoGWJCU=; 24:R54UuF0WWlcPthRl9QeYV6HxwWN1QOKtUZ5qiR6zO9f6DjaBQqkkXfPF3a8FNAgnrTwpwPMcfJHAM/cqBziFquOAzVcn9+AxUee5oJaMqUk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1386; 7:1xqH8tyeDzZ4EETIIJVzTVaJUiQP+6ZsmuXo06GsJD6pdDAc4wXbShwOOpr8RK8H9biXOQVSkrg+oOew25E2CbHKL51IFYcFOOxveOtzzH3Do5frFNtK/MIIrzVQo5kle+f79jXqUlJGFPzWRQwsaCWpXWg9Kd+02JNEWMGBCEz4dj+pNfbYcONj/zFxfBfhxWwbs89OGyKEonGq7Aozs89XE0Ix0JIZ9js+0m6MoiUjwdjRKHpTJWmpaMCpi9O+ X-MS-Office365-Filtering-Correlation-Id: 1bca0497-73a9-4477-cd6a-08d5aaba8117 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2018 14:40:33.1908 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1bca0497-73a9-4477-cd6a-08d5aaba8117 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1386 Subject: Re: [dpdk-dev] [v2,4/6] test: add event crypto adapter auto-test 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: , X-List-Received-Date: Wed, 25 Apr 2018 14:40:37 -0000 Hi Abhinandan, On 4/24/2018 6:13 PM, Abhinandan Gujjar wrote: > Signed-off-by: Abhinandan Gujjar > --- > test/test/Makefile | 1 + > test/test/test_event_crypto_adapter.c | 915 ++++++++++++++++++++++++++++++++++ > 2 files changed, 916 insertions(+) > create mode 100644 test/test/test_event_crypto_adapter.c > > diff --git a/test/test/Makefile b/test/test/Makefile > index c9c007c9..3200daa 100644 > --- a/test/test/Makefile > +++ b/test/test/Makefile > @@ -186,6 +186,7 @@ SRCS-y += test_eventdev.c > SRCS-y += test_event_ring.c > SRCS-y += test_event_eth_rx_adapter.c > SRCS-y += test_event_timer_adapter.c > +SRCS-y += test_event_crypto_adapter.c > endif > > ifeq ($(CONFIG_RTE_LIBRTE_RAWDEV),y) > diff --git a/test/test/test_event_crypto_adapter.c b/test/test/test_event_crypto_adapter.c > new file mode 100644 > index 0000000..ea13e3b > --- /dev/null > +++ b/test/test/test_event_crypto_adapter.c > @@ -0,0 +1,915 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2018 Intel Corporation > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include "test.h" > + > +#define PKT_TRACE 0 > +#define NUM 1 > +#define DEFAULT_NUM_XFORMS (2) > +#define NUM_MBUFS (8191) > +#define MBUF_CACHE_SIZE (256) > +#define MAXIMUM_IV_LENGTH (16) > +#define DEFAULT_NUM_OPS_INFLIGHT (128) > +#define TEST_APP_PORT_ID 0 > +#define TEST_APP_EV_QUEUE_ID 0 > +#define TEST_CRYPTO_EV_QUEUE_ID 1 > +#define TEST_ADAPTER_ID 0 > +#define TEST_CDEV_ID 0 > +#define TEST_CDEV_QP_ID 0 > +#define PACKET_LENGTH 64 > +#define NB_TEST_PORTS 1 > +#define NB_TEST_QUEUES 2 > +#define CRYPTODEV_NAME_NULL_PMD crypto_null I think the supported cryptodevs should be more than just null It should be done similar to other test and example applications. > + > +#define MBUF_SIZE (sizeof(struct rte_mbuf) + \ > + RTE_PKTMBUF_HEADROOM + PACKET_LENGTH) > +#define IV_OFFSET (sizeof(struct rte_crypto_op) + \ > + sizeof(struct rte_crypto_sym_op) + \ > + DEFAULT_NUM_XFORMS * \ > + sizeof(struct rte_crypto_sym_xform)) > + > + > +static const uint8_t text_64B[] = { > + 0x05, 0x15, 0x77, 0x32, 0xc9, 0x66, 0x91, 0x50, > + 0x93, 0x9f, 0xbb, 0x4e, 0x2e, 0x5a, 0x02, 0xd0, > + 0x2d, 0x9d, 0x31, 0x5d, 0xc8, 0x9e, 0x86, 0x36, > + 0x54, 0x5c, 0x50, 0xe8, 0x75, 0x54, 0x74, 0x5e, > + 0xd5, 0xa2, 0x84, 0x21, 0x2d, 0xc5, 0xf8, 0x1c, > + 0x55, 0x1a, 0xba, 0x91, 0xce, 0xb5, 0xa3, 0x1e, > + 0x31, 0xbf, 0xe9, 0xa1, 0x97, 0x5c, 0x2b, 0xd6, > + 0x57, 0xa5, 0x9f, 0xab, 0xbd, 0xb0, 0x9b, 0x9c > +}; > + > +struct event_crypto_adapter_test_params { > + struct rte_mempool *mbuf_pool; > + struct rte_mempool *op_mpool; > + struct rte_mempool *session_mpool; > + struct rte_cryptodev_config *config; > + uint8_t crypto_event_port_id; > +}; > + > +struct rte_event response_info = { > + .queue_id = TEST_APP_EV_QUEUE_ID, > + .sched_type = RTE_SCHED_TYPE_ATOMIC, > + .flow_id = 0xAABB, I believe all fields shall be filled here. In some GCC version it will give warning. > +}; > + > +struct rte_event_crypto_request request_info = { > + .cdev_id = TEST_CDEV_ID, > + .queue_pair_id = TEST_CDEV_QP_ID > +}; > + > +static struct event_crypto_adapter_test_params params; > +static uint8_t crypto_adapter_setup_done; > +static uint32_t slcore_id; > +static int evdev; > + Regards, Akhil