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 1C6CAA0C55; Wed, 13 Oct 2021 21:05:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FBB041251; Wed, 13 Oct 2021 21:05:04 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70043.outbound.protection.outlook.com [40.107.7.43]) by mails.dpdk.org (Postfix) with ESMTP id 6E89341186 for ; Wed, 13 Oct 2021 21:05:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EoeTUNjQd/THDRW9KiKLmy8AX0zWECnwAIus6KCSMdz2TTGjHPbKX4jlDdlpl0JFQOH7s2MQjeSC+HUDIQmRkoeQdq8T1h/UAyhGamW6jxN3SOJylXRvC7zk0JSFRsUSmNo79oPYZCPp/wvVmaLWbCiXbCWLhnR+Mc/zZEZD0hcp1SpRGtaM6iqDIDQYMOpxHEn6FLU2kJvFvrf34PkNnGotBWz3btmLIpVuvg4WT9tKtNbLlYHDNPNF4HGiU7P7K5m6h1jeVpZuywkxregtJpMEak1gz3ByzyRb2hLlLW+7hI7jC0f4Qf75bwonIgnBj3OdKT5cnXSVudP8UP5G1g== 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=seZg6gLYWS54K0YjoQWmf8N/SqGM0mKsVkpu8FNq0ps=; b=ACNn1MJNot2T2uvipKJ8HQJCzilVSrlMP/GZ69w/e4bpmuN3hy32sKzbmHT8X8myRiPDDL4dxU9xv3IFG+CdFUoZHLNV0ZHXs+80O+ej/rT2EIlwSDX6SRtjaRUTDw6c82N3Pxzdm7V21YZcwFPJFCTFho7vCxvd79MjrsvStRcDnhYzp7C26wq3jAxkzf9qu1eCuinUIpp3ebhbUcd0hRMgVH0PanvbaP2nJlx9cwpmnJpa5WN7Nuw+hSRjb3sM7YbzB1qETIMO+9FHT8OpoK7XekmWac7ZRbztBOWsD1XzbR0ldpVfLUFW+/UA/RbaLc+N3WMjU6MvOWHwxS2NMQ== 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=seZg6gLYWS54K0YjoQWmf8N/SqGM0mKsVkpu8FNq0ps=; b=nfKb+9rkmIRBoVjbqicT1srAyNBS3spulPBumqIgW94DEWzGYVjq7d5fzSJkHDkfvkMfVERMVCaCtJi2TnbVbFqb6ebdSXZHVl1fOHEIzgbbm8SLd8kaOMu1E70cOs+WDCNNomY5JVc/UwU+yRT8mEmHSW92mljkdrYUkLYLnu0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8870.eurprd04.prod.outlook.com (2603:10a6:10:2e1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Wed, 13 Oct 2021 19:05:01 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%3]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 19:05:01 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: konstantin.ananyev@intel.com, roy.fan.zhang@intel.com Date: Thu, 14 Oct 2021 00:30:18 +0530 Message-Id: <20211013190032.2308-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211013190032.2308-1-hemant.agrawal@nxp.com> References: <20210907075957.28848-1-hemant.agrawal@nxp.com> <20211013190032.2308-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR0302CA0011.apcprd03.prod.outlook.com (2603:1096:3:2::21) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR0302CA0011.apcprd03.prod.outlook.com (2603:1096:3:2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.4 via Frontend Transport; Wed, 13 Oct 2021 19:04:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e5876b0-c210-483b-52fd-08d98e7c5b87 X-MS-TrafficTypeDiagnostic: DU2PR04MB8870: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:260; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U+Z8L1tX0E7pwtq0fx1vmklQwS6GxF+pBBcEkEE5RmMPKoyADTd65t+XKpF1Qy6kk0FoeFQkFc7yE+tr5wk3t71FPGHP1RSGWMMvY3QdPIzfibw67Nc68QsIN9Y3oJcT3W4kQqIoaMjoxQGU4Ru7A2JCcaEN+YOK49iLvVSdgADoRhp+Es0XsKbYH3TeuzZEq1bsSiRHBdUrdBhozluSf+hy7fquwuJJ4DTn1qpGONR4eWq3/wH4wudYR9n3ODbg3sSmR0wZYedg9GH5igpa9OqrDLo05KjXb1yGwE5/V+gWmh+EJbgk7tADMXyDzRorM6tRVSnFC6yQ1zENy0bSY+n+6Ni+Hl+bxR2VTk+4PvOMedo4+FWdiksWjoAggddL8+tHE3hhJ2uGl3WVuuXsTzsJwHHghZGdFY+G8lZ1CF3OX0jxEyZ/aQKvOzy865Z7fEvFgjlvdWP5oCn/GcWlL/np2psZ5qwcgovJwg5+xBXbWkHZJ61N3R5ah6j2l0isyr9mntu5Znti/QMKNvw+ry2lC9uNVM23hk7o8liEUtz5uUVgiZSF6w+8tXMmJFvg1yTe9et0KLBJQ5f+KWoTdyzu9VJjMztZ30NcxI2FrJuSaMH1ZA1iCsMQ56/nDRAG44OhXXUklib1IrjnmbNJ0oBdTr65XZEATiQ1XftQgQa62zy0qEiTqgOIXC/MWxOpAOwZTcBiR6EUl7niEUuvyA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66946007)(66556008)(316002)(6666004)(6506007)(36756003)(6512007)(2906002)(8936002)(1076003)(52116002)(186003)(4326008)(956004)(66476007)(2616005)(5660300002)(83380400001)(38100700002)(44832011)(38350700002)(8676002)(26005)(6486002)(508600001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?JwTiS/hgqlHKwP2MYG86+fjQ611bFcow8qjZqVNe6HsjtOBkT70JgyMPkkU9?= =?us-ascii?Q?/S+qUYiBBBizB9+eE7goVLa9A+vIOcx5sqHmTdM5dH87ll+Q9BCSoE1V6h7A?= =?us-ascii?Q?ryMj+7JhtY4qJqZy8HoFvnh7G9rue+AR9AX6WxzsRjpSFLCaISum0Jl9qIzx?= =?us-ascii?Q?oQVJhuHhv9XLAFO+c6L3BmxW56Wnr5O/9LX+yBhURBZ2fU8qlOQycw0wnwAn?= =?us-ascii?Q?cMcVuGdG5sEK6GRtHksXuDxdUbtIpobeSenV6Dz+PeOlq4sueJ3g0ZG2UCep?= =?us-ascii?Q?GbE35cfoCSNukUApEGx3Ipp40LdgTylIV3TAYcUwJXej8N/sYRp2j013DDlv?= =?us-ascii?Q?9QkH/342/kW+Y9fj+gAE5vJvlIqkQp3gRuJ1rutpImMGxPUitOJmtg1/dXrb?= =?us-ascii?Q?BmmfWuOhRP/JFq+UjvWPkYY+APotOrlwFQC4jsrft8kooei8MU3or91tUeKP?= =?us-ascii?Q?A9JWUSdONmRV9gjD8flXBuwfPoX0T9UYdSW+6PHfF2BpTNhRegWRS9cThw4C?= =?us-ascii?Q?5R4YVcCDgXaoaYIrhWDx5zv/xBoMT4qL8c8jPvtVJlB/jXrFyNmjakz/DSoB?= =?us-ascii?Q?GIaSHUu/rP5NmMj/nAYft+tvAr/cDXJvmHbdGyyol5nO2Vm3VCEyblRazuR5?= =?us-ascii?Q?ZzbgMldhyoc/lAk914p/j6r+HOxDTtrX/RwS4BxtBnzhDXlyCFwNBCnFHkm4?= =?us-ascii?Q?NUmk4AX6YLVIuP0+1txkgkADnxjX71ZU0Mw1weq7kA5haOHbuQL50ltOUtj9?= =?us-ascii?Q?nPhdr7XKW1ZBAgDw7qFLip6QLYLEi5TGwNrLJ9TUKIIWvMna4fZqpuaA/k6V?= =?us-ascii?Q?HE/jXy4IG9sm7iGqg2YYMdMNfRY7e+byMXB0kDMmYiv01h+YajaEaIj1032B?= =?us-ascii?Q?nwZNtEI6eId6ZDPy04pJVYbvaXjzYPH2WJ8GQJjaos76o9a6qmKDZhY2J1Qn?= =?us-ascii?Q?P0HhAXpQvCnZfQHBTx9rp0dfvGln0eZnpI+XlomIs9KcKAjvzHLybAzH8dWq?= =?us-ascii?Q?LPUNll1HE/mtoGee+9GWQEbVv2woNukQgL47ZKseSf3GWKG20RQ/oPD0Kd++?= =?us-ascii?Q?/pUCgglfPB73eN7rflvF8HForixYmlrIxVfOD7zaRl2S6tRCKzbopnAxVSjP?= =?us-ascii?Q?asTmxMHS3YeHjq0DkEpDbFWMtfFvfbDjvhlycb8K7ov1+bnZboKamO2L8FOc?= =?us-ascii?Q?PrGimhiU4yW3dsr62DKUJQEVR7b4HzTs95kKUy8IVp/RMICTs4v8+Xf5GujI?= =?us-ascii?Q?OAwmD6y0OrQF4gYO3DilJw4nsq2WvAaIrbyNK42jivU3FuSIw4LfpHqaLekD?= =?us-ascii?Q?ttRLhQb+IXK+dz3nRfJkAz+t?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e5876b0-c210-483b-52fd-08d98e7c5b87 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2021 19:05:01.4619 (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: 8yrmODKPKdSIyf2FJZUxQG5ZcxzpZGQZQrgLZCmk3m4k4OeTdSytoeN7oMG5K/y8wIISzRGCgG4tGov1ZM4HvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8870 Subject: [dpdk-dev] [PATCH v4 01/15] crypto: change sgl to src_sgl in vector 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 Sender: "dev" This patch renames the sgl to src_sgl to help differentiating between source and destination sgl. Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal Acked-by: Konstantin Ananyev --- app/test/test_cryptodev.c | 6 ++--- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 12 +++++----- drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 6 ++--- drivers/crypto/qat/qat_sym_hw_dp.c | 27 +++++++++++++--------- lib/cryptodev/rte_crypto_sym.h | 2 +- lib/ipsec/misc.h | 4 ++-- 6 files changed, 31 insertions(+), 26 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 65b64e1af0..4778dafbe5 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -232,7 +232,7 @@ process_sym_raw_dp_op(uint8_t dev_id, uint16_t qp_id, digest.va = NULL; sgl.vec = data_vec; vec.num = 1; - vec.sgl = &sgl; + vec.src_sgl = &sgl; vec.iv = &cipher_iv; vec.digest = &digest; vec.aad = &aad_auth_iv; @@ -396,7 +396,7 @@ process_cpu_aead_op(uint8_t dev_id, struct rte_crypto_op *op) sgl.vec = vec; sgl.num = n; - symvec.sgl = &sgl; + symvec.src_sgl = &sgl; symvec.iv = &iv_ptr; symvec.digest = &digest_ptr; symvec.aad = &aad_ptr; @@ -442,7 +442,7 @@ process_cpu_crypt_auth_op(uint8_t dev_id, struct rte_crypto_op *op) sgl.vec = vec; sgl.num = n; - symvec.sgl = &sgl; + symvec.src_sgl = &sgl; symvec.iv = &iv_ptr; symvec.digest = &digest_ptr; symvec.status = &st; diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c index 330aad8157..d0368828e9 100644 --- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c +++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c @@ -535,7 +535,7 @@ aesni_gcm_sgl_encrypt(struct aesni_gcm_session *s, processed = 0; for (i = 0; i < vec->num; ++i) { aesni_gcm_process_gcm_sgl_op(s, gdata_ctx, - &vec->sgl[i], vec->iv[i].va, + &vec->src_sgl[i], vec->iv[i].va, vec->aad[i].va); vec->status[i] = aesni_gcm_sgl_op_finalize_encryption(s, gdata_ctx, vec->digest[i].va); @@ -554,7 +554,7 @@ aesni_gcm_sgl_decrypt(struct aesni_gcm_session *s, processed = 0; for (i = 0; i < vec->num; ++i) { aesni_gcm_process_gcm_sgl_op(s, gdata_ctx, - &vec->sgl[i], vec->iv[i].va, + &vec->src_sgl[i], vec->iv[i].va, vec->aad[i].va); vec->status[i] = aesni_gcm_sgl_op_finalize_decryption(s, gdata_ctx, vec->digest[i].va); @@ -572,13 +572,13 @@ aesni_gmac_sgl_generate(struct aesni_gcm_session *s, processed = 0; for (i = 0; i < vec->num; ++i) { - if (vec->sgl[i].num != 1) { + if (vec->src_sgl[i].num != 1) { vec->status[i] = ENOTSUP; continue; } aesni_gcm_process_gmac_sgl_op(s, gdata_ctx, - &vec->sgl[i], vec->iv[i].va); + &vec->src_sgl[i], vec->iv[i].va); vec->status[i] = aesni_gcm_sgl_op_finalize_encryption(s, gdata_ctx, vec->digest[i].va); processed += (vec->status[i] == 0); @@ -595,13 +595,13 @@ aesni_gmac_sgl_verify(struct aesni_gcm_session *s, processed = 0; for (i = 0; i < vec->num; ++i) { - if (vec->sgl[i].num != 1) { + if (vec->src_sgl[i].num != 1) { vec->status[i] = ENOTSUP; continue; } aesni_gcm_process_gmac_sgl_op(s, gdata_ctx, - &vec->sgl[i], vec->iv[i].va); + &vec->src_sgl[i], vec->iv[i].va); vec->status[i] = aesni_gcm_sgl_op_finalize_decryption(s, gdata_ctx, vec->digest[i].va); processed += (vec->status[i] == 0); diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index 60963a8208..2419adc699 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -2002,14 +2002,14 @@ aesni_mb_cpu_crypto_process_bulk(struct rte_cryptodev *dev, for (i = 0, j = 0, k = 0; i != vec->num; i++) { - ret = check_crypto_sgl(sofs, vec->sgl + i); + ret = check_crypto_sgl(sofs, vec->src_sgl + i); if (ret != 0) { vec->status[i] = ret; continue; } - buf = vec->sgl[i].vec[0].base; - len = vec->sgl[i].vec[0].len; + buf = vec->src_sgl[i].vec[0].base; + len = vec->src_sgl[i].vec[0].len; job = IMB_GET_NEXT_JOB(mb_mgr); if (job == NULL) { diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c index 36d11e0dc9..12825e448b 100644 --- a/drivers/crypto/qat/qat_sym_hw_dp.c +++ b/drivers/crypto/qat/qat_sym_hw_dp.c @@ -181,8 +181,9 @@ qat_sym_dp_enqueue_cipher_jobs(void *qp_data, uint8_t *drv_ctx, (uint8_t *)tx_queue->base_addr + tail); rte_mov128((uint8_t *)req, (const uint8_t *)&(ctx->fw_req)); - data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, - vec->sgl[i].num); + data_len = qat_sym_dp_parse_data_vec(qp, req, + vec->src_sgl[i].vec, + vec->src_sgl[i].num); if (unlikely(data_len < 0)) break; req->comn_mid.opaque_data = (uint64_t)(uintptr_t)user_data[i]; @@ -302,8 +303,9 @@ qat_sym_dp_enqueue_auth_jobs(void *qp_data, uint8_t *drv_ctx, (uint8_t *)tx_queue->base_addr + tail); rte_mov128((uint8_t *)req, (const uint8_t *)&(ctx->fw_req)); - data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, - vec->sgl[i].num); + data_len = qat_sym_dp_parse_data_vec(qp, req, + vec->src_sgl[i].vec, + vec->src_sgl[i].num); if (unlikely(data_len < 0)) break; req->comn_mid.opaque_data = (uint64_t)(uintptr_t)user_data[i]; @@ -484,14 +486,16 @@ qat_sym_dp_enqueue_chain_jobs(void *qp_data, uint8_t *drv_ctx, (uint8_t *)tx_queue->base_addr + tail); rte_mov128((uint8_t *)req, (const uint8_t *)&(ctx->fw_req)); - data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, - vec->sgl[i].num); + data_len = qat_sym_dp_parse_data_vec(qp, req, + vec->src_sgl[i].vec, + vec->src_sgl[i].num); if (unlikely(data_len < 0)) break; req->comn_mid.opaque_data = (uint64_t)(uintptr_t)user_data[i]; - if (unlikely(enqueue_one_chain_job(ctx, req, vec->sgl[i].vec, - vec->sgl[i].num, &vec->iv[i], &vec->digest[i], - &vec->auth_iv[i], ofs, (uint32_t)data_len))) + if (unlikely(enqueue_one_chain_job(ctx, req, + vec->src_sgl[i].vec, vec->src_sgl[i].num, + &vec->iv[i], &vec->digest[i], + &vec->auth_iv[i], ofs, (uint32_t)data_len))) break; tail = (tail + tx_queue->msg_size) & tx_queue->modulo_mask; @@ -688,8 +692,9 @@ qat_sym_dp_enqueue_aead_jobs(void *qp_data, uint8_t *drv_ctx, (uint8_t *)tx_queue->base_addr + tail); rte_mov128((uint8_t *)req, (const uint8_t *)&(ctx->fw_req)); - data_len = qat_sym_dp_parse_data_vec(qp, req, vec->sgl[i].vec, - vec->sgl[i].num); + data_len = qat_sym_dp_parse_data_vec(qp, req, + vec->src_sgl[i].vec, + vec->src_sgl[i].num); if (unlikely(data_len < 0)) break; req->comn_mid.opaque_data = (uint64_t)(uintptr_t)user_data[i]; diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index 58c0724743..dcc0bd5933 100644 --- a/lib/cryptodev/rte_crypto_sym.h +++ b/lib/cryptodev/rte_crypto_sym.h @@ -69,7 +69,7 @@ struct rte_crypto_sym_vec { /** number of operations to perform */ uint32_t num; /** array of SGL vectors */ - struct rte_crypto_sgl *sgl; + struct rte_crypto_sgl *src_sgl; /** array of pointers to cipher IV */ struct rte_crypto_va_iova_ptr *iv; /** array of pointers to digest */ diff --git a/lib/ipsec/misc.h b/lib/ipsec/misc.h index 79b9a20762..58ff538141 100644 --- a/lib/ipsec/misc.h +++ b/lib/ipsec/misc.h @@ -136,7 +136,7 @@ cpu_crypto_bulk(const struct rte_ipsec_session *ss, /* not enough space in vec[] to hold all segments */ if (vcnt < 0) { /* fill the request structure */ - symvec.sgl = &vecpkt[j]; + symvec.src_sgl = &vecpkt[j]; symvec.iv = &iv[j]; symvec.digest = &dgst[j]; symvec.aad = &aad[j]; @@ -160,7 +160,7 @@ cpu_crypto_bulk(const struct rte_ipsec_session *ss, } /* fill the request structure */ - symvec.sgl = &vecpkt[j]; + symvec.src_sgl = &vecpkt[j]; symvec.iv = &iv[j]; symvec.aad = &aad[j]; symvec.digest = &dgst[j]; -- 2.17.1