From: Akhil Goyal <gakhil@marvell.com> To: Gagandeep Singh <g.singh@nxp.com>, "dev@dpdk.org" <dev@dpdk.org> Subject: RE: [EXT] [PATCH 2/8] app/test-crypto-perf: support SDAP for PDCP operations Date: Fri, 13 May 2022 09:49:56 +0000 Message-ID: <CO6PR18MB4484FDFB33A6E948E4CD6CB5D8CA9@CO6PR18MB4484.namprd18.prod.outlook.com> (raw) In-Reply-To: <20220425041423.2232034-2-g.singh@nxp.com> > 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 <g.singh@nxp.com> > --- > 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(+) Missing documentation update for the new option added. > > 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 <control/user>\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 }, Follow similar formatting as other options. > { CPERF_DOCSIS_HDR_SZ, parse_docsis_hdr_sz }, > #endif > { CPERF_CSV, parse_csv_friendly}, > -- > 2.25.1
next prev parent reply other threads:[~2022-05-13 9:50 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-25 4:14 [PATCH 1/8] app/test-crypto-perf: improve dequeue logic Gagandeep Singh 2022-04-25 4:14 ` [PATCH 2/8] app/test-crypto-perf: support SDAP for PDCP operations Gagandeep Singh 2022-05-13 9:49 ` Akhil Goyal [this message] 2022-04-25 4:14 ` [PATCH 3/8] examples/ipsec-secgw: support XCBC-MAC/DES-CBC Gagandeep Singh 2022-05-13 9:54 ` [EXT] " Akhil Goyal 2022-05-16 9:45 ` Gagandeep Singh 2022-04-25 4:14 ` [PATCH 4/8] examples/l2fwd-crypto: add signal handler for exit Gagandeep Singh 2022-04-25 4:14 ` [PATCH 5/8] test/crypto: fix pmd name for dpaa raw buffer crypto driver Gagandeep Singh 2022-04-25 4:14 ` [PATCH 6/8] test/crypto: support raw buffer APIs for PDCP Gagandeep Singh 2022-04-25 4:14 ` [PATCH 7/8] test/crypto: add external buffer test case Gagandeep Singh 2022-05-13 10:26 ` [EXT] " Akhil Goyal 2022-05-16 7:25 ` Gagandeep Singh 2022-04-25 4:14 ` [PATCH 8/8] test/crypto: add short MAC-I test vector for zuc Gagandeep Singh 2022-05-13 10:46 ` [EXT] " Akhil Goyal 2022-05-16 7:27 ` Gagandeep Singh 2022-05-13 9:46 ` [EXT] [PATCH 1/8] app/test-crypto-perf: improve dequeue logic Akhil Goyal 2022-05-16 7:14 ` Gagandeep Singh 2022-05-16 7:26 ` Anoob Joseph 2022-05-16 7:54 ` Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 0/7] Crypto related changes in sample/test apps Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 1/7] app/test-crypto-perf: support SDAP for PDCP operations Gagandeep Singh 2022-05-20 4:20 ` [PATCH v3 0/7] Crypto related changes in sample/test apps Gagandeep Singh 2022-05-20 4:20 ` [PATCH v3 1/7] app/test-crypto-perf: support SDAP for PDCP operations Gagandeep Singh 2022-05-26 13:52 ` [EXT] " Akhil Goyal 2022-05-30 4:31 ` Gagandeep Singh 2022-05-30 6:04 ` Akhil Goyal 2022-05-31 18:14 ` Akhil Goyal 2022-06-06 4:00 ` [PATCH v4] " Gagandeep Singh 2022-06-15 16:06 ` [EXT] " Akhil Goyal 2022-05-20 4:20 ` [PATCH v3 2/7] examples/ipsec-secgw: support XCBC-MAC/DES-CBC Gagandeep Singh 2022-05-26 13:54 ` [EXT] " Akhil Goyal 2022-05-20 4:21 ` [PATCH v3 3/7] examples/l2fwd-crypto: add signal handler for exit Gagandeep Singh 2022-05-26 13:55 ` [EXT] " Akhil Goyal 2022-05-20 4:21 ` [PATCH v3 4/7] test/crypto: fix PMD name for dpaa raw buffer crypto driver Gagandeep Singh 2022-05-26 13:56 ` [EXT] " Akhil Goyal 2022-05-20 4:21 ` [PATCH v3 5/7] test/crypto: support raw buffer APIs for PDCP Gagandeep Singh 2022-05-26 13:58 ` [EXT] " Akhil Goyal 2022-05-20 4:21 ` [PATCH v3 6/7] test/crypto: add short MAC-I test vector for zuc Gagandeep Singh 2022-05-26 13:59 ` [EXT] " Akhil Goyal 2022-05-20 4:21 ` [PATCH v3 7/7] doc: add missing authentication algorithm Gagandeep Singh 2022-05-26 14:00 ` [EXT] " Akhil Goyal 2022-05-17 3:38 ` [PATCH v2 2/7] examples/ipsec-secgw: support XCBC-MAC/DES-CBC Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 3/7] examples/l2fwd-crypto: add signal handler for exit Gagandeep Singh 2022-05-17 16:32 ` Stephen Hemminger 2022-05-18 4:23 ` Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 4/7] test/crypto: fix PMD name for dpaa raw buffer crypto driver Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 5/7] test/crypto: support raw buffer APIs for PDCP Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 6/7] test/crypto: add short MAC-I test vector for zuc Gagandeep Singh 2022-05-17 3:38 ` [PATCH v2 7/7] doc: add missing authentication algorithm Gagandeep Singh
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CO6PR18MB4484FDFB33A6E948E4CD6CB5D8CA9@CO6PR18MB4484.namprd18.prod.outlook.com \ --to=gakhil@marvell.com \ --cc=dev@dpdk.org \ --cc=g.singh@nxp.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
DPDK patches and discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \ dev@dpdk.org public-inbox-index dev Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.dev AGPL code for this site: git clone https://public-inbox.org/public-inbox.git