From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0055.outbound.protection.outlook.com [104.47.34.55]) by dpdk.org (Postfix) with ESMTP id 897AC99B2 for ; Thu, 25 May 2017 20:08:21 +0200 (CEST) Received: from BN6PR03CA0027.namprd03.prod.outlook.com (10.175.124.13) by BY2PR03MB174.namprd03.prod.outlook.com (10.242.36.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 18:08:19 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::125) by BN6PR03CA0027.outlook.office365.com (2603:10b6:404:10c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:08:18 +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 BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Thu, 25 May 2017 18:08:18 +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 v4PI84WC022340; Thu, 25 May 2017 11:08:15 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 25 May 2017 23:37:32 +0530 Message-ID: <1495735671-4917-2-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131402092987472103; (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)(39840400002)(39850400002)(39450400003)(39860400002)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(106466001)(575784001)(50226002)(48376002)(105606002)(498600001)(50466002)(8936002)(305945005)(85426001)(2351001)(81166006)(8676002)(104016004)(76176999)(50986999)(47776003)(33646002)(356003)(189998001)(5660300001)(86362001)(4326008)(77096006)(38730400002)(110136004)(8656002)(54906002)(6666003)(5003940100001)(2906002)(36756003)(53936002)(6916009)(2950100002)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB174; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovr; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:rhOaldRgmqIudwsrzadLA/XJvpvTsSTYrX0pwFXZotIq0OYZqteGClI4kf6fgUGbe2UaiUKk7WyHt2fngyhLFQ2XTFuCYS0mB4A+/+0Y1X03ak4j3otG3W3XZA6qjoiXYJLD7onPpBC/KP0XoTPPhbwXWWP91AayhurQ0+7CWN+je2pHPbeje/+mm52V8LM9amUjygjtS+5l1tR4XtyInNEjSq5jfJDZRYoY2mpySS8ho/+C+30JGwAtZql1LXzuzdcI9NOjD459TBvSKHdYwg4Lf9+/zF8Vv8j33mmHV39RQCR3PLLmwJypgk9pPuSX+X3njZsglZID5X/lDo22DVLmnys15LeAyFFqnsFi9XASJnwRcUiCdWuplZoZ99uj3fAtnaJRL4Yx4MkRMexPP84pitjsWguGAZkUQSvdBLCvmVV2R779ULoPuQwK14hsXCflXLS66glgcVjPrdAYM8ih8PDZTSJQOJlWVZKEGQb4O+BsKr45H4/zSTqRHrW0HJ9jDMYZyoKSjxylgscyIw2ww4/OVVbFbsu1jiPkmr3N/gLhmkrtn9OAL6qyk4W9l/9IGrnCpE23qfjAxgvM+7yI4SPSWseLD5+x3Aww0mvEt8FYO3cgexGluqgfqwMIOxrQozHQiEB6vG83Y39I90Fh6EbSrxmMQ5EBzNUGgRykahjqwgPQbSHaygd20RYebJmYFxEqFxsb3/XZMOacbVoBjSTZlK6dkDZVxgw1qTw6smynCRfII+jAv9trYSEzwOPesb/U/g9DsniIsbUr9A== MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY2PR03MB174: X-MS-Office365-Filtering-Correlation-Id: aff7e5b8-3491-4b89-7789-08d4a39905b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR03MB174; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB174; 3:0t4yL3oCNMdh6OrW9q7LwnmaWNzbOA6UfPnNbHxt9oKp2qDJzAHhvCODbPADNG54v1Zs6cGyaCsqjDFpz6zZT2MAs95MzoSRVVr1/zeQXLC/1Nlnhss4pdbMSg/YK062d82ZLlt0yy1QmgF/Z7psHD/TQqIO30ZHLQRDnOhow+aCU0a/OJYUiq8NMPgkod221MPfSXW1yPqnY+gSJQop/c2Ifx9QIRre2fEpGKQYycVa9m9ctg5arMEvh7mJMtkWAXyJ2wa8rxA8M0KpS6x79sqqHkdGT9s4f+TQwph7CTr+89iX7v/a/vwY9gJ5dhjM/tLXkc78G/DtpnQZdIYO4O3dxz3kgMJ2pSi2q/eFC+Zm2qXz79N5DssUQJvwGMjo4o/APOMvS4LcRzaSpwS+q76zXFiJcrdGH52PEaIHinIUOGANRau6LHLUkG9lkPnk; 25:uFakl0BiRBmkFn4zBTTw2GVoJMc2eXWQgPrBo66DW6sEYtbx48ytgJ2SoZTV1Lve9jfJi1JbqDY6mTrDdFTJdyz1M+s8hkI6iC+z4lhoL8tcKC9jWTfVAD3dsGa+jyf+5OkB1OALMmo/nT9PxHuJy/jUwXzY/rV8skLVIGHiJFY3ICiRy4baXCnmXAOYjEg/uWz+7SdM6rMlpp0XMoQWi2SfFiyyeK19DkEL/QRDd3Ul00pegZQzf6cq1BNyAFxtUn8vNE7P6bhUYiEvmuTciM/QE2hn9EBvTypNou0VPIUr9myCPx7FUbay9nN3EtrD4rRwtg+5lWSk0KOB9UEuFBzr25qAdafybtNjI+UeJzo1NgCk89RkFDoUyBNG1px306HZuNORNSB9IcbQs9bY4TpPWpMdiLzPqA0BR73fMfqIxukBSaIJbr8A0VI/yPMg1xPHYrObXItdwfPBTVS3FNbgtgWXAiE+N4G0Jof38Aw= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB174; 31:CpKpmbg2RL+2qmxYji0BsZRh1lfv943IutuE1NS2RYcZiRCLeZTGiyOkkpys9Q0FVzctqgHGE5yHah11quKB6eCMbLX+OynOV+2E43eQH9bG/jMwRpL3LxjQD5eFtPEhrdjScWqM2m8OOd3MXxTwpntOcthdPse9MIja+b+ykT7XaZ5Altbs02NMR+lhrOU+3Q7izj3N8dbuLXDz2uM441CvHuRnneOE4mQaT36LypFM6ltiYzr+aMe7ixMGDLLwetQVXpSGkfmiVQ5fgtWEDw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(66839620246622); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700054)(100105000095)(100000701054)(100105300095)(100000702054)(100105100095)(6095135)(601004)(2401047)(13023025)(13024025)(13018025)(8121501046)(5005006)(13015025)(13017025)(100000703054)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(2002001)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123556025)(20161123561025)(20161123563025)(100000704054)(100105200095)(100000705054)(100105500095); SRVR:BY2PR03MB174; BCL:0; PCL:0; RULEID:(100000800054)(100110000095)(100000801054)(100110300095)(100000802054)(100110100095)(100000803054)(100110400095)(400006)(100000804054)(100110200095); SRVR:BY2PR03MB174; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB174; 4:5BrTjiYhaLfGRbi20HrfTN7luPvSBOzF9tTeoXFpE/3?= =?us-ascii?Q?Sp8nDKlOTgsraol+siO9rFwl27lBhLOJCmQ/l02X3gQQVnnqeSzmLCWrtBuy?= =?us-ascii?Q?1bJs1GStXU2O59ASV30I55uNmkqGlFJo864+KG++nEkdbPGkN9A+KLz/Ks7j?= =?us-ascii?Q?HTmiT8wxvg4wwnTcRBps+omzg+8VjZuzJgZ6Nm9vjgHn/aUA111izQ8i/03R?= =?us-ascii?Q?iRPMpos8n9qL65SZgoXBsWehdnjTpe5eRlfEOdju+ap5fh60lCayNWItuGro?= =?us-ascii?Q?YjiVwEI3pgwK2QfBxYoHH2OEkyN143zyqWkGECAcal8qLKbkeEYxvjrpmi8p?= =?us-ascii?Q?sR9jB/3kVgOJiLIW+uK6rlxd75tidsIDHUL2orjOpv/+KDe3pX8R7Dhrhgu3?= =?us-ascii?Q?Lbg9b3y6IobdufGJCvBbU1miLtiBG/vCrCH24OJRUm/lLLvNa1JLR/jweiVc?= =?us-ascii?Q?9wn+WMdFn/ziNNISG/z87ZLS+tTrCDA28LXQH/th8ewsslf8g+F0anKGykmo?= =?us-ascii?Q?/LGIO6tFdVTxRPtBewW441fMOktYOfXDK3qnGCP4jo+d6C/B2jr8N4cCRK8S?= =?us-ascii?Q?DPWof3F6xmvMqridFFN9qhQAD6SvCgzHoYSiLVbkPnc3ctYPJItkx5kvygEA?= =?us-ascii?Q?eFqQ0oTTDeM5gpNtECIhr2BWwpu3qlGjnTcurhRI/F0eJO/y06mSEFJHjVln?= =?us-ascii?Q?53bfzCvHtn88T+PaEMQ9zVoSlMUcla9/UvXLDCTkRrUVPymsUPBzeiQFXdmy?= =?us-ascii?Q?0cRNonx2QzoSl/h++WtiQ2zPN/tnfMQt73xvk9KF48YUhVuVNOVL0V4UgkUX?= =?us-ascii?Q?rlY6oY8bSV1tT7gYNLmrMltxHTttVVyNiguJxlLD9NReUBQA/a06/htKd4yr?= =?us-ascii?Q?l5ibHR/yAeo4GuMoKK+KZt2CNAANFkwwf3qnqPCIjr+LUF4Nl0ZUw9nLPXs+?= =?us-ascii?Q?3WWo9MvJaQiwdTyxpraP63Lr2ICzqPFEWIEefv2zXheOf6b5eElbgB7uydo8?= =?us-ascii?Q?9k3bmcQIDX4axjUJfbwa4DAHsQ6obfIVHVrel1fvXGgYTkERTK5jANtOPWYK?= =?us-ascii?Q?fjwVXGOUPCxx7FNlNFtGq101+UHLVkyMblg9rFfH8mi2Gon2z75+Zpl223RG?= =?us-ascii?Q?a2H5S2flCv3TXgpV5N0YRO1Z5p+FP1KlSG//if9e+t+d3a6D9QJQJDVfhuAX?= =?us-ascii?Q?oToF5mPwJx/0JgGML56mx3p8wbRaGlQDd55NeBLHfTyTqcsCX5a64Fj/tiXq?= =?us-ascii?Q?oOhl8WOwbOvfHpIOpewE14xxSrwOEZzCmYyxNQ/9yTZVQUGxH9zXeaUWEtdV?= =?us-ascii?Q?wKiVBcTaSGNJxkTIcNupde890JVmm1CiqTKyi5wNPfh2cUNTgMQwXidcvvNa?= =?us-ascii?Q?isQbOKhPg07LI4MGCtjNtfn8=3D?= X-Forefront-PRVS: 0318501FAE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB174; 23:kIsR3imcXimMVGJzuj7/r8l/GY4QJsVbk+y08OXneN?= =?us-ascii?Q?zGewtzH24c9BHfhcD9HtwJ4EPVTCmm/shJvaQn1dk30x8aNPpinIazcPbUWP?= =?us-ascii?Q?gkvLAPKUOFfR8ko+McHbWyXHGWFuAsmxhT8DIvT5TnQvzzFCP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r/6AgZtChlDn/oCE/UegSlUzH1iu3UbfhZtsvXhfvUVFVdNpMqxRHGggOWEKPYMLoDnZCQTWGCKTKi0P248cGuqfiM7cg3g/54ubs9epeX3/lDYWwuJ3XY/pkPxlU0cf9KzY0J5A1AOvPMn/NFF5zDs7dEUVhQqqW2a/oRcaFB8dxNu3B/Fb1Y+LiZdx/oxu2k3GCAUsAxkIe26Esu0yJXUq1XBTaHRB3k3B2KIjqNmXncTT18msuegGxmm/K7jC0lxal59nBQBM4+36dZxosuqSYuDDIyhm6DdREBVo0BeysJtW5sfYpJsbqag+Idisnwk/zKdNQvoFfVW0zw==; 24:/pSeC2kJBOfTw0AuBDaxwzYEI3I7wMpz2Rz+gGR7c61vleJ6/w8kstFxKoxSMcwdvmlj041e2e+bdx0ScSABQRhUZhRN4iuewEkgiRWxn8w=; 7:Ve3VqcySjhnCdbHo/IwSPpzUyxpAqLBVfaCcKMpwfcQ/q/tEvqMBqAWCNjz5ebLnc2ootJUSL7ufboXTVs0P25kTX8sp6wRdgtxZGy1KoF9Lir2rU7l7O9AdK5RKpalhnoA6UwZC2/oFTfHXS5JATDm3ZQHjatNjRNdk+BqcYwdI3sZMnxB6+WJM/56O0eLkGdEpR3qntO8qhoNIoAsQA6gpO/AL8jNtxn+MnK9pKmSPgpknmm1l66WZJYQAlQ3sGKWb3rrk6bd1gUAHS9yalHvixv2DocRbudynCMoOV6a5aAza4pCq8xbZ5GuDTDVxH95TsjwlfRG/t82L4NK6UA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:08:18.5444 (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: BY2PR03MB174 Subject: [dpdk-dev] [PATCH 01/20] 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, 25 May 2017 18:08:22 -0000 Signed-off-by: Nipun Gupta --- 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 afb4cab..45e284e 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