Message ID | 1503658183-4078-16-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp812425qge; Fri, 25 Aug 2017 03:53:40 -0700 (PDT) X-Received: by 10.223.139.129 with SMTP id o1mr5513772wra.219.1503658420140; Fri, 25 Aug 2017 03:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503658420; cv=none; d=google.com; s=arc-20160816; b=xEx63Diov/5d9z8NClTD3ocIlx5BpUcFQcRj2nkfpaxiKnofVEV+NyKRjLeSAJbSbP 4RHwwo5fPK7iSxNHx43EUe6VY9aI+FT80OkJvJY9gWgFHM5mW/bpasCDoh3h1YrrE+4i vEHW11/JTdHKq7ahAM/fW2mgl7P2kp3FsXvPX+hp0wadAuV9v6YHZveyxXFqfc/k1Q3y ZI/Ydd0IVKHLfRXbJIxqftn82pHrt9yXmDdA6nAqiNC/Df/jzd1+1Vyulz743nMbmK4v l4Ieo4/5NPFODkI8iB/hnvOXM34DwAfMFY8YT4uZnhCgJLTT9POi6ILLWHfblDK00tCr UG8w== 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:arc-authentication-results; bh=R4zj7WJFxUNcjO4OX3hDbevwrhn2uGTZkTCwVBIr2kM=; b=fxRpbx2RLYmMuLqXFVBrKpFRfFFW8Xhw0I3nugamoOB7qnLTynMqZou9xtWkWJ4UZ4 YxWm4TxxvbphKmWOl0XuRENw1bIb6IV0DVZzBfonkdKn2qTqj5pLhPSeycavA9Yc1Ot+ MiTNjzGIg6pksmK9UD8kTvlozduHLAcn7HX7rvhSJSmXwxV9mQJnI7SnmYRzEjUg+xqP 6x3hNgmv92iM6BgSvTCtThCUaxN+bIi9653pIiJmCIkuN971PlOF4wANywg92boYSVrR 4T+qQEMzdIWBXQTbe8VyIruf2KLHyUMvJK+iJD7P6A2y2J2euKgxyUFomWtfuF6+r/OI lxXw== ARC-Authentication-Results: i=1; mx.google.com; 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 187si1036390wmn.152.2017.08.25.03.53.39; Fri, 25 Aug 2017 03:53:40 -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; 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 [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 019A3997C; Fri, 25 Aug 2017 12:50:37 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0056.outbound.protection.outlook.com [104.47.36.56]) by dpdk.org (Postfix) with ESMTP id 7098B9959 for <dev@dpdk.org>; Fri, 25 Aug 2017 12:50:32 +0200 (CEST) Received: from BN3PR03CA0093.namprd03.prod.outlook.com (10.174.66.11) by BY2PR03MB554.namprd03.prod.outlook.com (10.141.141.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.18; Fri, 25 Aug 2017 10:50:30 +0000 Received: from BY2FFO11FD042.protection.gbl (2a01:111:f400:7c0c::125) by BN3PR03CA0093.outlook.office365.com (2603:10b6:400:4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.9 via Frontend Transport; Fri, 25 Aug 2017 10:50:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD042.mail.protection.outlook.com (10.1.14.227) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:50:29 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v7PAnw6J032070; Fri, 25 Aug 2017 03:50:27 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <ferruh.yigit@intel.com> CC: <dev@dpdk.org>, <shreyansh.jain@nxp.com> Date: Fri, 25 Aug 2017 16:19:31 +0530 Message-ID: <1503658183-4078-16-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481318295482570; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50226002)(54906002)(81156014)(81166006)(8676002)(77096006)(47776003)(6666003)(48376002)(6916009)(50466002)(85426001)(2906002)(2950100002)(5660300001)(8656003)(97736004)(104016004)(8936002)(86362001)(36756003)(68736007)(498600001)(626005)(53936002)(4326008)(33646002)(189998001)(356003)(5003940100001)(50986999)(305945005)(106466001)(76176999)(2351001)(110136004)(105606002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB554; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD042; 1:WGi/kSjHLJQzcmoOvGRCiRVHReuXAuL8nePie20RJLS0NKlBg9SdGDlsgURWfSr2Shq5CMIA5ofEEUdy36jNNh6S8mlSZQ5OdWl5NxplkSIKlO8fMDS+KsHbRMIzhS2V MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 318d5ada-5c10-47dc-25c2-08d4eba719fe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR03MB554; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB554; 3:6hqdzHlvfR8wo81Y7xRl9OtBZ4khcbNeQq8VW7w+kKi6IwwPZOyTG6WnR5DOffgrIJxanj7i/nmGj4r2fP6HoD4DzJZJgogVJ0cAuvLIPDEhPIvjrSK43zPenwlTmepEYc0bjaGNPzxKntNqgAU+KWzWwHCwHFBQxvukDZMezNzVkDckBpa9hsERaI8StWiPodMtzs1n7fqWK96jv920iOYDIQRDP2RtX8QJUWq3HMt4oUPFnI5rgrTYjN7LTcav/O211Qk1K4VHGYykgRCITenZoeI7W9vaf5DCf4vyjdq+3iN9BO4LCayvbZ6LGnvaswz4qGrGFbxW78SfGgGCgIa3IrD+lF6XNcEjkSfZwn8=; 25:yt+g16Hol/KBIrhXHCgG9qYTICoH2E3dRIDi278mscFJBErzAUvhQFIxve1V/kinv/jSRVJfX/Jy01KwgNIAxInT5KfF0vPvdMR5HjUr3GMqSswnC3IKI9th73pSkRmj2lUXLI1mh9D8nsvaabluY9xCMlIHE1Ey9SxsaXCuli1RekmxJ4AGbMKGcZjJA+8bplN5nU74Vwd3CRnsUg07qF5afgMt/rp2yzQUjTsWGcoRpxp/ShqxySlI/kQx1qxftGYTv6MiVHluox17EPqd68n7M8ZpBTaWtwWyErml94EEl1krXm5nxH7J1IV2ulaHmrpK1A0sV75Q5t4KsuFOVA== X-MS-TrafficTypeDiagnostic: BY2PR03MB554: X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB554; 31:ujYR6fs+Ezv6XnGG7p9dn7ve5qeXtu9heVJUXlfyIhwLS4+G23V3zwZsW2c6DA5gVSaa3jA2OfBuLs0cVjhl47oZ6lUxaQSqQ/QvZLYc5UbNzTMD09s4FQRddiju0GmzLI8oiFQIzxg0Xu08IXrU8qQ92wOdp18nBRNFi7Rfiy4g0j/+GQswgqvF7pFtfhBxaoSuKEKjHpI1nb88wmybP1gRE7cnmwXzDlJ10swFqwg=; 4:lwYV6y2dDLFvKXJECJh9WA678BeIokIIdrWg5Ze3XyERo6w9HIVmLTSSFpYbrjQLohRuCCHvTyoawA5WX2Uk72kSDcy5I216zKiA2jJa4Z0u5QX1WojzUsnVpzPS6xulAP+4lJcTVCRBRc8XzEgtSOTrX2XlYp4MjhChW6oYqh5Bg/ad0Bi7XmD5pYH+Aytkx4mIl06GcmDi7CJKeK37K+QjMABzzY19YQlMqI/9Dh04qYpg+fZdpN3QQa+WHbeHRFogffPlL+3Q2SeTMyeFrnm+D5QQ7Cqg4JKc8FJErrhKjgc/B7CoNJarzmB7UqVy2FbF4kcu0SoW4/Imlzm7qA== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: <BY2PR03MB554D81EE070E65A21046CA3899B0@BY2PR03MB554.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(13018025)(13016025)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559100)(20161123556025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR03MB554; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR03MB554; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB554; 23:aCaUV1RaDLfgrXFczSDKm0W7t3YHMXFPNAl2JH6jdw?= XwxxiT9yKIeykYpjV3JorFwifUpYo6ksDffbnINCVfq6XaJDxtbzfnJswub3VaYOaQkQrxDSjao0e3eH2ymXuvnW0U7YltF35TgX/6sxFH8EGjp6t9owvMJItJP3dHnX2TWcMfo4TFRwxScNMVzQmIehW3gPHPO3yLGaivk+JDfgFYTWmwfaFi6ZZBM9YqZYtb9ngYg/wU7jpEh9XVKBHjU/5Zh+ERhnWr3Sm93D3bbflKa5RuKayKYuDaVP4BZbRgdvyrx3MOOQCdPwr6pv81zx4126zMkmMzjm/Gj/zJJ0IAVq6UNmJZkwH8bFF/O6CgqIXLtzfouUSu7FBLSFGBlcfXNtszIu95Z/Oi5Py3w17rVTMjaKAcCrn/STTEDoPGmtzvBeTeT/8311kgkR5daoIxpp+bIYRjxeJYWVjX1wuryWifwwqWl/PfakJXxh4Ycd4sI+GDnSmccp4A2mXk+J/iZvp1pevQ+a6wujjhbQrgrfWFISGGJKuIKjeiP9HLUqnfEDUZq9Bhh24gh4IJUspT9499p3Y57I/NpzQnlFZe1OMVUJbtOD1Ow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lEZuAtrFjRuA/Z+arSgoha50dgrA8Zj1sSepd2IMELtz7vCcdP7RMH67MRgAsDVfx5xzwFDxqxkeE7raxw==; 24:YAgq7SJy6aTF3cEYsxgqMlYHoeTf9g2MkySzGGHNrupuDxjJ/Nh5X64L/yXkUWAxEypGe4fc2fzKqR2kvnOvS3QC5PI2sIKne9oMlgG6dkc=; 7:urMwo661iHdbAW4DaeS4/DGDWtj1FOlYSF2EI+b4HbwK/AzxP0t4H+I9pil5P7EMbsd2RxoI3HYDN3aR1dOxpElWz2p7/yiG8MYQxxbn8HeuhCz8wFticCPgmS5PSN8JR/N38o5trlSLd5oO79aYZ1e+Y1oKSXwmBjgpJS7dq+ueccrlgqpWFd3b5INitgtbS34Nw6lvLMIQtEAHDO7gmjb24+YFMO/OLzECpRSk7qs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:50:29.2362 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB554 Subject: [dpdk-dev] [PATCH 15/27] bus/fslmc: add support to check dpbp 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: <http://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: <http://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 |
NXP DPAA2 PMD updates
|
expand
|
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c index 1ddd280..7e96115 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c @@ -129,6 +129,13 @@ void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp) } } +int dpaa2_dpbp_supported(void) +{ + if (TAILQ_EMPTY(&dpbp_dev_list)) + return -1; + return 0; +} + static struct rte_dpaa2_object rte_dpaa2_dpbp_obj = { .dev_type = DPAA2_BPOOL, .create = dpaa2_create_dpbp_device, diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index bb52a15..8f39cfb 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -366,6 +366,7 @@ void set_swp_active_dqs(uint16_t dpio_index, struct qbman_result *dqs) } struct dpaa2_dpbp_dev *dpaa2_alloc_dpbp_dev(void); void dpaa2_free_dpbp_dev(struct dpaa2_dpbp_dev *dpbp); +int dpaa2_dpbp_supported(void); struct dpaa2_dpci_dev *rte_dpaa2_alloc_dpci_dev(void); void rte_dpaa2_free_dpci_dev(struct dpaa2_dpci_dev *dpci); diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index 3cc7dad..7b25248 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -83,6 +83,7 @@ DPDK_17.08 { DPDK_17.11 { global: + dpaa2_dpbp_supported; rte_dpaa2_dev_type; } DPDK_17.08;
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 7 +++++++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 9 insertions(+) -- 2.7.4