Message ID | 1504860327-18451-16-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1246106ybm; Fri, 8 Sep 2017 01:49:27 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6VBpS8ctvK4FTB5ajkzpNFBWdm3AMqeHa3YT03q3IMpSG+cWMVN5Ix5OdXYaLDLekF8SAx X-Received: by 10.223.153.106 with SMTP id x97mr1396517wrb.107.1504860567706; Fri, 08 Sep 2017 01:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860567; cv=none; d=google.com; s=arc-20160816; b=TozrRdb5JU+NCNgL6WxnDcRwa8hQr5HKC05iQEsQK51ZDjiGckpDv1qhOT7uCpu782 WkH+x5eyN2VFkFSDUx4Ve2r/oBHJHV9+U2qiCYW47lqzwSXYk7N95uKBcPgI4MfkC57b Ia7r/n6S66yXqzbevNlgeymMj6Mrod34kvjWi6ZYF5hNyA3MeRifBhYxW7/6/7Rmrqyo TQbsMUkntsB/ofJCPkMy7PP/RQdv6WIzavguwWAb2qv/GN+uC8cOtPkbsUBpOMl7zZrt 0jKM9QXXYBsERTzrIbXHlIO4TVpBZUb55rjfdfrTBHGdPKh1NaA4sypIrB49bdDiGhcz Rp4Q== 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=EBNf31bVWy1blac78pUujKyWRKhzinfTOHiRK2ADamRRnxULcALVS4JnkCG/DpIrlZ sKA2eyNnq8IwwiVhN7o1kVKxeM/t8XmOgfR+d4njj+FYXHbplTiS1yZM2ShlK/RlulW9 QE3Nk7IcntWv7QqaWpeWwnqjtFjrERCYvrSIfmXdGTqYE1buvytdlf7pGGRF1czLtl7n 8jI4lNZOS/+YZWBevSr3RDT5AAmrKzunq79wWfNULIva3tsxzot+U6r4NocnBEeqmqJ+ dkSrtGb/MPRbzKXeniffV7zfEnMvlmo/A3+tAPOO/nKrofwMNt3tFwMmkdMcAkZF4jBX GNDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 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 ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id 36si1068964wrh.397.2017.09.08.01.49.27; Fri, 08 Sep 2017 01:49:27 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 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 4119F19A19; Fri, 8 Sep 2017 10:46:26 +0200 (CEST) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0049.outbound.protection.outlook.com [104.47.38.49]) by dpdk.org (Postfix) with ESMTP id 06542199B8 for <dev@dpdk.org>; Fri, 8 Sep 2017 10:46:21 +0200 (CEST) Received: from BN3PR03CA0097.namprd03.prod.outlook.com (10.174.66.15) by CY4PR03MB3320.namprd03.prod.outlook.com (10.171.247.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Fri, 8 Sep 2017 08:46:20 +0000 Received: from BL2FFO11FD034.protection.gbl (2a01:111:f400:7c09::186) by BN3PR03CA0097.outlook.office365.com (2603:10b6:400:4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Fri, 8 Sep 2017 08:46:19 +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 BL2FFO11FD034.mail.protection.outlook.com (10.173.161.130) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 8 Sep 2017 08:46:19 +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 v888jmol023063; Fri, 8 Sep 2017 01:46:17 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <shreyansh.jain@nxp.com> Date: Fri, 8 Sep 2017 14:15:12 +0530 Message-ID: <1504860327-18451-16-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493339795761805; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(97736004)(106466001)(2351001)(356003)(33646002)(85426001)(2906002)(68736007)(86362001)(50226002)(81166006)(81156014)(8676002)(8936002)(104016004)(5003940100001)(47776003)(8656003)(110136004)(2950100002)(48376002)(6916009)(6666003)(5660300001)(50986999)(50466002)(305945005)(105606002)(76176999)(189998001)(53936002)(4326008)(498600001)(36756003)(54906002)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3320; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD034; 1:beVOMz0lbAoVbjU8ISwjKLkZ+Xdf+KjWP6nweoxr3vWv49Qhxg4zs0/6Sd3XFph+dw55AUc7U72E6fGcVYB8Q1jTz+aCVvwbO8gNOJZ4Q542bcseUeQA+1TxH9c3Ajlf MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b454ab0e-5060-443d-2a8d-08d4f6961352 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:CY4PR03MB3320; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3320; 3:cAWarN5H3pb0YOf0eXEW8p+gngKRGIjyg6pv9wKP+SGKqYxd0r1nz5CibzSt6oW4Uir8WxunvSnd39odT3bkUC+WL6eLcbpE7eDODL05EwNQisZtsZjQsG86PiSQx8cOyHYA6n2qNgbB0KW5jDVD34zkHcCz+7PFa/GFGmtxcd4oYw65v/WPKUVz4dlzw1/O3RT2h7427jJE19iEqej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Nh91bZJAMyuWp3nIKDIAkmDzKARtElkiYgbPfaliX39ykV5UgfWUaxqZA/mDRpKWnY6duH42K7LQ== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: <CY4PR03MB3320CE2A587ED771697E590D89950@CY4PR03MB3320.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123561025)(20161123559100)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3320; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3320; X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3320; 23:qwnPBxxSQTDbNxJ0ViVv3NpmncFKWteYDXLqsNwWE?= zKE7kl6QA/IunXFpho/MrUX5yPrNcIs8zUerPB6Wwnuaok4AnHlddBEKsT1tMFNogrO24ZCid/TR15lEUN/Kg9yKyIvNyYav+9plk0hiw+uM01DFPk71ekT1j4NX2Zvcllpi9PJfbE9Amhf4CNf3cZYqoqiUndVQOgxZclnlBWcqs8pg0dD6cm7XNdGxndwTBdeLXi90KML9FvJRciBxkUhJd3jqOt1Iu2dGr78fOeHkFPSuU5DUYfgjGvyinbBTF5wroWcBbxM4tpE49R4OMB5LhT8Ut/gg+2kq+wXALkxGIszS+BHKIq+jRWMXjD4bXHkZXeSM+TaA02Hw6rq6L/yUz1/vxd8atZBx1deDvqr/fhRdLWQXMNfiAHTXf6pJ6+Bz21zgf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yEZOv7qqy5TA3G2YPB2Tcxn+QMZEzFbS8oBzuNj8832wAlwsoW5zBzDUfJAOeS7CABP5LTpoLAO1ZnoexlknjnF2MHs+AusMTK7xRDwJMOvkoax6XbB07Wlgb3PJQLmmyyVJe15q4LesLOHw==; 24:/WfVTB17bEKWkxuKqhBXkkOGjFDGUkT6dxUWK5cvJ5zCrYJ2sqTDthquKxJHhlLMdAhzehooDgtqeU5TPx9u6rcn40fs7PbdKnc3/827LNI=; 7:lJK1siHvvWMgGqyW3x64oJ1dcJOLEhWgQONMWcEW7w41qyCuvE2ti6Hq7Rx0XHRAmwaVf/ZE5dsgE0fZhsnQH2+x+mWaObGT0eaEDx+SNFN8TQwGkfl7Iia45AxGziEUq/TDBN8tpeJ9AgyajHBtpfPkuXXX3jc4oe/Qol5ASaW35Y/qzHLmuG3bgdUr/H1FUnYMdAFE9BENqeAwYDXlKGtyqAyWOpo54O5DMghGD2g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:46:19.3109 (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: CY4PR03MB3320 Subject: [dpdk-dev] [PATCH v2 15/30] 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