From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0062.outbound.protection.outlook.com [104.47.41.62]) by dpdk.org (Postfix) with ESMTP id 7FE3F1DB1 for ; Wed, 31 Aug 2016 13:01:46 +0200 (CEST) Received: from BLUPR0301CA0032.namprd03.prod.outlook.com (10.162.113.170) by BN6PR03MB2435.namprd03.prod.outlook.com (10.168.223.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Wed, 31 Aug 2016 11:01:44 +0000 Received: from BL2FFO11FD014.protection.gbl (2a01:111:f400:7c09::127) by BLUPR0301CA0032.outlook.office365.com (2a01:111:e400:5259::42) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9 via Frontend Transport; Wed, 31 Aug 2016 11:01:43 +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;nxp.com; dkim=none (message not signed) header.d=none; 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 BL2FFO11FD014.mail.protection.outlook.com (10.173.160.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.587.6 via Frontend Transport; Wed, 31 Aug 2016 11:01:44 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u7VB0laW010481; Wed, 31 Aug 2016 04:01:41 -0700 From: Shreyansh Jain To: CC: Shreyansh Jain , Jan Viktorin , Hemant Agrawal Date: Wed, 31 Aug 2016 16:30:26 +0530 Message-ID: <1472641235-23626-6-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472641235-23626-1-git-send-email-shreyansh.jain@nxp.com> References: <1451682326-5834-1-git-send-email-viktorin@rehivetech.com> <1472641235-23626-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131171149043606879; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(47776003)(36756003)(2950100001)(356003)(92566002)(8666005)(81156014)(86362001)(575784001)(586003)(81166006)(5003940100001)(305945005)(19580395003)(68736007)(33646002)(19580405001)(104016004)(7846002)(77096005)(105606002)(5660300001)(50986999)(2906002)(48376002)(97736004)(87936001)(8936002)(4326007)(110136002)(626004)(85426001)(189998001)(8676002)(76176999)(2351001)(50466002)(229853001)(50226002)(106466001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2435; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD014; 1:kfxNhMJWZe8E7B4VE6wSC9WkU3uPAB/8m7OjN6OGwL2E+gdeo4JXhlSWlFPpZw1bO2JFJrUWYDNFDdIU8aDJcn5c4v7fI8ZpNnOV01IlSDpxvWdQb+ML6ZaRU1fB9KjQnLm1FvbdC1v8vLnBG58vYkyG8Nk3meDDCoUWFnY1VzClvVARfyCh1anhyUvaoNetwwF4c+b3VoAbz8bmQSSVD52Uozjt2Wuewqert+eLE9DWjkYsrq6tZ5doJD8Hiw2HHkwSF+ojO5UFJMmUfmEwFP0oMGVSIlhLerdDC8bMtYSxV/cqab24DgKH7EfP/95sow6BK98lAJtWzPBVThJWj2RfyrrOoQpa/XOQFwIF3PWDX1Q/rXIiIxGLKdWTpLKWj7XDc8SwfF29WhK+JiZdCcSQDM+wFy+QC9T7Kl05iQVpUM0MbMuNn1BpchpRl6Rfi4Qq8qm+ilAh/L004iJvdzJ6PUqSs9ZvQosH+xKHuePGMraWHYr+MzEkI45SP3aQz/67n86xoN19R84GOxHl/2jUuSIw6K7+ltQEMmdAbyQgPr7DWfQrjF/VqNleRrPZv3c0qaZxs49AW/h4KFArAwnkISuljmYxr77C16KykcOHDRG0m85rjsoZJIwAAYjNz16zoKsRgYrcuRlYjx8j3HrGFX9qwipNC4syiyDqil8QLWSOiqUz/HJ8crc4ccxJeVlPJey5r4D5apJnUx5c36qi11877mOim9HRNlzSmIY= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 1e19421f-eac9-43f7-629d-08d3d18e31f8 X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2435; 2:Q9iZXKWsrWmIxYvW0paol9Eoi5mPCUAW44SRaVi9zaOpc/GHHaSN26wST5NGwicAzVNvXWn+GJbRF7MnhBiz3sdapin+e87llJWjf1gQcW3+m20f0hC1YQUxrYnRL6Kq3JCbqIUd9ht/VG2JB87bI0LTWiJy3+Z3vYD7W4xFPm6ovwkDQP7ZvIZZw4K2iUxz; 3:vXdjycGIyV/5QVCOf8vMy4aG4HjF5ScLd839YxTjztM7v7t8qSaPQzBNOxuoDrm3Aw+MFByYZrgIIzTfgJX3wkMr8M9vHcW9aemPnp4KRXMo/XZMjobVOuem3ZqUy2EbY0vfJznt/MoyUhweoTA0MlKy7rdTNfq2+JtEegEc+scF7sLNOOaczUty8DiVpjyB9jmTWK462hfpX568Oc5EGGppzHHHDR6GWOtQkikwPQk=; 25:JsrObmU/R73rzkUOlsX9TKi/MT+eTKcfRd4zMPQo+l2o1XeAq8xJlUKIOch4Sau4cD3ldnikCmbBJGGAvajUmkVNLly9ddAhWok3AfBQBLcKFpLa+5k3RHKQ7jMB8AoKIAIZHS48eX85oZ1/XJiMj6YKbhfFO5clAnEeslnuG+pAlG9xvjAsOKsy6c0p0VKrywU1kSOxbK53gk6x55/v6T8lhYYe+9HTSPKlJskiVik5EPWXTc8FdtqOBMvwe61nTVSsS7rxQMWBE2s81JYsKyffY1TCdJlnZYNC95AxVhv8U5kXrrDMt6Ayc5ML9jSi04CjJzbS5Xy+SN73lD8v5FmDq3nMv8utnzai5WuzmHIsgAa9aQob5YRlBdSYN2SyyjESfEoUucc9qgXjfxgPv1E/GnDPD60HL2ZnCmVmv60= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR03MB2435; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2435; 31:KE6ZpYL+dYeW3p10KKz5vEpeqbCNjuOPlRRdpLrvegZ3cl32WZc9mCAyLbai6TORX7nE50UpuOp46U6AsDePvkfw8vggHaKn/ex9omfayBLWE3Ezugr46cGgQUNwSqeJvvxLJKbZg3UiNAt7HPXfa1D4KX7+acd/SoKV8ajEwwU+tkjqONLNqCaJNQsBFAWOuFKlDBwBATOCmXMC9g/ou9YPybRinosAnbwpNZApVTc=; 4:NELgLlht7fj5EBYA/Gu7/soBvy21nDEv3b4PRd2edkxpzPaC9qBNRBpUYbU0GeUs6PYaGSa07uHHO4lu3foph6zIeFEeN6kH0s72K5crIg43orePO8P93OBee9nExK3oKrUWV3x4V3EaUVuLQzoeN8WGEzaDCkwUAPoqXqRjqI71UmM9gZeAMeBsn0j7wXkdYm4TkSsog1t5vihTFQpCsZg9rD/DRe4rKvlEvY9nrzm72EvXULKA2vZ09JsBCkpGmRP+WXE9cuz6Y1kdaOgMckWDA+mehqfyfGWXkcQnn0ZIovqU1aKHf1DWvu5B8LUBHIC0cvuyP313RYnxrMmkUhTaYioyLhxtfGLxXDHtY08oHSJaBtRtlwRp2frSNhLVmuPHnEEZ+gyN1hbRGYaTK0zAkHzm9Uke7IjXRbHdHPh53pexWPRTuUZHI+CE2GvWIw6dV/ubZL7K7WCNhBCA4qLJy41mMK1zZeSSOt3l1+GYzm28iuHn/c7soM/uBQ3fUoaP90a/t2bjIrEzTH5Q5drWkRUxMISRhFT/scyA7nI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(13023025)(13018025)(13024025)(13017025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BN6PR03MB2435; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2435; X-Forefront-PRVS: 00514A2FE6 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2435; 23:ShH6JL96UX9WtLcR0aWEXp9/ZiZa2xpK89oaeP+nB?= =?us-ascii?Q?TSW/i1+ql/jJElGrMQT5IBmdXT2Rzsh+Xql6qtpzRiPX2SRFL49oGZgqAtp/?= =?us-ascii?Q?utHHkbl9SblCo/l5+IpAPwtq0YP4JVfRa6gMn8XvhnaJdOhODy3JKcdNtLf/?= =?us-ascii?Q?aWAMkxQxnfhXfKePicPjMKMc0ulaCp3NgOh5fSKHCcAGhb8Z6Df3zxexc9zX?= =?us-ascii?Q?wr57zfb+H48ojxiWkW5usBB3BuqyxiOxASVRytk/miBkEXq+SV/HXqBaDUqN?= =?us-ascii?Q?kRy1LsNpCzR1MwKGiWiUx5o7O/1M2x4OCJ69/PGIFvqJXS/QNTnQCPGRcmTK?= =?us-ascii?Q?DO4FC883snl71ddEISqLpIk1HgDXVgHqj7CnZkl0I9Nr2ksDl6GIVEGmftDG?= =?us-ascii?Q?WUfSudMMZGNLkfRRfbjtviNCw7o3qNWQslBxPCfdbeQ0Y2pqglk/bBMxdRWe?= =?us-ascii?Q?rtLMhdEdR0MBAYkX8CMtS7se6/e7XsuWNM5WUIw7UZs1002H66ACm5d3pThr?= =?us-ascii?Q?l/5A0DOw2pC3KvA7fAnUGV/CSw+LrRmJNyCEWr9n2092bhJ2RsxMINthpzFN?= =?us-ascii?Q?5H2GnIiDthCP1hM1B3/kPq0Gb9oss3mnFWPP5Q5OroABi/mugKCC3fRaVh16?= =?us-ascii?Q?J3AAW0ZTzxFwMomZYhBnRixWsfzkaC6uJTobB57Gbba9OLeKqxk1IQGepu1W?= =?us-ascii?Q?gsouCXk8823z4qiELXnf4/kg0FXciLNADZ7B+pzUjyljt+YiAXfgw/NOOeBH?= =?us-ascii?Q?LZ4O6wLpnvgAaSx3fy3IZ5HJkcgiwf5Go2W797QWWg3hjelsJzr4g1VEDUGE?= =?us-ascii?Q?Jldnnblze8Ce/EJM0FnW9IbiJvEoT29tZu7ig4GMUDyo5WQ7gQN82oBSx6nF?= =?us-ascii?Q?Ahf3mROwA06GLOKscrhqxip5mKxbVsu4cmg+ekC//jsc0M+Dy4eIwpu8BrVG?= =?us-ascii?Q?15nR/7YujXRcNpb6YwdrwndBSw88JQNp2qSjmCio/8fDokkt2i9Tx0mMHEBr?= =?us-ascii?Q?9ZoKVTomegqOjk5TeN/ORIRnqmCcCisgy66sh9f5sL/DoWPs+hNPF7WyES2y?= =?us-ascii?Q?Vs+lyKndZci/clj5P48jD/hXfgoqYCzZ+o80EGWmW3DGyG3iQuirKH9I4s3Q?= =?us-ascii?Q?6q2sGTOmln5nK1byT4VzUlnGnPDmJwZZEJkCpKf07fZEtTF4wrGig=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2435; 6:AoBOGkknZe7jEumh2YQtsdv7LR0i7Ct+CN+l3GhfPLlCupa3XwNn/XUNEqf61tGzG6UJFkFneaWZTcGV8BuogHqYzV4GJlpP//I+wojln4bphp3CHWFxYqjABeINYJ85M8i48GxJxtx4JE9NfWZ46DS0L8ixUHzzSDXYLH0agKwithjh7OtTNGo3Lc48une41NLc91Df8RIKuAKd/p8woouoI2VzV+hJ5MOLiPOGmu6tejZlVpOW89k6eSAht2SX0e/ocbRrjdLXH+WgDkXg9PW/c1++MwW6229VpgkZshA=; 5:UKCoWjnrUe3Bv0zVDxFbObDwCaAux0KRsSrxzsTte6m6Fmv82nERSgboscqF1sq02husBYwSBA9Sz/RXopP6GwuqyOwp508WJyBiqXVerCLpOMZx05DyqpuV6xK2iTrmIbpE/VhJSpq5sYwIoR14CW+PWqYyxQOnxBF2IiprzDY=; 24:IB7yKzQFX0Z06KEej7tLvhRajk9sVDwONt0ZzPHdfV2ZfWkmUI/WoBX0qHNJulaf4hGi2X4OoWfFc4rX/3U4kr1TpsI5HuihpM/1VCYc1OU=; 7:Kae2+drfanfGHKZ3QejqwzV2oL+KYqZqz4OCk1LtYEDIyJOaYvcEIjjSvNs3bcC7oZb/r29uBYHd0JP4GmuT6njCq4DlsJw64TO51b6z6FokB1Gkp0ZJpd58a993mijoIJZHe2wcJvM8K8Tl5UnY0zFeaLwnY64v0VPpq/hficrboph/T5dIbwnu9l9Cmd4qbL6b0uHMNrNmVZ8lbpi9ou2f3MknnTICat5bQ1BZ04ReCB3T/7QpoexbbRo8vVeJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2016 11:01:44.1578 (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: BN6PR03MB2435 Subject: [dpdk-dev] [PATCH v2 05/14] eal/soc: init SoC infra from EAL X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2016 11:01:51 -0000 Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/eal.c | 4 +++ lib/librte_eal/bsdapp/eal/eal_soc.c | 46 ++++++++++++++++++++++++++++ lib/librte_eal/common/eal_private.h | 10 +++++++ lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 3 ++ lib/librte_eal/linuxapp/eal/eal_soc.c | 56 +++++++++++++++++++++++++++++++++++ 7 files changed, 121 insertions(+) create mode 100644 lib/librte_eal/bsdapp/eal/eal_soc.c create mode 100644 lib/librte_eal/linuxapp/eal/eal_soc.c diff --git a/lib/librte_eal/bsdapp/eal/Makefile b/lib/librte_eal/bsdapp/eal/Makefile index 5a3fc1d..cf4bf78 100644 --- a/lib/librte_eal/bsdapp/eal/Makefile +++ b/lib/librte_eal/bsdapp/eal/Makefile @@ -57,6 +57,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_hugepage_info.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_thread.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_log.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_pci.c +SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_soc.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_debug.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_lcore.c SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += eal_timer.c diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index a0c8f8c..7d8c3e8 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -567,6 +568,9 @@ rte_eal_init(int argc, char **argv) if (rte_eal_pci_init() < 0) rte_panic("Cannot init PCI\n"); + if (rte_eal_soc_init() < 0) + rte_panic("Cannot init SoC\n"); + eal_check_mem_on_local_socket(); if (eal_plugins_init() < 0) diff --git a/lib/librte_eal/bsdapp/eal/eal_soc.c b/lib/librte_eal/bsdapp/eal/eal_soc.c new file mode 100644 index 0000000..cb297ff --- /dev/null +++ b/lib/librte_eal/bsdapp/eal/eal_soc.c @@ -0,0 +1,46 @@ +/*- + * BSD LICENSE + * + * Copyright(c) 2016 RehiveTech. All rights reserved. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of RehiveTech nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include + +#include + +/* Init the SoC EAL subsystem */ +int +rte_eal_soc_init(void) +{ + return 0; +} diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h index df6582d..ba8407d 100644 --- a/lib/librte_eal/common/eal_private.h +++ b/lib/librte_eal/common/eal_private.h @@ -130,6 +130,16 @@ int rte_eal_pci_init(void); struct rte_soc_driver; struct rte_soc_device; +/** + * Init the SoC infra. + * + * This function is private to EAL. + * + * @return + * 0 on success, negative on error + */ +int rte_eal_soc_init(void); + struct rte_pci_driver; struct rte_pci_device; diff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile index a520477..59e30fa 100644 --- a/lib/librte_eal/linuxapp/eal/Makefile +++ b/lib/librte_eal/linuxapp/eal/Makefile @@ -65,6 +65,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_vfio_mp_sync.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci_uio.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_pci_vfio.c +SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_soc.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_debug.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_lcore.c SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += eal_timer.c diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index 9412983..15c8c3d 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -798,6 +798,9 @@ rte_eal_init(int argc, char **argv) rte_panic("Cannot init VFIO\n"); #endif + if (rte_eal_soc_init() < 0) + rte_panic("Cannot init SoC\n"); + if (rte_eal_memory_init() < 0) rte_panic("Cannot init memory\n"); diff --git a/lib/librte_eal/linuxapp/eal/eal_soc.c b/lib/librte_eal/linuxapp/eal/eal_soc.c new file mode 100644 index 0000000..04848b9 --- /dev/null +++ b/lib/librte_eal/linuxapp/eal/eal_soc.c @@ -0,0 +1,56 @@ +/*- + * BSD LICENSE + * + * Copyright(c) 2016 RehiveTech. All rights reserved. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of RehiveTech nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "eal_internal_cfg.h" +#include "eal_filesystem.h" +#include "eal_private.h" + +/* Init the SoC EAL subsystem */ +int +rte_eal_soc_init(void) +{ + return 0; +} -- 2.7.4