From patchwork Thu Aug 12 07:12:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 495958 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp83368jap; Thu, 12 Aug 2021 00:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiyfPofPyCAsEzAbk0okEGztt9G6/5qcT+3oXjzhMDPjPq/7Y08fyuAktxQyffjoKHJy9l X-Received: by 2002:a17:907:a06c:: with SMTP id ia12mr2269959ejc.377.1628752597888; Thu, 12 Aug 2021 00:16:37 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id hr13si1753721ejc.116.2021.08.12.00.16.37; Thu, 12 Aug 2021 00:16:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=kEwOXAhF; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB44C41215; Thu, 12 Aug 2021 09:16:15 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20062.outbound.protection.outlook.com [40.107.2.62]) by mails.dpdk.org (Postfix) with ESMTP id CA6B04121A for ; Thu, 12 Aug 2021 09:16:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WJkXLPIHjPFUpRYPYmVRel6NajJ11/w3VCgyNg66sJwb0RwJP6nloRx44sNSpg+t4JaSJwCoHGTUEc+iHraAVFIcKLkLyau+z8hHJE7XzSINNzPn6AKYySXvPfqDSADNy/8odfxI8Cs1bkYfoaH/k/O6YbonaW8dbS46dGjaf2yK2Lm5clysx1BhSD4ERpGFOzWpwid5UC7WK7VvPX7HlSfFQQi1ihk5cRGCy/FoSdOkfdZsubGYJ3IBVI89Ekw1y4nLTT0FuCnkO6Gz90WxrpRvyRYbity/rZY1Tqj1fgIeCHiVFxtFUDmBg+2pvKQ4AGv/1w5d8ZlLDwtuMqiLPA== 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-SenderADCheck; bh=AE/6ClZ/MZnwsc/PXvs7GuT0Iilmq8Q9UoI3DTF5OO4=; b=EyCLqzDNSwv9fI7qFP1xvku8hvXPg1+qqBjME1BpJDrmH58XC15gX3mAIVr+uX/qjpIwuUblwr+MGBLzTl9nWHto/4D/5rP5X4LcC1PcGNjthmfPV1QvltTn41wxSwaGYZnMOSnxoJ818mOyj8JRjD+c3etw1zJ8ICIww+XhHW5GCH20ObioacQACYLpytdRzglYqS/ZShtRhI1gtKKjmZf3w2CQXhKkWppOHVHazvRY1jMjaIbPxpgzOWi6P+Ssojh0pp7vCBEhK4nfq+Fka2HauOnJ9tLTOUUmzfjGu6ynwwBFZbW3lAQOjps+BgBDUDDNSxyE68mQc942pUafLA== 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=AE/6ClZ/MZnwsc/PXvs7GuT0Iilmq8Q9UoI3DTF5OO4=; b=kEwOXAhFhyabZBQeYg5VvPydopu8GONcywWFbz/tlXw5C5rL/usfzUPVDWBXhplY0xAhxxxqpcLv1/hZMJBdq7oZoSIzyrytNE8UKZAaHr3VYsCqB3qsWFYrGOIb9WzCJkr6FVrONT3tO7BJTbjj+CfB/0ABTvtNuYt0qArhLvo= 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 DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2bc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.13; Thu, 12 Aug 2021 07:16:11 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%9]) with mapi id 15.20.4415.016; Thu, 12 Aug 2021 07:16:10 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Gagandeep Singh Date: Thu, 12 Aug 2021 12:42:32 +0530 Message-Id: <20210812071244.28799-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812071244.28799-1-hemant.agrawal@nxp.com> References: <20210812071244.28799-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Thu, 12 Aug 2021 07:16:09 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28c47f83-161d-42f7-5e4f-08d95d610fa8 X-MS-TrafficTypeDiagnostic: DB9PR04MB8461: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vluHEjHgqNVjFSJqUJDcsgHfeF/05WIiDXLnV9v5AOlH4OZzSCGor9yPwDpppJXYkHZY2DAj+Pfy1XQ4Jud0kDEsGog/18JZZUZkgNcUIBHcLVD8UNppXzAo/XKNQmzUapA/OWrQDhETU27Z7L7b0z7UQPw9+F84a2sITZC586f/SAsNKnTf0KvM503DXhO6FXU3ioEjl6CDWyeG4cteD8ZVBK7XHa0ya8I2TlLrVQzVXdtZm8g5aL2NscdPJwWRF1+8BQFtFfrOrbJG+9Sxvkb+jUqcP2WwS6lGRGbG6X1kuDqDH6wTFhvLt0Ex2rOgrV3bVoQ31EZWp54FgpcG75AgLpoTDuL/6gvPzNpdEmktfDWIMPzkiWq8Jn1a02lopCtWUBzKZtxplPxyvgi9bfFqAROpYUkmT/f9RhalG7F5pL4BduTGCnjEYfd2jxXbI7UYlEHMQ+LjrB5nSOD6EeBDjGL9sbMfmiyA8jb8VDWj5/Xp2fz4Dd/i7jhX+PXK2nwgmitHXcBEbuTUHOKXntUWiN16oc5sJPHVngXltwtwjUBEQL08wVII/ZeeNhQeimSUG3d0XF6/hXSf2+HoFVFKz0AxD455joOx2UzwmpoM/M88ItdzsKRaerhWubE7gydKdyva6JzCxij6w9hFrsH8180KiDg46tVM9rWBoJAeLS8v3ChMKQYyhqJ2dlmJ+0ilmMszoTNN7ce8fYkq8w== 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)(376002)(346002)(39860400002)(396003)(136003)(366004)(8936002)(956004)(6512007)(2616005)(2906002)(6666004)(36756003)(86362001)(4326008)(83380400001)(38350700002)(44832011)(478600001)(26005)(6506007)(66476007)(4744005)(186003)(52116002)(5660300002)(1076003)(66556008)(6486002)(38100700002)(8676002)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BFV1eF0fA6RZ6osRIgMpX8KD0zp/8ZFEt69x0BFe4nglkNqKG29Wi0kKYAJaFkVvIzoWmbX2XHY6jqYZR+bK3Fie0DL5TYuNAteYmoZSLWMZNYDVzumMpjVHAWMH97U8YtO0KgigrO5al51eZPJQY5+yHkDkoloNmiQjeL3Tj75iXcLH3ViBod1Tj2GmkPv7HUqpoc4omSzC16Ivgt0NOqiiUR0ZCV+MB4tuKbfCLy/jE1oV5U46TjVfF4xPMbdjCrJWItMUSRjUWFDy2pK68g2CVobspv5alqqfVcXNxbFFEmP9REE3ZED1FkM/mGwzv/77wL8Pl+vUU5ti6SRh6R2DEL+7dzcZ//F61u6s+5yoktqz0URE1XA/ntmaEXYSnxJuR+41Rk6omHMrGr3XyEg3XhxXOS2Ot/X0oF9kg7t9zQITca2rbUJe7fyYS6NDhSdh7g9cVkvvfazD7noNJieoy8pAk7mdCORugngCc/Nb5O4clH96RHdIkzqv4XOz4Saz3nenbP2dho7MjEfa8DpXGK9xKg0H2IRZ86c+4Mgm2LuEyAZSzhU5uNIpLYf2XY0DqUKMDvlV8jdBr0ALrqoHYibRyrCFCIYmf++XaxhoNpEKNDdvE83oYKuXik1BVTyum6+e9C247+h8diORLhSIbupIrbxN/YvTm0CYHda9mICZ+VkZgbBZj8Y1EayEkqJssJDcqINHRH68i6d8QKMHMcPCa5eXTVZdfTndoPzgkPkEZA1o0P6JBEBEQ1aHQZc4oNlog/XNRCIcFlzW0uvw1hiMNlZa/xiAy08Fmb/sTS8iiS0yZLNhuoiNbBFmCjPwgIHMpN+UVnmci5WWJBEcg9im2S45iP1WnJ2BdPsDZ9wbIb9N19aqQlzzVJ1EnTIJl09yYWlcY5Nmrf4of/vQAnI62PnQykxliagRnRZSUmPNg24EViZQZR59RQbnOQrlEOozyc11fTT1DufbIiGKVM84yTbL+5Kn+51KegveDSZ/yfkXu/I9Lc/6N/TL20iPsVIJX1qJu/xaBYBY+vx4c5XRJtHhw5duORJz5qEklk1a7GBFcAYaHxLKlGbZrwJ82+/gAZk0TtHjieRSVfEtEn+V/86bfebVNMVrkLq4wBZhlLmv2K4c24c28a4gRHgi+GKac7PiDcp3A80pkqAk6sltYwRwzZxFVBy7viYGTCj7Y4nw+JAGdI5Rr2bzVnqr9x4BakgeFaoNJpFbIXuvA4N0P0IjNniZSruvD+P8u5oYrJH2aM62RGcZr59hE3Wp+qnovV+ZScSEPKk70/nHJvkpQc2sO7NQ9MUE/+yvjgKTV0DPnfckkee3oQFT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28c47f83-161d-42f7-5e4f-08d95d610fa8 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2021 07:16:10.8715 (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: 7BjmYi9OA+L6zp9DT3xWnn+p8RDQPjyyUKInLGqeHIeGeHgjXXJJDTXwW3gU9qN6btWhWc0S5YrmSdgH7AGcPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8461 Subject: [dpdk-dev] [RFC 04/16] crypto: enhance raw process for protocol offload 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" From: Gagandeep Singh This patch improves the raw vector processing for security protocol with OOP processing. Signed-off-by: Gagandeep Singh --- lib/cryptodev/rte_crypto_sym.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index 978708845f..a48228a646 100644 --- a/lib/cryptodev/rte_crypto_sym.h +++ b/lib/cryptodev/rte_crypto_sym.h @@ -1003,6 +1003,7 @@ rte_crypto_mbuf_to_vec(const struct rte_mbuf *mb, uint32_t ofs, uint32_t len, vec[i].len = left; vec[i].tot_len = mb->buf_len; left = 0; + i++; break; } @@ -1013,7 +1014,7 @@ rte_crypto_mbuf_to_vec(const struct rte_mbuf *mb, uint32_t ofs, uint32_t len, } RTE_ASSERT(left == 0); - return i + 1; + return i; }