Message ID | 1522683201-23963-6-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710970ljb; Mon, 2 Apr 2018 08:36:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/KfaoM38GNAV73xtB9Qhi8+E4TfAW0urg2IcL8Z2mj3IkFyQuAjG9jI/pt9h1vzgytdnzJ X-Received: by 10.223.179.13 with SMTP id j13mr7281639wrd.165.1522683380980; Mon, 02 Apr 2018 08:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683380; cv=none; d=google.com; s=arc-20160816; b=yymxRIeAZLKR/pLWDx3BJX4h0HGECoQWf0wOw+yW04oU34qlCaRwA6rgG7kfdrGagU aRMpY5MDS6OecxZbRCSubBqGzpF8E957E3uusAkAoB2YC5h0BeKeHStN38FriLKDuS// jiRB0XmopyA31wBXRCfrGWERPjrNZMdYr0VEvXIyf8hUqlzRP9z/XUTngQ2RVMdnSQN0 Ksw7+Q66/EH3dJi0Ipo6FDDiL1i47X+nTVEq53womYFejnU5ziLWgBUA/LkwRYqr7nEZ MVCxFzpFfWu5aDRJpoy+coNbbYS3EWloAQB/0ygC5DIP48PXxXUKFFZhVWn2xyud57/s 7JKQ== 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=WP4NXAF9Ayii9D9pSAi0ZoUd2By3WRhKBiDPMzsmD5Q=; b=O76bWhNXSNQ6NZMzuFDwcVus/TL36qj3MRDdYlp1F7viRa4uhkUgiUjMq+CIxbvkPv 2yVlzw3a12IqS9Jk/u21RQRaRGUDjlt7zDVtLQDmCDoCXCDmK6nVuQlXXi1fECsysu6H kghMw0CXIIFnQvHtU9a7qbxMqhTz3AwRh8sCebFwnzxntNip20raApFX8et62SP1G6K3 yl/4MVPTJxjUNGNO1U0jrXix3DA+562hmpW4x5+WI9QloNXA2CJw/LnX3z7iimuEGBM1 CmhLvb4BvPFX6GOiieBdpoA61pnp1sv+KybIHHYItjhDlkiweS7DNIFFMRYUFJxZQEdP KNtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=RqaSdU1x; 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 u128si537423wmb.2.2018.04.02.08.36.20; Mon, 02 Apr 2018 08:36:20 -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=RqaSdU1x; 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 13EE71B196; Mon, 2 Apr 2018 17:35:33 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0060.outbound.protection.outlook.com [104.47.1.60]) by dpdk.org (Postfix) with ESMTP id 268D81B211 for <dev@dpdk.org>; Mon, 2 Apr 2018 17:35:26 +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; bh=WP4NXAF9Ayii9D9pSAi0ZoUd2By3WRhKBiDPMzsmD5Q=; b=RqaSdU1xrzglpb4G4EiY6qbPWg88FKaBIqCD39R6IIfRlIyMMal1p9sXWBoPjiZ61fIxN0ihpQYKEM6JC9uvhZU9oQR66OmSX43On5C8xPgHLl6ImZF8j3wY5Y8yWWhFRNRNiIa9cB/lvtnWnlS0r8YYzLgpo6aD5y4yICtt8Zs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 15:35:23 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Mon, 2 Apr 2018 21:03:18 +0530 Message-Id: <1522683201-23963-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::30) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7d18f540-c5a7-47d7-12a0-08d598af5a77 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-Diagnostics: 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uTbBLe6f9zoa3/j4DqZNa3fwYYDo3iiMzURvkRGTLHsmaIxlTnUXB2LJgw6efVnqOQZrvY+N/XW1ymwuD3SKbsOh6xTGo1khuIN+W5NDOWDSxtWnPMMT1Dkiu4Dy7ZC+vhrYJsuh3BI6bYbAa15KYpz9oty5mhUDBLD01o0i1uf2gMwlXo7lBesDSuDDj25TbguvdBGWolXPBKpYy4ouK9Aao/JtICjju5mOUMyvVle/ZM6jNpSzkTGYq9qqaLVcpSS8btjO075LQGct/aeDmxvJ+q7a7sAnzSkx82NcQuUYK843eSxDS/hv4BjGZ5wmMu+zgsz5/H8t0ZQc+qEystRkG2ldQjGautuSteHJD4uw0pb8Z2kPg8KC; 4:xBdn0tSs555W1Mh8u2AOlGx1PE5Yiq8BML+zgcOv42fF/f7vgMmiWRq1gw3F5NVnXOi0apgLNXnSLp7lyBSYCIai4oMNTgZCXHOXTB2kBYHI6kioXnEZSWfwwz7xHSajbXyMLJURvdFBVjmFUuK/vaFPf/Pc8F43oZhzPsHkt5zi4Xz0m96B6EX9G29AJe9aoNZSl+PsS3nB9uq6DFm3hNJHoxw/EzWvxwgjvLq2ZiN/mUBiK00ZKtepnRlmITVpTIatgBEBxglamy1cs/AUMDgz/nsFI4s+7juN+0KRf519OQ7pbN90//mUzIBxRg/3V24KQYzoWTaPLgFD8D4a4gTT3UxXfq2oE9MM495CdfE= X-Microsoft-Antispam-PRVS: <DB4PR04MB0767A96978296DF210DFDBBC89A60@DB4PR04MB0767.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(199004)(189003)(16586007)(16526019)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(5890100001)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(6916009)(25786009)(316002)(4326008)(6116002)(66066001)(478600001)(956004)(8676002)(106356001)(50226002)(68736007)(11346002)(446003)(81156014)(2616005)(486005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0767; 23:4Q3lKQNMu5rTls3jxA/pkxx++qakJUm/ULw7HWXIA?= WO2uRHNy9Ad+apQxf/rWVjSD9YsUVXVlP8LVo+qxWOs6UdyprlHEZdC8ZwloZIskQMhKbY0u8eAWdHZQAZJqsy/miZ3AYgTd6dQOqOFbEGbvXA6OUjgRPf9/Jrv+Oi9xO/uFF3FmExCa4jwPXQk6JlHZRw1+M7UoR9+GGZP8omTFku7yYAgFi5h6/AttaY+NhWzo4HoxcGf8d6qIhQeUxb7KZMQvzJB0fOOd+HZ5K0HNKz622FkJALeU9WP4e3W5jpRoq+88ppgCHQtR9dqLb2NYKDMx9jVQb0TUScbQ52ToNs8mdT73banc2kfHYF5cVBl5V+E1teBLkM5/h+tQepjkxwAJ+AsXXZ3K0fUEcnQq5stknakE7ueQ6Pi2vGlGsPKUs9z0KtrD3tckv12XRUjf9a+1AHaTMDeabhwvo5d/IjO0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U2VUgnxZk2TLoUUCDFow4dA5t3N5hwK+mZn6W8KGh9AFormLWaTI4F3cY7Amx0pw4XhwdlJar73Mo/zSsUx+NhiLuUs7qltCC9m9mseZLqZdBTnKRk6g X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:23.4900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d18f540-c5a7-47d7-12a0-08d598af5a77 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: [dpdk-dev] [PATCH v3 5/8] crypto/dpaa_sec: fix to check the portal presence 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://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
sec
|
expand
|
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index c5191ce..eebb905 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -1759,7 +1759,13 @@ dpaa_sec_attach_sess_q(struct dpaa_sec_qp *qp, dpaa_sec_session *sess) PMD_DRV_LOG(ERR, "Unable to prepare sec cdb"); return -1; } - + if (unlikely(!RTE_PER_LCORE(dpaa_io))) { + ret = rte_dpaa_portal_init((void *)0); + if (ret) { + PMD_DRV_LOG(ERR, "Failure in affining portal"); + return ret; + } + } ret = dpaa_sec_init_rx(sess->inq, dpaa_mem_vtop(&sess->cdb), qman_fq_fqid(&qp->outq)); if (ret)