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 C639AA0547; Sun, 17 Oct 2021 18:21:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F6E640E01; Sun, 17 Oct 2021 18:21:28 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by mails.dpdk.org (Postfix) with ESMTP id E84114003C for ; Sun, 17 Oct 2021 18:21:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MDgLq6pArWrzllK/d9YeBpfxmKW4ipMNQKajj72P743Boypt5Iw3n3fNB6X8b7iG1+VO3bC0Xgn/Bp7yRRqkFwX00YygF/IADJIoG+HumWJ48sHmEvK5MlJiS5KihIMwP5seAcB7f1d/uPEQ/qRfPiUQZ+LqLCLoyLjC60RuUKwNkuMTcGuCdOyyYS70P8d74yk2GmHPhw8LsrW4EiRdQBErs3WJB9U6TLAKBPT92SkddMnW4HK5oHSA8HItn1blIbjPcbPjW8SkycUSIcD2icXNVsSgOKaC7x+Be3WDs84UrxrxWKcIQ4bmajCDVIfoftaBYws5fSzhv2uRqK/PCg== 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=D6DI7YxdX6ph5CWGyhZgGIPfhRE7S+giBsnVsBfxDNk=; b=ULDh/S2V100IeU5cT3LRdDnFu0FaegHDrnSPdTPVSH4zC/POVXa/CVqVUzaS4r5GTbXygxLaklLzCwBua1RUC4UZHGlaY+cXHpFgLHSQ6dZz5PRXUhwDHpV8ovDQxUczNvqQ9BBRd31m5Sv0HPaIzdxgVlP6gg1L1GjeIA3sy5moyLgqnSmZMDXbEa6DoS0Niv4g9BvjcG/IQ3szR7EuKksRUIiUfUhwNLzHldk2qqGa9aPEjb52ypIPd72sCaJAlSqP8HBfQ/GeGikt7QefZMSOEXck0uaRykVM+yV182EhUiKxAaWfuCROKCSy6eHkGPjSIEJRUoFQO7Hh9lBlcg== 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=D6DI7YxdX6ph5CWGyhZgGIPfhRE7S+giBsnVsBfxDNk=; b=dMNPiP5y9HHe5X4FfNBLylaj9zaoQ+t6RtMkgKz5HZ5wW/PGl688COcjOqeFDfnd2Er5Xp2cyvPGuiFGLgp+NJGj7sGE8kandny3tB4k9mNZx37iIDwDgSExqzOMno0B2FNtF6WND3Cy05gcTbDySWJI5naW/UsGi4bnHcSTFjQ= 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 DU2PR04MB8615.eurprd04.prod.outlook.com (2603:10a6:10:2da::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Sun, 17 Oct 2021 16:21:25 +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.4608.018; Sun, 17 Oct 2021 16:21:25 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: konstantin.ananyev@intel.com, roy.fan.zhang@intel.com Date: Sun, 17 Oct 2021 21:46:37 +0530 Message-Id: <20211017161651.9220-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211017161651.9220-1-hemant.agrawal@nxp.com> References: <20211013190032.2308-1-hemant.agrawal@nxp.com> <20211017161651.9220-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0053.apcprd01.prod.exchangelabs.com (2603:1096:4:193::7) 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 SI2PR01CA0053.apcprd01.prod.exchangelabs.com (2603:1096:4:193::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Sun, 17 Oct 2021 16:21:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e038a2a1-8a5a-4869-2089-08d9918a2a30 X-MS-TrafficTypeDiagnostic: DU2PR04MB8615: 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: Xo+1BKdmQ1EPHgtwszNLVDblcBN8lAQ4rQ+pTyqWUFg3TBUmpCHp21Xj2SG/WX19DRXG+D8Fk3JWUKL9ecyX312yjX5WRT5K8pHCm//youm34QmRRcnnK9rFsdUB3HzBnfMaJHaexwtO2A8dELAawRremtVEX7Uyp/zbjj3A5xAV0dQ8tvghs0+4xyAxw4Q+J+Isv63fFXnW5IY4z6Y0h4PrAbFoTo8CZT9zQK9HdSNwubNjS13PoKl48CeU7qoIneOUOQDpcWpfI/0Eo93saRbEJP/neZxy4JdJEuxX0BhHjmx1/h1W1wyChSaY4kmmBKztDnjDtL/kFDXLnrwBvy5M1y6LxHpB6SbrrS68IqkVb6zgNOWJ5+px0IQBK5S1aQfu83MOxM3+86AmuNRbm2VtoHX6a7SUrEOegyS+F7K1iINk2dEHQBzk8v4dXPhnL+Hm2k12JJiz5k/mouSbYpy4KAx7ZtxcyanT/PZMZWATnf80HT9dnYZ3ELZLABm/lXQqITFcI+atUtpepEpcxtm9m8XTuBnQYH76dvFaSubJwlxU4ONeXwgzpUIVuexiuwTurzAGuBfqop/1ErG1mBAhz2o9GvghJAe9MqwzJ2P7wgOtxPbh2PRiCRZRRRLzubIvaaPFaQIe6ljh366JL4QFnc6Y0y35YlPjeau6PePI62xGZkv7Ugg4xfHQdj7V6uC+k44g5pCpsLjP4Uz/0w== 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)(6486002)(66476007)(8936002)(66556008)(66946007)(86362001)(52116002)(36756003)(5660300002)(38350700002)(8676002)(38100700002)(508600001)(6506007)(26005)(44832011)(4326008)(6512007)(2616005)(83380400001)(6666004)(1076003)(2906002)(316002)(186003)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tUmy5dLC1XbrtbGR4IpK30+36EDmNrovNDQUDJbykkt7bvIMBMCDmAJCYsRA?= =?us-ascii?Q?djTbzgxN9an6HpSrHs1kVydbZcExEu/CG2bpu+qliFs+RCC/EYIrXu+RJUPn?= =?us-ascii?Q?OSNx9rQbDkTAd16aRCMUDSF47Cugs3plukYGtIdhmwpz0H10UKHgZIJNPuK9?= =?us-ascii?Q?rP2J2m61CxztXrtyqxnj8UDnmgJpl+IJo9G7X/jbTfztqBNGGeeNRhGgnF7C?= =?us-ascii?Q?LiFhYOj5dH9USDQk2CjozjUoSzcM0z+z1jWUzqEalG6f2fB5doMo+BazADB0?= =?us-ascii?Q?Oiriwn7D4fqFDB27ghl6soXD8ucjsi9NEG7wfInt6hbQU66er0e3A9ensR48?= =?us-ascii?Q?xfkbRG9naqZ7oJ2AhIy1CX6O1XhCTGKzbUcqVg6zPtfTkjHqSI+6fRMkwk/r?= =?us-ascii?Q?Rjb8VOFdzcMKJ48WKrZmYGpyHTBv3cxR/IP7FzHtiB32yJGbqtHPdJgRAhr5?= =?us-ascii?Q?1ZGQQiO4QlUQPAtpVuKX2j+nS2X1+3W/Wg3Fse+4/1OPW8g8faAhzN9g1kyS?= =?us-ascii?Q?tH1ucQCJW93lrR7jisenZK0qJKdgJjyALqDZL/SPkrX0xGa5JA/GJFwQPv0u?= =?us-ascii?Q?fxM78fAERL+0q5fvuUcEmcV4wIu9ml3pARZP9t4cZtbTHYqdyd2GMYf83FrJ?= =?us-ascii?Q?t6B52yeCB+XvYiW+8LCae+Cd5Zd/7ywvNsD2Z7xXed11P7yyjaNeRvzrFnxD?= =?us-ascii?Q?ba02tGv97ESgnGQicldB0FIB/SObLHQLP0eydKNQOzPPxpQLdlY2ef4m5l4H?= =?us-ascii?Q?U8YbZ1AZBO1DP21tRnulratRQeryXjRv56AcX2GSehu47uQAMFsQUl+0MA+I?= =?us-ascii?Q?sTWDkRwcZRYOXUFRUEL4qjfmGwXAufYCuA3amcMXuTQSzZ2qlacYMvH2OB6L?= =?us-ascii?Q?rEHvcyM0/47lDfZ55zXpcFK6QTs4c6W/77LOzWbHs+NkKBQP8HLSuM+8vNl1?= =?us-ascii?Q?0z8mY0SryMgIB7EwcTT+BNwKDJ8FSVG0Q3n2kzg7mB3INPGNbFQP/k79RFSq?= =?us-ascii?Q?Ab1FlwuCfTXANPej8f68UfAptASc65CTVh4JDZKpgH1qf2I8un8bzsUS1qLr?= =?us-ascii?Q?UWpOt1B4EXO8707YKUinQ8DKh6nQD79uWm1LMgmnYVmFEAdgOBkza3iDnUmp?= =?us-ascii?Q?MzKT0hdMt+YLWfFLVGvboWe54C83+ZUEGj6K7OwMD4rvgEMHyTKHZN7zLQ7b?= =?us-ascii?Q?A2DyVuYG2cbUHdVBa/IA8hRnvEXmXA+Jn93bwmD1L6Q6+gdcXewStAWuxM3e?= =?us-ascii?Q?kU8xuyz4uxCCPOyQy07Vn+fQj2AyrjUrWZT5J3VKrLHoHP9foqawhuhnkO14?= =?us-ascii?Q?qGPki6ylgsNoomKKe/fCYdLH?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e038a2a1-8a5a-4869-2089-08d9918a2a30 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2021 16:21:25.0759 (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: RiZI5b4R5ddhixO0ugTp/QPJpbdQpALYDW4Gz6RXEZ314EMUwyUGST3kmj/0KccJaMHfk5nXSiFJ3jpZSS0HvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8615 Subject: [dpdk-dev] [PATCH v5 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 1106ad6201..f8cb2ccca0 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