From patchwork Thu Aug 30 05:51:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145503 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp420014ljw; Wed, 29 Aug 2018 22:54:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbidudD8dBOIABIR6wL3EscmANfsfe5Hl6rer9gkJvqLHknW7oo2Gg11+DdjhiqCqFmXzJ4 X-Received: by 2002:adf:bc44:: with SMTP id a4-v6mr6760540wrh.255.1535608465816; Wed, 29 Aug 2018 22:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608465; cv=none; d=google.com; s=arc-20160816; b=aNrfQtCDh0VCMh2uZW9bkvZEAsxD1GPY9WDLNaygeMvqUUCzH/bv53Fem/4Dg+COdL DLibBPYg9g3pJDttoyHQJl/08JzT2y4qBrKEIDYEj0U4ofO3+5ZShMRn43wGhUtz6q0f lw9cdgNvVJ2j3RaYWU5a7nnhzsUBY/Cuq5D7j6yygiE/RBJItWKp4kOmVv6uzIgOnzof yo8Bu0HS2XgmJN7BWzpe90Uq2Tm6CUP4vw5X1AdgSa6wR0gYZjxU1N5Yz7dZtaD+dcW2 IkVQlyR8T7xhuNV9MnxV4rDbxaL8TzFQjx28SDH5nxdmG+0OdpO01yQcCF60GwUFFlXA N2Ww== 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=e/Ilft7y8OXLrvDuYmGiwKCbrn74V5r/7l75gs2Hkdg=; b=TaoFw6uto21t/tZds7NPY65HMF1ldbcfMQS/04XqLdDYwgDsXzUrOyeI4BJtthcyXs WrZGGGmyaB5QrEi0q2/sWxv4dmUAPD6TF4tU9zENtXzk67EUPZLAWkSYwhuHzPB5kktT bWScbEZduBbglr8ts2Cg3PRZEFNe3JFbqPhdsBykjyN8fr78ov51wjpsmC1hPI5+ixnq YjAKFdk4s7Ae1XMpBuZtZ5yf56gYUGpOKgB6hF1R+HH1UGPFxLJEhPDurRhv2H1xLmRo m6qqZa6n+nuGK06gRCtC+vf2Rex7yoNKMWd4ULHc5CK0df1l/GcDPG+UMyao+ZiYRf1B 3DlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Oa2HF9gV; 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 93-v6si5635722wrq.89.2018.08.29.22.54.25; Wed, 29 Aug 2018 22:54:25 -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=Oa2HF9gV; 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 0B3A558C3; Thu, 30 Aug 2018 07:53:28 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10067.outbound.protection.outlook.com [40.107.1.67]) by dpdk.org (Postfix) with ESMTP id 3A3424CA9 for ; Thu, 30 Aug 2018 07:53:17 +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=e/Ilft7y8OXLrvDuYmGiwKCbrn74V5r/7l75gs2Hkdg=; b=Oa2HF9gVpeC0tuCFAEx8a5M6S5p52/vlwsV/y4wbyOgAKFpl981YsHl0yIoVC9t6AZgLs5C8Jj9sR2wyKoMDsDy61tFU/cJPdI1vnqVS5nWAlYsFVTQY7iztXIKPzWf6rG/5rHArvDXMk1t81tQsvRlxjPidAS1KzRRm0acsUJA= 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:15 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: akhil.goyal@nxp.com Date: Thu, 30 Aug 2018 11:21:02 +0530 Message-Id: <1535608265-13323-8-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: 93cda303-a602-4354-3bf6-08d60e3ce16c 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; VI1PR0401MB2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zF+tL4iUM/zlhCZa65EHQK1KZlT75LM/dSIfUOeUptBdKZhWhgD3w8e/XpRbDcdPYJmT/CAoe5qF7aVAGnuEH/Yix/1tFp7rLNaLHnY3GvjIZy07U/wQQxUfcHMPOsIm13dwGJ7s3+X9BKLBBEyJrGB+MfMCXMx70LyPqTsSwDHO/0NRLQf3R+JvvqQS07LDDlrisLq5JQ61AJzarRMkl102/TrRbikoeEXgBVrnPreS4upW/JCfumFGlAgJtytgiTOn3chZQH5cJfRMrZnAspO2wiO0oUcHRwowXWsJ3JrZ3o7AaQ08ls1I/m+4JAwm97n9tikKsDhJB3dgEvu1KFe9616dpiEf; 4:+o9MnNiDyqh11HBH6WO/Y/xpuBeqgzrezFdVtNSOzwuKkChZIf5zoai+5TBzNcS3FYi08iivFdbHG/fKobl7/OZ348C6sGVQrevud41vslhaqk0rkaVIY8GhmtUzB8s3Rj+GTMEydoKH71SlFK7Os683dEvoI0D2Mwe+yrQUPYm9+WMuoJUIwBUQ4TssxvMQ/Vk3wAYwkoPvvYWxeQMpk4LFkuUcDqWe3zokROqU3//WzOSQXHN9Scz31I8UyqsYq4TRpt7bodU33NSTLNk2xSwXtIeezh05PCuQ42Gdz7bLrtM4Gi837cP8VHZpQmy2 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)(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); 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:9p83Tkzx/Je+4nL11fMLBbdv3alMJvfLNslDVkC?= Ha4ALOPjqwEQgWvmt4qdtmX1eXaxI6glOt2G+TMO2sHGFC52pXNLLO9mOJYd3/62j8YBIjCoxsPsT8mNrsHtqqkkG2pdw7JjXLuvOg8YU6IWVMicqdUv+GnUN/DRCPZcjIzZ+iHVUSU6ZFUwoR2mXoO5SjmNp9aR47QTAJkHSwuDQLQRA8fpT7efi4B1mBCE79pkkNxicYxaUIjQ0RzAFqVSQY0XMhjwHW1jb581/7whjaGaE0a9RCgXdcFXqJj+gl/Mup40FKISdT9TGNRhRJ37rB+ltubXRLbnaCeGV2B4jElb60sBGo+cwtWwU2UKzJY+FgyrlxRMIPwui9IaKYBScm58fuexLeWxiUlKzi5uxTq59sukRlAEvobZS+bwJhib5ssQI2VO6unleQ51A1Y4V3lrMfh6UWJJ22dZbQ74DgDn9P/0/y5LnpMw6oi2mbaOF/87eZ8hvQYgPeQ9sxB78gtNu8ztgw5hcH85rg4E1ipKAREGSsuX1hF0odjWJW9qiSqn8CIOx7EXiScWbXfCQeOr29Fnm0hSBjufGEAYy7Snb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DtrhA= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 6:Q1jHn2Wf51xCmxA7mBklhK6uJZjphJzKy5z2vT0lTlcHjkvg/W4qZLDo2avmUr0QEb5mUINBpW7wWXT47atCsp58evL+LNdkwCIt0CP7qxAq121CfzOV+FP6bQwnOz0ThKIqWnyZrBAieur6/3Ch/wvD509/03ngflg4ZpzRKWTth1ou+g+L/nYDQGaQjERFQiWAyu5JIDHmTo+SLWDPj5mzjxkGJNc+4AiNbyDV1zu8GKjabvX6vJ6dDxumwiLYxNoXW59BC20Oq6EbT3ktwZLaQ19LV6Dph7BnB6dq6qE4rerGU+Yz/RaPkeabjrsOiS+577AJ62hSlcuRYbwoKctOU55EJNaffgrfYr5f3BK9UNS9UhVLajUitmZu4dgzOIRbAbFiMMV1OEUQxwqlmEuq5NKDqP5t4IXXOZ2iaj2CcyCnVqQ/+vsT0GrRQTiV+0+9kRV/W8bdgX6tiUQAYA==; 5:AZUuGoRUkLd+adl3Di41wyC7CTjUiKQv6NxcHt1SEzKYir8obRsDoFx642HdDkPI9SSBN/Ig53YJbIBz1+rZnpHvuIdY1sdCx6ojGbiclv4CVL/aBMbWJ8eK9eKxjLTo6iTIAk6PIJYF7w1cDy+63i90qAvyRJrVH3FdO5w27Js=; 7:/r6/0tNAAKvS9p5BA3g+ghhgH1qeprlcZ74zZ9T3rUDfzyvwK2HeH0M5hQaWe8+37aVYCM3ps4yjzedgJK3YoXLb2R9p5WETjn4Wg0qoSy0tJRsW3xMbFKBaBm3+BmnPDN3gdZk0/SwF60xLmBjSEVJ13KnBLX6NvV0AHevGt08U5xrPf+9yw+iqpI5y732wAnRdTErMxFvxwVAblZ0JQ0pANOYFGNBJ2ehGh7kmiiaN+xE3/0K2K3Z5NdmRwmbs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 05:53:15.6032 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93cda303-a602-4354-3bf6-08d60e3ce16c 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 07/10] crypto/dpaa2_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/dpaa2_sec/dpaa2_sec_dpseci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 27f2eca..99cc719 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -2324,7 +2324,8 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, encap_pdb.options = (IPVERSION << PDBNH_ESP_ENCAP_SHIFT) | PDBOPTS_ESP_OIHI_PDB_INL | PDBOPTS_ESP_IVSRC | - PDBHMO_ESP_ENCAP_DTTL; + PDBHMO_ESP_ENCAP_DTTL | + PDBHMO_ESP_SNR; encap_pdb.spi = ipsec_xform->spi; encap_pdb.ip_hdr_len = sizeof(struct ip);