From patchwork Thu Aug 30 05:51:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145502 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp419932ljw; Wed, 29 Aug 2018 22:54:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYsFAG/AbytaQKHwdPt5ZHkARTsfo2eZ3iY+AY4Pfpd2nSwCY7g2vw1CVt3g+VLWhK2BGD1 X-Received: by 2002:a1c:c1c8:: with SMTP id r191-v6mr663358wmf.103.1535608456068; Wed, 29 Aug 2018 22:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608456; cv=none; d=google.com; s=arc-20160816; b=0y3lOvRBuMFDN781kD3m+NzvVfmiXRrtEzK74vikb+o/uawVPT1L7DTPEElYHeC1I8 fDTmQjnosan/OdERTzXx1PUYfJpDsar8SJaY9vz57LW1h44mNAF/aJ/RvUscMKGPJrD0 zlT4zH8UdlQK39efFifu9PKScQH8K3+y1LDqt5d0mTp82cdt8uP/P65AvmzmlNyMVR0f 8qWZQ2jAxFm23R5JjKIdUY+8IdfDsTv0ixQjEXjPF1YYsDe9OO2vDRC6yWhzzcVVKTVJ gt2RBd9sVWzXwAxwlDUVs00s0hTQ8AcZrGcW8G7+Za1gpArGX8X/ScGSDgvyqcBOarNZ NgCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=zKMjzZeB148tLIb0utaBlquiCTfr7+FPWPynZmnaT94=; b=RyIxim0b2m0wjdP2okyrpYqKOS4hSbkR6tSSkZD720SF16CSAFCXz0+GzkiJMtzyqK WPExhpN89MWzrOZsM8kzSGiudcHUQWkt8DrF2qKgpglWtEJizMnVzNwReD59KjfWcKsO h+31gQF20bxyWpwMRoL2vVdc4ZZWCu35Fy9gLNv0B+wGeXYLtE5W8fMffHSZ0HivYgIJ 1Bm4YSO7AbH0nqzIpHx6x7524haVVivRAx65rX8h58a18TBocqF4J97BqbvZmtOdvVmg skxJibhEKEQa2fR2rzvUwyz3g8/oa9RvPvxnGlflPLIAFz1NBPL453+Yi8/Umw3RGZSw woHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KvRZ2xz2; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id r9-v6si5863691wre.269.2018.08.29.22.54.15; Wed, 29 Aug 2018 22:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KvRZ2xz2; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 59DFB5688; Thu, 30 Aug 2018 07:53:27 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10082.outbound.protection.outlook.com [40.107.1.82]) by dpdk.org (Postfix) with ESMTP id 182DC4CA2 for ; Thu, 30 Aug 2018 07:53:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zKMjzZeB148tLIb0utaBlquiCTfr7+FPWPynZmnaT94=; b=KvRZ2xz2C7TGs0sIrg4PwkCLlkSUv9/4gmT14hEaE0hOEtb1VkzrXJdgj3j6XW+Ihy2oDKDcz7dmMa9nXXhdAFJnPUELz+eleTSNLHrRUtD6kDbm4ILT5Y2rqNp+MBx2vxPruks9QI3c89nKp1Pcu0XYN9jl/gyrIla3u0LtAHM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 05:53:14 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: akhil.goyal@nxp.com Date: Thu, 30 Aug 2018 11:21:01 +0530 Message-Id: <1535608265-13323-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535608265-13323-1-git-send-email-hemant.agrawal@nxp.com> References: <1535608265-13323-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR0101CA0049.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::11) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2336a4a8-ea8b-458f-4e36-08d60e3ce0bc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2541; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 3:Ukwdk9qUTA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teDqCyKvrXlwmRNCWUUGVYXEdecCsx1PwBaFjHzPChTQXgH7x8pG/bAfX3A/uAwMs1N7roeL4/dzIEYvGtWi9Ept6wBXwI0ow94XAPe3mcqsWgrhnjBcNsq15rogIMLu560Mb4gvFJjW/Y3uVrzouI7bXzIeKGvA3wAamdGpjR51mjx6kZ1egPSJqI4mSmCEJI6GI1UyiLY+1IF4CctSpVoBvfURQMO63CN1sR6RNq9+M2hH4KwgBTJkAqjpJQtNCQ4HenXu89E4vBTz63n8AgaxuiHEQnhUYqGTRWCPhYWzwY7QK1tuqlM/v3d3WOnp16dTgWXoc5BAhLT; 4:y/cFV3XgVhAZLqMGr3dhV8CwseZQ2vpweuqv79VbLT9v3iJK0FSB1YzZqhSCNBWEDz68Noa14WfWSSx6UYHorzOap7c8KV84m8Ri+TYSLafujvMQAb8JOEWtuBzUpgOtpxK//DUbbiJA4uBsqcCrcxZC+PqIg+N2DFko6R1quXJZhUtghkzrHFY5Q5OLspv1H4cMOv8DYltgixcnsr4eUaaNMqTC2CTBfuyOSFb3qv2Kw8l033E2py8TZZTwhQ8F+n78hIDz6fiEvwAsRUWMlxurNhMcyj00tn7ZtQ/uTMKVKiCNye641S0DCShaKcIA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:VI1PR0401MB2541; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2541; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(396003)(346002)(39860400002)(136003)(366004)(189003)(199004)(316002)(486006)(106356001)(47776003)(16526019)(53936002)(6916009)(6666003)(186003)(26005)(386003)(5009440100003)(6506007)(52116002)(2351001)(956004)(76176011)(66066001)(446003)(51416003)(6512007)(11346002)(6486002)(16586007)(97736004)(86362001)(4326008)(44832011)(25786009)(68736007)(105586002)(2616005)(305945005)(2906002)(14444005)(3846002)(6116002)(5660300001)(476003)(81166006)(478600001)(48376002)(8936002)(81156014)(7736002)(8676002)(50466002)(50226002)(2361001)(36756003)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2541; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2541; 23:jaCkJ57tg4hF/+g7GURwK/bJeJos9QvyXWR1rSY?= QR7HcUH4LLVBoPB+7xZ+B0Snb8Loox/0ad78usdtqNXrRaTBjdSwTpNzlKV5R5cjCnKOSI4CizwuBNCJDrGOxL8PdhSS04VcuVv7xQLJdxyKHaQqGSJfcVqMIAygsx+9vFWCOCvVsA5v//Z/7S5uoIkeXl2DrXvMXQESGmAMdnxUGvihl/c+a2JyCM+bWxeXDyEvTxWJX2WkDcAOhgSpjldMx/sHQ1gp4uZY4asbNm4x8CQCMzfTcpg+bK7CsOuOSmY2x0PW5VWjM8ZSw5FYCitsVgnNiJykdckDnigFSHo1EKk97OYV5Z92YXw8QAr6/UZvfOsJYJEqI4sU/8RB5/fJekjh0RKpNjCZ9K8sLT72zOWxh9+A78f8Edvu8Cr7LPYKTBEEUp6WEIVEOIoCDKcz2O2Jebxo0D1heUXD6/Fy3O+QSrMr6u7KKXNlQOPtW4L2AT28sjQZYvxL1zTGgj8YthAnomqI57W6aF2LcRQaYnKV0lTKy2Z+LjFURejihYlNQXk2Nim2rYZDoRwSm9dh5+BHYL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put: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 05:53:14.4502 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2336a4a8-ea8b-458f-4e36-08d60e3ce0bc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2541 Subject: [dpdk-dev] [PATCH 06/10] crypto/dpaa_sec: enable sequence no rollover X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Akhil Goyal With this patch sequence number will be rolled over and SEC block will ignore the sequence number overflow error. Signed-off-by: Akhil Goyal --- drivers/crypto/dpaa_sec/dpaa_sec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 30c60e9..e5b18df 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -2031,7 +2031,8 @@ dpaa_sec_set_ipsec_session(__rte_unused struct rte_cryptodev *dev, (IPVERSION << PDBNH_ESP_ENCAP_SHIFT) | PDBOPTS_ESP_OIHI_PDB_INL | PDBOPTS_ESP_IVSRC | - PDBHMO_ESP_ENCAP_DTTL; + PDBHMO_ESP_ENCAP_DTTL | + PDBHMO_ESP_SNR; session->encap_pdb.spi = ipsec_xform->spi; session->encap_pdb.ip_hdr_len = sizeof(struct ip);