Message ID | 1535608265-13323-5-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp419693ljw; Wed, 29 Aug 2018 22:53:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZJbiMPXz0SgPL0j1imcsZ117IvzdONkQbssxjLnBvjDOC7f6IJEsahgUXO4Vr2Ra762JqW X-Received: by 2002:a1c:65c5:: with SMTP id z188-v6mr715774wmb.57.1535608432736; Wed, 29 Aug 2018 22:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608432; cv=none; d=google.com; s=arc-20160816; b=BSf8xCmA8qPeO+LZKQULs1H13EtO+AqKA0IB3jdf8CYj+HNDygAM7OSwAIlmkkLNU8 prA7pnrIzAA2RSxoIJcnq5pFlYvfLShBssBiVbgjrg3UfVLxuSMd9cmziPdj8jEIvJP1 wj0nllI5ha01m7wHIZ/LDgoUY7VPm/ZVOVoxqoFEKhryy/v7hXNjTbC//1qR6khTOI7u Z3uk/TJOmzkASOa0PBCEfMjW4DiJznrExhY66H8S0fcIsO/msNmY/UZMnjDgeWY61y9n 7xp/5kj67PjBpucmre0GBjCbVCkZm/K0VFKWmMZpaFpGYy/dQEBqOB26lQiKktxVO9P9 loGw== 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; bh=bKDNDLS+qnt0az2ILmsR749axY/Basn+yeWSoVB+Ilc=; b=TT7TlI0Kpu/tOcMGBchOPVGvmYqsNgAGv9zvJaK22wIQG/sSVM6jIlKz/2Q78q4KqP v5o3FrbMjPUVCLle9hlKVqrX48X5EqLN8K3jzKhdJdRXFG2Py83AEWhislTC1uI4dL+e iXmp7MMfLDVmmRbYjrbRvS1Lipz/5tKgecJwvO2KgA3BzsqlzvS0Fm+w8h/umlJzrgMi F+Y2o2bcz+gDYh5dmYJcQDHGfeG5VirsQQwDJy9/kDWPeukyD8DakLu5WFbelPRkeHKK +HGEtHryLE9zjFlS9rX99CCTlrbbrsTZbhH3qQ+3Y+Oyb0bVQxzXjZfHO0dwLJ2z6q6H lUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Lu8pdMaU; 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: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e67-v6si678286wmg.44.2018.08.29.22.53.52; Wed, 29 Aug 2018 22:53:52 -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=Lu8pdMaU; 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 307A84D3A; Thu, 30 Aug 2018 07:53:22 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10045.outbound.protection.outlook.com [40.107.1.45]) by dpdk.org (Postfix) with ESMTP id BB7072BF7 for <dev@dpdk.org>; Thu, 30 Aug 2018 07:53:13 +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=bKDNDLS+qnt0az2ILmsR749axY/Basn+yeWSoVB+Ilc=; b=Lu8pdMaUrfxdxQoe6cAKBa5FbtvY6pWiRx8d5UlH76L0Vlc6oVK6HGih7Fb9TPJ2iH09WpxwAM+CnstIYUq+O/phaHbIxCmyqu8P15FeINCB5mWjCYv8PypbpdTylphvSv2uh9skVnqeZb3aSn4f0vkLR+GycO/Gv5m1BFJ2s0c= 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:12 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: akhil.goyal@nxp.com Date: Thu, 30 Aug 2018 11:20:59 +0530 Message-Id: <1535608265-13323-5-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 Content-Type: text/plain 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: 68b708cb-a55e-4409-8463-08d60e3cdf5d 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:gQEOtolOWgT7/BRuNhY676P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N4DP1hycJxUB88GS6GlnTQ7GVM9KRx6JXEKVNUBdhNjSCyQAudKRGnkA4z/TbKfKUWg+IrJiUeFK1xBFYYGcJPOZLK/t+ntMmyZ2unw2cKzCmZd1gUDOCpARHfZZbk8osvwhQHRwDHlVOP7IOwW8txowVBdX17bs5mWDRQMDNBzeJntqyLF/NCWvr8DAAsCeTw+QvgSdPcaS3FYMU9VCTPiDIyywICw1Mc0KNDR1U17LL+H97dHmcq/pnX6tyArMqA58DkykRuMn+NGB9bcsO2YuYHBtIT3TvkYy5Z6RGyMuRkjoPbjX1CkdDs0EiV0S; 4:3Q71LeXUQGG4H6OuOfLXOMA74XcJIGLShbA9y0LYTzolmoeaTwlHU3wu27Tdp2ICsZEZkkFKRyA3SmseA9svZAb/FtFI++xwHKikdrDI2jxiOBT/c+OhcFVqTWVPiIGh2w8jarG/waGJigfXV0wyzo+Y4viqBGPOZjAZG1oNAnV3cxgUCyxsERYY8nV/r/DPjMv8cXXAZQt5Zi5fAhBeoF8XvoU/GyONfpWjpoPlWNQcSTp1ekwqewEHvZZ3z1bDzfm+dH7MMfN6aNtPEknKzSvooTbLDfFVlU4MMY9U12HNlpyzQ4pFoRcmK9rH6CLy X-Microsoft-Antispam-PRVS: <VI1PR0401MB254163802945F8D48E862B3B89080@VI1PR0401MB2541.eurprd04.prod.outlook.com> 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)(5024004)(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:mnExrxHJf4FywMX470onIcL0vt9/N7SG7gwYa1O?= jVbM1nDGjqWzz2FjVbqKz9WiAikAgoy//ZL5tX3jYRu1eTboibDiJr2tMTZZ63OEAmWn8nJNU4AzcnG1QHuu/zQxlWPvQM5otQFeV/9jQY4fAKe94105zZv2e0lXFaC/xQebwAuXuf+HRfOVvEMNfYpAafca6KDq/7jZeAJv7YomJvNDtMGvBV1ObWPBa/o6hECfdUCU0Etxa3BZWaKm3Lnjhw/fRToNV3iXCXtsVnt4kwubSTr6dC+TulDKjtnCZq0lAMb+SkRt5NiID6NGq43T+Ul6sX2yYwopi8TF/4flB60VS3yfY3N11rPxOd0Y4By5HZmnthFR9Zyt8Yl3uYi97ptAUtNbBy0sWRQkxzuV1ShFWYQpMB5R7wUq6k/NV6+fg/J1bUSpdoP9AP6+m6ZVE7YtPWQrakFtgzlWiKheTNOpv5FHyOwoXLd4EgZnxKX5I4GCDHPfI3iUz+ftVmuQpo3+IFT5CdQyuJe6XAn4sPe/kENPHOHtfatQGbOVEG48wwJU8zXlDBW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wOG9SXV+uVGYO/ZxB4dL2g4hiCMGeDX8PnRLCwYY= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 6:3f3JLGf+Bjy97dPneAijYO34sEjPPT8mkUoNvQL7utGnOimt8ec0qXjK4Nltnc1wiefb9DEwnUmjakrRoYJE4U9Q/9LwFOLsoHOf6OyuuhSZF0l4x+W+9hcZF5p/Htf6XKlmpdiRnt34WtSAr6TIhtd+jDUIDzS9xI1pGgybXbZkjRkA0YTEwW35pNM7HH3n8uCSkcc78DwsvwJEsvJU5EfvOrPnvL/v91dffkLLe1obt0r+912jw/m31CzWwy7sWlqnVi+Q40LBjyL3dzJ+RIPjwLaNkaCzzN6KudV0FUOIKAQajxKnVxfHSm6yaWIi0z0BANdHt5XAKx5OJk6DwbmtMqm+qxhfN3bEvgsnXPvYXaIrWs6HLANNEEtXu9GUaG3x2Kr5Iv9gaQputDETrMoFvYAtm/PgEBTiHCjqEDrv4vx0Y3MKuNpDeaX6ctxSRQE3+w6tLQWPUlfDi9M1gQ==; 5:DB3RsJrXMkthNR9XsPgaM/bSqYFxeqiWvJMWiHgQLapB983jcmiGD3lkOK8B9HK9b6PsrEDyjqqPVMXSPw4RFM9vFqBKcc43chBAz7Pn1DEZlEgnV1QI9RY+68iyFEf0QWz4VfvlC+fv/nJF8i8nqZSAExRIwIWB+yi6JzL+JTA=; 7:AnFML7Va0nFlipu4OU2vcbvuGmDZuJ8AAqms7/gQERuQg0+O/ergRIE1fC4p8dglqrj5HUbue/33D398FuzxRZJRbz6UI3OarF2TKQXEt4Flda2vFmeyteBTil/HA0g17zfHkFPjUDqKv9L/b4O80ZZlXSbpxd2lSZgK7WaoJj6/mjO+bVEF0pJcAKRp+JQ4ouSfwwoAsKskLu9fE0V0+wfYOhsMu3T7oQfHoGmsHX9B9eljA2Lv8OVXxNUcrwHO SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 05:53:12.1533 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68b708cb-a55e-4409-8463-08d60e3cdf5d 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 04/10] crypto/dpaa_sec: session qp should match with given qp X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
crypto: DPAA and DPAA2_SEC enhancements
|
expand
|
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 35e4e3e..30c60e9 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -1448,14 +1448,18 @@ dpaa_sec_enqueue_burst(void *qp, struct rte_crypto_op **ops, nb_ops = loop; goto send_pkts; } - if (unlikely(!ses->qp || ses->qp != qp)) { - DPAA_SEC_DP_ERR("sess->qp - %p qp %p", - ses->qp, qp); + if (unlikely(!ses->qp)) { if (dpaa_sec_attach_sess_q(qp, ses)) { frames_to_send = loop; nb_ops = loop; goto send_pkts; } + } else if (unlikely(ses->qp != qp)) { + DPAA_SEC_DP_ERR("Old:sess->qp = %p" + " New qp = %p\n", ses->qp, qp); + frames_to_send = loop; + nb_ops = loop; + goto send_pkts; } auth_only_len = op->sym->auth.data.length -