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 C1D7BA0503; Fri, 20 May 2022 06:21:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2937F427EB; Fri, 20 May 2022 06:21:28 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) by mails.dpdk.org (Postfix) with ESMTP id 2AA4C40156 for ; Fri, 20 May 2022 06:21:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PyoSwngYsx0V/kVtgzwdYIithtm+uT9Yke7dkKFOZPQFMw0+SdGfzqgOZ+dKR0UW4/Wv9Y8Lcr1VnW1RJ/aVRGTVF++t8BqYBi8nVISVCb5IBBfPIfthHna8HljbvOYpQ5rE4+42c8vy2tZ5CemrnNCuWcKIRR6VP/GQ8k12gyvI4l1O/05bKxkQQ2btQ+JaG9W1NrduSz0yX2v/AVmJvizk+GOMx1HRp/puFq4aQf8HT7iNtIzojBaEYUAO+rU0mKagkW1BD3HuIu/ZU0a2MIOLOyCfcyXty/qtJT2RaD6WcTdfKF/xH9U+WSEcSK3sn3pJnOnInVyyiDXmsGDcwg== 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=O4S5GUAkZK1l0/V5FY1IjVoC3ABpcw7SPSv22BprIQY=; b=glF7IibwnH7JuShKsbjpvrIecRZKyIpB9JX69KJF3n4pkzM/Jju3pm7MJYWWA4n/Uu2vskTsTKiS9pfAF2j6+uhQt/p3TFhzyZeiBdVlidXjq725oFueEtmftRd1yg/UsojFXAQXJWLlIpI5hnyrI1phrJhNrnhUuPSz4BZ5evCIze1qSg48iC7vjwZbOkE4tMPizNIS+UrO5Jzhf0eVHgE1kCoBdplhtHOJXWwOHmpwUCcnZGDTA2xNjp/jFrXgw6EVSGwwz8qDXTmem0t7yDZGxJSibyvwvlezT7FkIuI6nuit/8pDr+GpITe1Rup/d+LJx/ttHS4wRvqX9LdhFA== 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=O4S5GUAkZK1l0/V5FY1IjVoC3ABpcw7SPSv22BprIQY=; b=Jcufy8POM6vItfLXKuPInSa37fT/GSKx10MoHHguTsndI4kOe8xWMqsVwoFxvDj8ZHFeJadzPIZGBABCbe9O39hc+6puy8x3hUT0KeE4xr/o3ney4TsviLjqNz4U3V/pmKBZtHxOVCxwibZR03TPYZ5o+k4A5SlODQkuefYQbc8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8194.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::7) by GV1PR04MB9149.eurprd04.prod.outlook.com (2603:10a6:150:24::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Fri, 20 May 2022 04:21:24 +0000 Received: from AM9PR04MB8194.eurprd04.prod.outlook.com ([fe80::c1b2:4c14:c10a:3dde]) by AM9PR04MB8194.eurprd04.prod.outlook.com ([fe80::c1b2:4c14:c10a:3dde%8]) with mapi id 15.20.5273.017; Fri, 20 May 2022 04:21:24 +0000 From: Gagandeep Singh To: gakhil@marvell.com, dev@dpdk.org Cc: Gagandeep Singh Subject: [PATCH v3 1/7] app/test-crypto-perf: support SDAP for PDCP operations Date: Fri, 20 May 2022 09:50:58 +0530 Message-Id: <20220520042104.3784908-2-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520042104.3784908-1-g.singh@nxp.com> References: <20220517033858.40394-2-g.singh@nxp.com> <20220520042104.3784908-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0005.apcprd04.prod.outlook.com (2603:1096:4:197::16) To AM9PR04MB8194.eurprd04.prod.outlook.com (2603:10a6:20b:3e6::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a51a52e-ea0c-4abd-ff74-08da3a183397 X-MS-TrafficTypeDiagnostic: GV1PR04MB9149: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: MSC90SE0MGmkb1Acq2j1wSLSLfBubuIXSqd11Xu0oZGRClJl2xN09MGX8mrNDFqX3NCjZfn3RCOu0l2Ahgqiw9LBRr+/f8lXqSlseFWwIJ1heVw/WsctRISAsoia6TVvA1W+q8asAmrjg6IB/xtSOH/8ckvkLvnaTUUJHq0S2ZpjGK+r4jqEIprcI8xIUCaFj+r6asjoBKhgVxATITbESukr/4JZ+yNLMVVOAOLISpzbUZLohy4jVVOfeMdKvp9fNbBCu33iYgfVZb0KTKVnwA5FRrOkHDcbPDDbeHSaZ5SKZQDxxP9vKI95e/it34ZNSRSvM2kOjVTfU92YHavTy6C+ZFCXv2dFuCOpqzgo55o1S6UDRNY0ooY/oz38tb/3hdvZBbKgv6df6CHnpcMyWfuZwUc5ly5CI7j9JsKMhvlafdgpdo9WHRJKkKaxIM9UyoDYAM9GKuDlSAmUc+3Z1MjuSVVWV4qB8KBkSFG9Spv4mriixI56tc5BNWX3qwVVGqBe+EbewO2wcU6bwShUz2YtfxTDiR9KbFMWmJks/nW0u2XOOpGTAz2p7tx9raWLaMlj+7q7QwaIoRLSTO/BWlvc0vSgYrUr+iPb1Chdyi2T6fg0BfvoG+S1MDE3w0/mP3BDnv/ftrT7I1xVJ3tt6GiAmBd6foCcvljro7/PTJoSmHRxbTx1wp+66kqE8DnPD5bB7bRYxmr2X3JC98Useg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR04MB8194.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(38350700002)(66946007)(2906002)(55236004)(6666004)(36756003)(508600001)(38100700002)(8676002)(66556008)(6486002)(6506007)(1076003)(8936002)(26005)(5660300002)(2616005)(316002)(66476007)(52116002)(4326008)(86362001)(83380400001)(186003)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SqIC1fqK4Xf3FOaEAGv7BunvikPBxqHQd8pmMkq+A+g1SGhBA7a9mSs0wo2v?= =?us-ascii?Q?S4U+W7fVyk425R7fZvp36snOcMczdBS7Ne5L2KvKwSzM9WsysIo2pPP4PTgz?= =?us-ascii?Q?m2EzRLn13n3+GNeOmossz5HmNEh8r77ivFwRGQRmLK3q5htGQCz3jyjD1mDV?= =?us-ascii?Q?XIQajvN2VB+WGkfctBOiw6IxjlWH0xeTWt63uwoAPPhR1Ju0VcEqe89gU3qc?= =?us-ascii?Q?KLjKMSLz2wFCyOfXqK5Wx1Bh2h339v9naldLGLCBbz6MQKcGVApM8BnlzR//?= =?us-ascii?Q?ZLdeKpuV46nRvwn0umg4wMgzcblA7/vqUQrXfM4fr42/5bNfJKzykAZHdg7M?= =?us-ascii?Q?EhDVsRm0ZF5zu0AlEAig3ldZ5HX/Q5eu1XnybhwH9tSZkQr4b4JHZELFy9GY?= =?us-ascii?Q?F7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FvWppkJoKWBXa/eYgdi?= =?us-ascii?Q?nDS3WBSVqdbQmpxtEcUCD8dakCuZwcW2EHt020k9pU0HXfdEXSH4h9xilFyy?= =?us-ascii?Q?cS4+zkXwEbfW2N1PHkMcdR8iSUkGwucLC4fJic0LbnM1UDZUIhFr0Sj9FE9K?= =?us-ascii?Q?MxqA7HZqpW+D1+VyPNL10Fqy9kFQ4CxtbTdIq4a/Ocyq/rm+JEgyBs+/3ByJ?= =?us-ascii?Q?V8GKrcCLrXALMM9JAMMhJPfx/B1yPil05AOn5+7uxxKkFMVjd3jjqLrYiiJ4?= =?us-ascii?Q?PymnyvuetSI0k+EaZhHdiW01amt4SDAgMiX4LVjSujPZiV2UJ9OXzLivijqH?= =?us-ascii?Q?ixWGFCObRMX46c4PJEfUgQttsVBMnswKdklJDRAU7J5cYCpw3xTDhZ+iy6hE?= =?us-ascii?Q?QwZ/2AmPLVy63FBVQYGi7Kqpr4p1NdCF5GrVxTIbEb+G9BtfVr5btwOgKdkb?= =?us-ascii?Q?YXsadqPaVg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a51a52e-ea0c-4abd-ff74-08da3a183397 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8194.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2022 04:21:24.8072 (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: ZGU/AewI8JyLs+Y2bKZ54tWMGl0c1itjnIZrdEEU90iaTG8c+yuSvJAK0zL0VlIe X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9149 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 ++++++++++++ doc/guides/tools/cryptoperf.rst | 4 ++++ 4 files changed, 19 insertions(+) diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index cbefce8d6c..4295656a0b 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -861,6 +861,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 09caefde22..613d6d31e2 100644 --- a/app/test-crypto-perf/cperf_options.h +++ b/app/test-crypto-perf/cperf_options.h @@ -14,6 +14,7 @@ #define CPERF_PTEST_TYPE ("ptest") #define CPERF_MODEX_LEN ("modex-len") #define CPERF_SILENT ("silent") +#define CPERF_ENABLE_SDAP ("enable-sdap") #define CPERF_POOL_SIZE ("pool-sz") #define CPERF_TOTAL_OPS ("total-ops") @@ -129,6 +130,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 09c98121c8..28680347f1 100644 --- a/app/test-crypto-perf/cperf_options_parsing.c +++ b/app/test-crypto-perf/cperf_options_parsing.c @@ -64,6 +64,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", @@ -548,6 +549,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) { @@ -879,6 +889,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}, @@ -994,6 +1005,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}, diff --git a/doc/guides/tools/cryptoperf.rst b/doc/guides/tools/cryptoperf.rst index cf3b147213..c77e253417 100644 --- a/doc/guides/tools/cryptoperf.rst +++ b/doc/guides/tools/cryptoperf.rst @@ -332,6 +332,10 @@ The following are the application command-line options: Enable fixed session based HFN instead of per packet HFN. +* ``--enable-sdap`` + + Enable Service Data Adaptation Protocol. + * ``--modex-len `` Set modex length for asymmetric crypto perf test. -- 2.25.1