From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 665C6A00BE; Mon, 25 Apr 2022 06:15:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D2EE7427EF; Mon, 25 Apr 2022 06:15:06 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140082.outbound.protection.outlook.com [40.107.14.82]) by mails.dpdk.org (Postfix) with ESMTP id 2A021427EB for ; Mon, 25 Apr 2022 06:15:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G2HiprjqLAWVJOGTDh9UdvUTenP+zml8X9byfPBrX6npMteyLS3Pfa4KuDm3BuuySt5efvfv5ooVuu96zX+lyhPz9gsGnDEtsuKVUwwZQ8s1SNFcYa33ifyJvGngKwFDNbKF8XkTjatlRnpZu6QVsGLwjJdex5N5WF9K+PojtmhSoCyCIvlt7SDqSVGZbODlvIIyr0B8cBOuLWAXVQD7nNInkCusPSRRrExWRY81isOyXcYM1Rm40ArS61vJYkMyDLYF1jknZdEjmXez/eYXyiZm+J5BxK5xsXS2Kj65A0LzQOv2sHDPDfza8qQrd3l3ZjlXYhLIDVB/Z1sKCCcdgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9FSZr5KBQ+ewsOscBbaZwDWs3B+5VBRACbz9qEwsjnE=; b=C1V+qGKtWjB49vWfy6wu2im4rwULL7lsHLkyCzzj6CEL4zMElbgBs0rnwC8C69wAWZ6m0NVNqVhwqT6ub8gkvnsUri/MPNy0q1bci7fC72cNzZZffS+WJt0HeRZd5aDtQ3JjAYuleSgsQx5z+ARRB3vfa3W9FhvDUyEunx6+4Z/NoZgVzS+96rU269mxe6zpc9kGhf++8cHm9fsMlX6YbBL/JmzSMTVwPKqsCUsQk8sJiv1EP3AIZ8fGV1QX2VV6Ni8sJxJjqMvUPidvA98ZxC+ajkm6ccXGOaV5+ykfKKEyVphtvBPct3nyeZoECW/+kdBF7L1FvNMXsB0TaktrMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9FSZr5KBQ+ewsOscBbaZwDWs3B+5VBRACbz9qEwsjnE=; b=c50vE7G2z+A8zhVVDZPPBr21cEGdS/JGa6l8UnxpgpY608x0T8s86h14SlKew4qAEiOO5FeNMPUPgehVj28dtFKGDxMUk9FCyMo4caYfO7Nq+zHbv1PIoeJBllBKS1/ImYBbE4nl+puBjfhC1dapnu5NdvF/5qaHIG+JoeVnbIA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by PA4PR04MB9416.eurprd04.prod.outlook.com (2603:10a6:102:2ab::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Mon, 25 Apr 2022 04:15:04 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::8cf1:93b:c340:3be2%7]) with mapi id 15.20.5186.021; Mon, 25 Apr 2022 04:15:04 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH 2/8] app/test-crypto-perf: support SDAP for PDCP operations Date: Mon, 25 Apr 2022 09:44:17 +0530 Message-Id: <20220425041423.2232034-2-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425041423.2232034-1-g.singh@nxp.com> References: <20220425041423.2232034-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f4799180-7e05-4c6e-a110-08da26722cbc X-MS-TrafficTypeDiagnostic: PA4PR04MB9416:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rYQ3i4R/rHeC7WdGLRPHK4bhPCh85OmqPCVzHO14qaWH303fxRtBFjUy2LUje41NME29eqnjEJu8dei27/SLaShLU5dVt8P+B7fGYX4DNG9f52C1JFLe1Taos0d6POqsaH5x+SGfsUakf+ecd4LIVKc+eosN7u9VBYikoF8+Ycen9O48O+B5IRcvSoMrBmwZlRPM8BH73lw4NpBSFBhJa0VOBR5aw5JoSPF/MpJGjw4zrwyhlohP61Tsx+cgJAFFqM9w0KlbfuMuyQaCawj5zOsHkSwa4qh6dZd4+gX6Aa9bUKrHUYF5B06vh82DJVVaBXA60JwrWT/bOrfNvmXFQuKWHy9ZyvcDjaIdInr5HtIm7xZgVKaHqklaB8Qi1B6lO/Ff+j6C+c0vVR5iZXAF7aeDnkJtmP9y7ydRBOrhLpaihS32oXSKeKy8lI1S2aYQEXg4mG72yHZ29AU+CCA/OcCGePHEgmilmDMKIOsW8jmXdjR/iND4NLqyhzSi/5gf0YAWmTA/il8LnQxLT16tghFhTcSOL/5Aunil5P3VU1TrbtTcm4OQQk6IIR5DNfsx1Nd9+/FWsIYGmurfHyUIjnqYS6D3m3Q8n12VMjGNCJRAgFkxAO83pMglJL/0hAoF05EEcbNoqXg985B/TInPrljc+nDU8Cd1lft2DrfC8cVoKph8G80UcAOZ74Atjh9IBlRqExMDI8oTclIinuAgcg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(4326008)(66556008)(6666004)(2616005)(5660300002)(66946007)(6512007)(8936002)(26005)(2906002)(38350700002)(86362001)(1076003)(38100700002)(52116002)(508600001)(6486002)(83380400001)(66476007)(8676002)(186003)(316002)(55236004)(6506007)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zjIlxRT5PrUBWMVMzAxS8J0uQdCU+3njZaip12isem9tIaWZnkn5ZSrS/IL7?= =?us-ascii?Q?1efUt+bNyjo8VnKdH81ln62Wf7Z0/13f2rVy/KcfGgsaczo3xpYi/f1tByZz?= =?us-ascii?Q?vqGF81fyRMc74wM8dQ1JNeoCF/EJOdPV2Wov5nAKDUIXUNHoveY+7EhdQwQo?= =?us-ascii?Q?H4Opdl7ewyYaefU+J+vuyghQ8eVfpVaAxcJaFqmdXTMyXCadWNhUkxhGvk4f?= =?us-ascii?Q?keLSVvLEuwZK0wxWJTusW3x9RGJsb6XFp+YGzAsyT/y51oDki2bhXTB3efWJ?= =?us-ascii?Q?N2Bp3cZMxbU9CmQ6UhH1emRahMx1/QgCEFmpC+hk86rPsfxp5JQvc+GZGqWz?= =?us-ascii?Q?8Tpg193f0lrkl16+heuVhTEb017ebR/M+R9gYKV1hzBSlqL93s9WeeF3xMVQ?= =?us-ascii?Q?D7vVpA6DTHQi625XU81hNnuIpM2vG1VP6WA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CoFuS8Uz+PJ1TcgYUU4nJQzu6zG5+Ud2UR3e7dnC/AcL20X4Q4WQaecjP7?= =?us-ascii?Q?gVNVdH1ntDBfcS2xZKi9TV6tBkTf4f5atloTHk4DLHrsT9cMbBoJ+uc9E9d1?= =?us-ascii?Q?13um1JK+WGQX/3zb4IDSO+1D9TosPYtt/YeM7Cq/LW/Rp7thdCJIfIHsKTBm?= =?us-ascii?Q?1VEwTd+5ZGEWZXRetPJIWM7RjmMtzHi1qG8FeneeK8iOn2jnNJ+T0ektHU1a?= =?us-ascii?Q?SKcX7UKdTVnniZsT14R4tnVdPhpjOt94nIo6AwI7256KWEQZ5l9zsjy6sNd7?= =?us-ascii?Q?AVqecNEX+2OXHXYJSkiFQKkjzrpQ01lJkIejvwbwmfI3aGlMNJKGU6AL6f5c?= =?us-ascii?Q?y6Hg49qqJ1xL24vcrKuzFtClA+vLRZHWSKZ6zskPFvai63bJv+/n3u6h7OYQ?= =?us-ascii?Q?id70HSbenw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4799180-7e05-4c6e-a110-08da26722cbc X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 04:15:04.7688 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3UjlTOS9CGMt+Zof8gEj4a4T+5bnIES/nyjA1jxLQ6Kd03tD9VoYVahfsecEy0Bi X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9416 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add a command line option "--enable-sdap" to enable Service Data Adaptation Protocol. example command: ./dpdk-test-crypto-perf -c 0xc --log-level=8 -- --devtype crypto_dpaa2_sec --optype pdcp --cipher-algo aes-ctr --cipher-op encrypt --auth-algo zuc-eia3 --auth-op generate --auth-key-sz 16 --ptest throughput --total-ops 100000 --burst-sz 64 --buffer-sz 64,390,1512 --pool-sz 4096 --silent --pdcp-sn-sz 12 --pdcp-domain control --enable-sdap Signed-off-by: Gagandeep Singh --- app/test-crypto-perf/cperf_ops.c | 1 + app/test-crypto-perf/cperf_options.h | 2 ++ app/test-crypto-perf/cperf_options_parsing.c | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index 8baee12e45..67a7a0ac4f 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -860,6 +860,7 @@ cperf_create_session(struct rte_mempool *sess_mp, .hfn = options->pdcp_ses_hfn_en ? PDCP_DEFAULT_HFN : 0, .hfn_threshold = 0x70C0A, + .sdap_enabled = options->pdcp_sdap, .hfn_ovrd = !(options->pdcp_ses_hfn_en), } }, .crypto_xform = &cipher_xform diff --git a/app/test-crypto-perf/cperf_options.h b/app/test-crypto-perf/cperf_options.h index 031b238b20..fffa6a2162 100644 --- a/app/test-crypto-perf/cperf_options.h +++ b/app/test-crypto-perf/cperf_options.h @@ -13,6 +13,7 @@ #define CPERF_PTEST_TYPE ("ptest") #define CPERF_SILENT ("silent") +#define CPERF_ENABLE_SDAP ("enable-sdap") #define CPERF_POOL_SIZE ("pool-sz") #define CPERF_TOTAL_OPS ("total-ops") @@ -128,6 +129,7 @@ struct cperf_options { #ifdef RTE_LIB_SECURITY uint16_t pdcp_sn_sz; uint16_t pdcp_ses_hfn_en; + uint16_t pdcp_sdap; enum rte_security_pdcp_domain pdcp_domain; uint16_t docsis_hdr_sz; #endif diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c index 59a9dc596a..48cd1b5ba2 100644 --- a/app/test-crypto-perf/cperf_options_parsing.c +++ b/app/test-crypto-perf/cperf_options_parsing.c @@ -61,6 +61,7 @@ usage(char *progname) " --pdcp-sn-sz N: set PDCP SN size N <5/7/12/15/18>\n" " --pdcp-domain DOMAIN: set PDCP domain \n" " --pdcp-ses-hfn-en: enable session based fixed HFN\n" + " --enable-sdap: enable sdap\n" " --docsis-hdr-sz: set DOCSIS header size\n" #endif " -h: prints this help\n", @@ -535,6 +536,15 @@ parse_silent(struct cperf_options *opts, return 0; } +static int +parse_enable_sdap(struct cperf_options *opts, + const char *arg __rte_unused) +{ + opts->pdcp_sdap = 1; + + return 0; +} + static int parse_cipher_algo(struct cperf_options *opts, const char *arg) { @@ -865,6 +875,7 @@ static struct option lgopts[] = { { CPERF_PDCP_SN_SZ, required_argument, 0, 0 }, { CPERF_PDCP_DOMAIN, required_argument, 0, 0 }, { CPERF_PDCP_SES_HFN_EN, no_argument, 0, 0 }, + { CPERF_ENABLE_SDAP, no_argument, 0, 0 }, { CPERF_DOCSIS_HDR_SZ, required_argument, 0, 0 }, #endif { CPERF_CSV, no_argument, 0, 0}, @@ -978,6 +989,7 @@ cperf_opts_parse_long(int opt_idx, struct cperf_options *opts) { CPERF_PDCP_SN_SZ, parse_pdcp_sn_sz }, { CPERF_PDCP_DOMAIN, parse_pdcp_domain }, { CPERF_PDCP_SES_HFN_EN, parse_pdcp_ses_hfn_en }, + { CPERF_ENABLE_SDAP, parse_enable_sdap }, { CPERF_DOCSIS_HDR_SZ, parse_docsis_hdr_sz }, #endif { CPERF_CSV, parse_csv_friendly}, -- 2.25.1