From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0061.outbound.protection.outlook.com [104.47.38.61]) by dpdk.org (Postfix) with ESMTP id 797AF2BF1 for ; Thu, 15 Jun 2017 10:59:52 +0200 (CEST) Received: from CY1PR03CA0026.namprd03.prod.outlook.com (10.174.128.36) by BY1PR0301MB1190.namprd03.prod.outlook.com (10.160.195.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Thu, 15 Jun 2017 08:59:49 +0000 Received: from BL2FFO11FD016.protection.gbl (2a01:111:f400:7c09::120) by CY1PR03CA0026.outlook.office365.com (2603:10b6:600::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Thu, 15 Jun 2017 08:59: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; 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 BL2FFO11FD016.mail.protection.outlook.com (10.173.160.224) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Thu, 15 Jun 2017 08:59:42 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5F8xWSV012830; Thu, 15 Jun 2017 01:59:39 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 15 Jun 2017 14:28:37 +0530 Message-ID: <1497517136-11824-2-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497517136-11824-1-git-send-email-nipun.gupta@nxp.com> References: <1495735361-4840-1-git-send-email-nipun.gupta@nxp.com> <1497517136-11824-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131419907830289785; (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)(39380400002)(39860400002)(39840400002)(39410400002)(39450400003)(39850400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(50986999)(2906002)(77096006)(76176999)(189998001)(6916009)(4326008)(36756003)(305945005)(54906002)(38730400002)(2950100002)(53936002)(48376002)(47776003)(8676002)(8656002)(5660300001)(110136004)(50226002)(33646002)(5003940100001)(104016004)(498600001)(356003)(575784001)(106466001)(86362001)(8936002)(85426001)(2351001)(50466002)(81166006)(105606002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB1190; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD016; 1:mSmOpQRTyOfLqTrSW9uFtzNwR4ve/lwr1Qp4LTtGIEcB4RxY3aMhVuJuimP8mu6qwN2+0dc6v1c9jyKf8Qu1UrzG4t4RebZAzExffb3GiYvnDzfpotKxfMQGKLH0vrFTIC4XXNmvXaEwtoMvgEja7fu8zDz21tzic5Cv19rzREsZ3fqgfHjaKYLOhAl9LZqfKCsAEQobxSBLzHRC7FIHx1e0STK0CLyfZ3XS6uwhy0LmuCPOY13R/3DGliTB30qOJq7Y7kOVOBDheN7Phy0QxBlCToobvLfkXVbw71U8lad4k2iyvoBE/VtNJ6B5xhAM4wXDwoudL6tZmbNnvId+/W9f+k2RqsTCEOTCYCnNUmH+eCl9kYvTOlBEH4Wucbgepth4ebzuaSZHOPUWkf8g2WPWa83dAWuBSXdAc7ee8abz4bzddpReesjuGUABl2fR4YMHD+K6wWCUh58MtgEFZAFAZd6bQkbOmkDcZbvH9dQl+n0XU79ATWU+p4bANBVzq2F39Dq+n8iL9oiQ+Xkt5YpevVZK4Hdwr72fj3r2nQikuO/G7LYK7HyadG2a5qgxPu6wiseqcNjL28IutMCgqOsPTNmrOhgK54xjaZIW9ChaVWZaYSw38iaaSIpKOJtiPMlXdqq5FmBy89z+rYdBEkB/pA6t+lnMhAlzaX7+S08/hw9nWRajhq+6IAVVyxJaixOPS25aUJtzzZ3w5JOg+Fl1zHVtdQM/c3T0+yj5hdM= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0301MB1190: X-MS-Office365-Filtering-Correlation-Id: 557abc40-e285-4df4-3418-08d4b3ccdd18 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY1PR0301MB1190; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1190; 3:MNvSeKTeMjikwQx75ARzyG7gm0Qvb2DOd+WfnbmdppJP/uknoETiyZaHI4guY0V1C49C7hsQDcGePgCn3Hu0VVzGDcZ+GYs+P942Fi2v3pKcuUa0YTHSslIURTh42T61zBRj8OcnuyHCnMPxiwyCkOw3PDI6pvmbLwASKlAwIY927T9FGyvo32FRaZ2RtxQt+KgbHQGt+CDFrnITPFZZafjPowAtKY6/zoZAYFGMukm8mnRykSICPCk+P0mgtjFULuJiUFkxAGNFLA1pn+TchZoQENIANkW4W7vwnQQ6oUukkPiNwRWmvlh+bFBgS6F0gzwglN8FHMcbUPfdYbiCHXwwMX8cdvykACCOHY0TCA684rfpzbObueEcJMTF6vOIRRL49BF9B4duIVx3uiuil6isIjbil1zY8jpRxYQ1JduRqdwgZvPyR9tNHYMRtlP6; 25:P1flvVJcNxlWB5rnGWQvebR1ciFLZoSv99pytvfyVhXREecatOPpkzq+VPDs4Bcqd3BICHmfmYyoBKuUUluZrIxwvQYs/JOn9Po0z+hld4sFCIeEfrcWH3XwKh5K+ozZ+gFdL7ylgxFmUvTjM96bcHT5ZkK3dOPXfW1Y9p3kfz5IEnqTxNe9ADcrQ9BE85MLnuwBlwYwlRept3yYQhEPTbSK6reDKpboa8qtoTnRh67AhcT4P4OfcNTGkZ/A3KK0N6EWc649cpXyozIy3+5IPwZ1it7bTRV/pnrLjYtL2FxfZdGrV1HbTABrHD4NhycC8Di/trtdSeYGJvS1GyyBRPC5SgniD+ihwiDZo7lv7clAvn+DcBEp/b5/Rqo0YVSHzLbfcFiprFE5NnKS91a9YRqNOeBJAIk0EM8JMJ3Rj5WYXsm3gT+zabGzqhqcP6ql+d8mMF4QTzhFc37w+b3W4obZMswSSshsnPAeUmJK+/Q= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1190; 31:c6kfyLU1LpmtQN0wcl84bMWNYCwMWu8MPZv1pcXI1Zohdc8o631b3TV6ynG6A4N68T8PIwiVdSjTYhLCU2PUv6f5FYoDDRThLgKASBwRcJdfZojPmIND6P4ik22yZTSqJFgm4x1IhR2b/qcqXC+TxXUTW69K3PDRvyLGa9c8qXoEJQ+HO0jtsxmvRcoh417gQ2YSZXdzXTHEdRs1WE2jfeQWrHoqs9BZY6/1KiH7oRvqeITt8xjkxVzX398oP6hhINH00SaKkyrGx4aTbbNVYw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123565025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY1PR0301MB1190; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY1PR0301MB1190; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB1190; 4:akpaQP1Koojt0kBt07MKKPdYMV9H1FbLPdSdTzGo?= =?us-ascii?Q?lknRmqsFMgep7YcsITbnadROylLGdsutic/z4ycC+hI3G7DpvP3nzT+D5n+W?= =?us-ascii?Q?hZgT4/rgTnVHapTxAE0VgVmEQ33221kUKlXzFMAMLhbbZkbQJRtHSVTQn/en?= =?us-ascii?Q?0o+HG9FVvOY2uwC7um4+1O4ng4IFvlxxzHUMqISWN0tZlEoLgRbnOFN/t2Ic?= =?us-ascii?Q?sp0E2tFKgVsvBPUd4/9JOcabpmWzOn8aKqArTXOL50Vx3sO41tZB5CwOfRjY?= =?us-ascii?Q?g9t6BazevB+wKQj02MoXNHKh27Pj11eKlcL51+VULx2q3sRDjhJs1l0wHOV/?= =?us-ascii?Q?4TaXSeDI62GDQArR/d+h2hw5UhsnAvUuoCNW6RubHkJjRhXclRaUNsvSjRJL?= =?us-ascii?Q?v6WUw7fJ1FdA72SMw4pJzt1oo16mV8IbSJB6G09jGkGICukUh6lsVy8fRUw+?= =?us-ascii?Q?e0+/LrsQ7OBoDjV5xrV7xJmeUIK74erdqeHfSO7wFtcJRRwyGOMbhSwfXiIX?= =?us-ascii?Q?78e2rgeJDu7fIyb5MkUPQiRwQ6Nm4WZASKte/3Cnes2Ey60I7H0DcDdWKs4n?= =?us-ascii?Q?+WCy28sXxCOkZCFxEAzhVbN74VLORuoXik/wLpKmUWxokzqjDPf3lZIc8+Ak?= =?us-ascii?Q?9j88WRgI7YMrKsqpaxmOHEhN214r5BBXrOJYUdyoeLUusFMJTFbaaHrzcLZQ?= =?us-ascii?Q?2GvnnjXsMk1CFDefYRIBt572ZnQ2ccJ1aXB74lQbZSXgGiIIefSwPJ52IkwN?= =?us-ascii?Q?P091FOiSW7EQH+b7TcBM85y5+PcVAEXqUCgdV9UaZyWoxjzdOM7GtBwV4SIL?= =?us-ascii?Q?1h0/OpcUizxyqxIScZ+rtElaB80m7RnIu4QieHwD48qVkhX0zceybUH1nPjK?= =?us-ascii?Q?ZPRW8NlJI6WeK3/I30h3ASgIrAPw4heFlk92fmGKk9wz0jlY4bPt3/ZOm6a0?= =?us-ascii?Q?75EFfCBwRgtS7a3WEKwHNW7nFNL0LTvLOOAke5CNLRxzwYQITGz99tRhs7d2?= =?us-ascii?Q?SChTGtZamtALxFZtE6rLV5Pqqlst7QEhe8t1dDP0XFqzyslFCyMyD7U5X/X1?= =?us-ascii?Q?6Kn7vtkS0iOy3T3Ldkfd+eZI8QmC/WUZSi+f1GWjSf0rXPea2H7dyJxnzpm9?= =?us-ascii?Q?T9bda2hCWFDSw11HQBzNjt2Xeqd1qH0fKV+WUD5bV3Qg6NO3XNAwv/c91A5w?= =?us-ascii?Q?UNByTuA2B84nakltwS2WK12DrMj3giX+Ie8W+04V49mA1OEidBc3/0hdaRM6?= =?us-ascii?Q?nNaBqVkiwe4hMstUsQgAGNiMaqg7LLwnaYpTGwIz?= X-Forefront-PRVS: 0339F89554 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB1190; 23:S371q+1jjqaon0EMhPthLRnt6hpon74unYPEu4U?= =?us-ascii?Q?xhHHDFmtlc91S3eQwbIcfP+AFA+37v3U/zWpCn/r44l7q6khx94hsi8Z7ve7?= =?us-ascii?Q?IObx8Hc3qTpXW3uRGkdFrcEWBuFZWnY76QQLX1hLw7g1V0+Fc5RRbllAkGAC?= =?us-ascii?Q?txXFtLj88YHmddB/gfNXGcxBZxZCxifv6JKqSnjXI7JBksJZmGqfVk+VjmdO?= =?us-ascii?Q?ac6nPH+VhoORPY4a5917C3zuspl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GZkpNSVtm8w0iYD8iB1kHwrSJEMm6OcSYQ1ClkN/dczsvY1KuFWMCSXfvQUcWNXIS4wN86sgqFneXwwIcUBaiLCVJnrFT+oEYlnEKR66L6kUMpRjMkW0Oc5hQMqFwStALJk3vWNjV0F4bg+6X661pvbC40j8k+7fIPvM5qdgjm7LWOqzsNrk/3m27E0jIn0NuFQi0xwr+ldEgvvjvbQWgFaZCXYtFHOOFSuuo72sHeWTkfDvTLbL1EEaBA==; 24:QWeAzBZfBLQargxJ2H/aqx9xvacEsSZfnXc+IgW6V9jhWHcNvt4FZSs9pJYqn6N1YMLl2vnX0N8ca3LZsk6Z1lMN6SyyI8MUwPPoU2kWEO8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB1190; 7:+NH67v6bEXjYbiRzFsGJh+z2Jt9AuzHOKZSceEIBK88Hc/PRZ9Cd14FEcpPR5gmA9UnjQKKPGmiwcgDu5vAGQfu9oinJicYmg0swiEsM0trgiRE834G68N4b+12y7QYZwpnXDn8RrErqeK8F3IYvI7+vE34pM+IFCBLnbH3AAh+IeWd57yhG7nFqe1UdCU6hvFll0+Lx5MgOQ2705QBelvnMVHmVBgBAbthE76/ZtuJZp6RxhM65PlT/mpRg3tdmSjb7WpnllSInxfzB/0uC/CqbY93qSb79ZrvsF2TJIzO7AmvGGIzpvxza70sAYbwWJb3SMpWq3MYQ1ST0Is8Usw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2017 08:59:42.8417 (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: BY1PR0301MB1190 Subject: [dpdk-dev] [PATCH 01/20 v2] event/dpaa2: add basic build infrastructure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2017 08:59:53 -0000 Signed-off-by: Nipun Gupta Acked-by: Jerin Jacob --- MAINTAINERS | 4 ++ config/defconfig_arm64-dpaa2-linuxapp-gcc | 6 ++ drivers/event/Makefile | 2 + drivers/event/dpaa2/Makefile | 56 ++++++++++++++++ drivers/event/dpaa2/dpaa2_eventdev.c | 74 ++++++++++++++++++++++ drivers/event/dpaa2/dpaa2_eventdev.h | 51 +++++++++++++++ .../event/dpaa2/rte_pmd_dpaa2_event_version.map | 3 + mk/rte.app.mk | 1 + 8 files changed, 197 insertions(+) create mode 100644 drivers/event/dpaa2/Makefile create mode 100644 drivers/event/dpaa2/dpaa2_eventdev.c create mode 100644 drivers/event/dpaa2/dpaa2_eventdev.h create mode 100644 drivers/event/dpaa2/rte_pmd_dpaa2_event_version.map diff --git a/MAINTAINERS b/MAINTAINERS index f6095ef..fe1a25b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -580,6 +580,10 @@ F: drivers/event/sw/ F: test/test/test_eventdev_sw.c F: doc/guides/eventdevs/sw.rst +NXP DPAA2 Eventdev PMD +M: Hemant Agrawal +M: Nipun Gupta +F: drivers/event/dpaa2/ Packet processing ----------------- diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 314a0ec..19fa2e2 100644 --- a/config/defconfig_arm64-dpaa2-linuxapp-gcc +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc @@ -80,3 +80,9 @@ CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_RX=n # on a single DPAA2 SEC device. # CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS=2048 + +# +# Compile schedule-oriented NXP DPAA2 EVENTDEV driver +# +CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV=y +CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV_DEBUG=n diff --git a/drivers/event/Makefile b/drivers/event/Makefile index 1cf389e..0f12cc9 100644 --- a/drivers/event/Makefile +++ b/drivers/event/Makefile @@ -39,5 +39,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw DEPDIRS-sw = $(core-libs) librte_kvargs librte_ring DIRS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += octeontx DEPDIRS-octeontx = $(core-libs) +DIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV) += dpaa2 +DEPDIRS-dpaa2 = $(core-libs) librte_bus_fslmc include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/event/dpaa2/Makefile b/drivers/event/dpaa2/Makefile new file mode 100644 index 0000000..b76cf58 --- /dev/null +++ b/drivers/event/dpaa2/Makefile @@ -0,0 +1,56 @@ +# BSD LICENSE +# +# Copyright(c) 2017 NXP. +# +# 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 NXP 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 $(RTE_SDK)/mk/rte.vars.mk + +# +# library name +# +LIB = librte_pmd_dpaa2_event.a + +CFLAGS += $(WERROR_FLAGS) + +CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa2 +# versioning export map +EXPORT_MAP := rte_pmd_dpaa2_event_version.map + +LIBABIVER := 1 + +# +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV) += dpaa2_eventdev.c + +# this lib depends upon: +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV) += lib/librte_eal +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV) += lib/librte_eventdev + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c new file mode 100644 index 0000000..191901e --- /dev/null +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -0,0 +1,74 @@ +/*- + * BSD LICENSE + * + * Copyright 2017 NXP. + * + * 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 NXP 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 "dpaa2_eventdev.h" + +static int +dpaa2_eventdev_create(const char *name) +{ + RTE_SET_USED(name); + + return 0; +} + +static int +dpaa2_eventdev_probe(struct rte_vdev_device *vdev) +{ + const char *name; + + name = rte_vdev_device_name(vdev); + PMD_DRV_LOG(INFO, PMD, "Initializing %s\n", name); + return dpaa2_eventdev_create(name); +} + +static int +dpaa2_eventdev_remove(struct rte_vdev_device *vdev) +{ + const char *name; + + name = rte_vdev_device_name(vdev); + PMD_DRV_LOG(INFO, "Closing %s", name); + + RTE_SET_USED(name); + + return 0; +} + +static struct rte_vdev_driver vdev_eventdev_dpaa2_pmd = { + .probe = dpaa2_eventdev_probe, + .remove = dpaa2_eventdev_remove +}; + +RTE_PMD_REGISTER_VDEV(EVENTDEV_NAME_DPAA2_PMD, vdev_eventdev_dpaa2_pmd); diff --git a/drivers/event/dpaa2/dpaa2_eventdev.h b/drivers/event/dpaa2/dpaa2_eventdev.h new file mode 100644 index 0000000..959f443 --- /dev/null +++ b/drivers/event/dpaa2/dpaa2_eventdev.h @@ -0,0 +1,51 @@ +/* + * BSD LICENSE + * + * Copyright 2017 NXP. + * + * 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 NXP 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. + */ + +#ifndef __DPAA2_EVENTDEV_H__ +#define __DPAA2_EVENTDEV_H__ + +#include +#define EVENTDEV_NAME_DPAA2_PMD event_dpaa2 + +#ifdef RTE_LIBRTE_PMD_DPAA2_EVENTDEV_DEBUG +#define PMD_DRV_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#define PMD_DRV_FUNC_TRACE() PMD_DRV_LOG(DEBUG, ">>") +#else +#define PMD_DRV_LOG(level, fmt, args...) do { } while (0) +#define PMD_DRV_FUNC_TRACE() do { } while (0) +#endif + +#define PMD_DRV_ERR(fmt, args...) \ + RTE_LOG(ERR, PMD, "%s(): " fmt "\n", __func__, ## args) + +#endif /* __DPAA2_EVENTDEV_H__ */ diff --git a/drivers/event/dpaa2/rte_pmd_dpaa2_event_version.map b/drivers/event/dpaa2/rte_pmd_dpaa2_event_version.map new file mode 100644 index 0000000..1c0b755 --- /dev/null +++ b/drivers/event/dpaa2/rte_pmd_dpaa2_event_version.map @@ -0,0 +1,3 @@ +DPDK_17.08 { + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index bcaf1b3..38990c0 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -171,6 +171,7 @@ ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV) += -lrte_pmd_skeleton_event _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += -lrte_pmd_sw_event _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += -lrte_pmd_octeontx_ssovf +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV) += -lrte_pmd_dpaa2_event endif # CONFIG_RTE_LIBRTE_EVENTDEV ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_PMD),y) -- 1.9.1