From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0062.outbound.protection.outlook.com [104.47.40.62]) by dpdk.org (Postfix) with ESMTP id 68E682B93 for ; Fri, 31 Mar 2017 21:35:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=89p+KPZpYkU/JcyyQrTqAjL5R/UafZ6lsKQI0/qupAU=; b=R3Hrf/7xGSENkd8G6Zgg0eAdRkDh5ECMQob2kYTjI6hSSm9tMvstw0WeAi8nRYNRSl8ldzk+vsiO7Lv7rycEDok9IF3IEIGAV5SYaaMpxdRYdpHh3dPGPEdz+p6hVog8EJCbVp5G0wn+4hLh7HKwpsMc24MyOxDVitKNuOq8wbk= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 19:35:37 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Sat, 1 Apr 2017 01:04:28 +0530 Message-Id: <1490988905-12584-2-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1490988905-12584-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> <1490988905-12584-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MAXPR01CA0058.INDPRD01.PROD.OUTLOOK.COM (10.164.146.158) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: d52c9f4f-e878-4742-5e3a-08d4786d1dc7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:kCYpmTL/t+mgXE81GrOK8KP/DVVUW7aRsjJ0Hq/09NU3DMIX5qIjNNwy0d3Xx6fMCAi6z7Q5U4sqLHJoPR3VBNXGiHEuLCQkCH43HwGzN4qMXioh589vqWAQO4EseE9UcpoTXlvIL9UY57U1x4U2jKv7TgBgkmQtuj8yagT6wxGD62CXyu0Fdnuu55qLpr4QIlTy1W9s8kTEu+pxwF4frS+uuISE16ueEqbPSD8c2F0arZk0ijoJ04BIoHEVAr5/Mhn0ETsRXkxMwtjikzkZfiKIlPAO7GMpzYZ55fw/PNaIRhh/jZMrevSMWWvkVJvpEAwiOTSK4/0+sSZZUAeJuw==; 25:Ar2h3lvN+bvjgYndGrmItUTITPRviNJO6oJM9bsQR8ZtmFTCL/T4XIVVUcgum89hSDPWllpNlaWdqohsd3Aj9Q4S1WMFgkN1xKVACZ0HmE3/gUfeawHhUtlUrciIoKMGyrlyGc7Q9Cxa119vC7plK93puvDbSG+xFeDJnIpGwg+TduH37LISekHsXU/KLRmFhGpK5aDaAGZa092EA1oeuiLypMXh5gf1aZyWJYOEWtvdXoGH0Z3YwoqDFRnGSCt9GsmNaxwnQ1Zab6vsH+y47QM2umlMn79WvC4IKn8bcjVSr/jTsnkb6kjybpo03kvEFu1YyMnJ+XWWl6JhjgMob5osqAbjxz6FSbHAlXPl73eG1p9/fmp5NtQiGR6Ml6PH0RI2fSwYNvkYPxdegWA5tTtSpI3jyR0gTV6grhNrrnL/piJsMZ5kACj6XpblIflfxKY52SjRPM3FHah968kVIQ== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:1L3bXssJ8dmWmUaALRzdBtM5dvxMyGSJBr7BBhQVO2H3dSedUidouTdZQ8SAcvo84XC2uTcAGCnsWMM9Fkq/skxm+5SLwjLsdGt1B0Ci80i1a39uv5C54iTJBv7PuGUWADCOXRajtHquiQCOfI/DYs4q09ZTCRJMFauHof1qx+NO1oPcUvfGIM0KHbofQm/JEt1yHb+DcYjDWxr40sE7vRzwmIa+wK73vRFOxcmcuSs=; 20:uBHkbCqYa+LDMytJKNjZAymoVmeMrgWIo/Mhj0rpc4WnlpaeXUhtH1X3Pw67tUHnbMHNEaH1OEA71CrtJ6rkGjNKm+0EgZxhxGldK3jnsNe+6ouiKicmRYAEsxggU2luwAPUAuzxyNLtTW24lGoI18gzhxr/Zyec6tEwR7dKw4O/vYAuxr7beHcbusBYpNkERLMU/jxJJurjG5cOFFJpmesEp2cCmEgBUQirN8EOQHw9s5HDbvlf4TPWrsu9KcaPJLiRxL6LbuFC6JXmli545/VY8PdtXAZw3QDhRVGzBw5o6gJ4z/ps1MTI+BFEw2AGja5AsvjgG2+wiXjRBS8kQS/JH4m9UPik52lpeLBew0KxCiRFLnGomu1WakVou2RgOxeCcu6h0OAX2O3GmwcaDoGOEcnODY31jE4OuiJKPiwDypE4ck9ogou0PXt6tjPAOgFKrzguk4V/oZyXldBYUvevUF63rTPfn6xYdpp5uySMcd9oc0KLpvpcYLLbHjdU1rUOS76HfyHF2xV/hA6coc5flZwN07KiP3qn2ddFMiefj/b845jBU54fVCbjq1j16z4kIRYNCQhbbqeKeAHR+RDMCTyBK7B5dBGG7BMR58g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(6041248)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(6072148); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:Eh6uEaovml3BCvIITINQV82Cd1P0bT7OKHZIM1ukMki/lKG5v/YdJCSi71g+iP0wHdATeiUK8AAOlwokscsTe0ZjCTZiYiflkqSLXz72D97rkK7ttTQ4quQw4uAJupJiv4ayGffHTx/pHMgmeoYf2gkrNehtMxxRRaR2DPPmCStN5NcRXZvg36J8uCVyiSyH7LKBpnJCFBSc+KsAGZA84b94uNbBrUWso8dd0Gujp278p7g2r/8Zv2X/QjGkvGw7mXqH5J+ifv6TWzcO0G9wPjpDV3S9eBXLVpeli7Fn0aiBxAtCbHH94mnAsXxEH2pmnw9VhXF0dLOxXv+OtYyNp+ohpJzEnQ1OYc45Sz4sSTpD+moW41Pj365rPK0KGvByGtcygpVgoDYl8Y8JMW2a/VnG1tbLPt+tTWWkZlDbPyLb99+tWd/y9jHS9omclXgKiBP47j6Lx5nGiYnZP5w6lIeEQkdKt5t4dR8PkxSaCIBS5uBdfOsMsYQTV2TXZ7VdoxEE5jGpMZJ3Klu1CrX9MBeEkQ+yj68lRhm8WNosTlwl4ohLbfUKWXYIEmzbRkRjXjNA70HIqhymiPtOeuwupymOTaQKdv9mhQpUIIPj18t4p+riqz+bl7luvzRbt3/M+iowBmDO65T22/kbLQGhElRKq1Oxjj8031+UVp0ihgRLAWGdBGVBKv1aSq3XbhXwQuytKQQVO84rFtxWksZR8ACM+mndfxXs4sf7ftCsoXli8yf1wzT9gvg6UZi/9AMF X-Forefront-PRVS: 02638D901B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(38730400002)(8676002)(107886003)(110136004)(50466002)(189998001)(305945005)(6506006)(36756003)(50226002)(25786009)(48376002)(6666003)(8656002)(6486002)(7736002)(2950100002)(5660300001)(53936002)(81156014)(81166006)(3846002)(42882006)(6916009)(6116002)(6512007)(42186005)(33646002)(2361001)(2351001)(76176999)(50986999)(5003940100001)(47776003)(2906002)(5009440100003)(4326008)(66066001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1723; 23:J2uV2omaD6OW9ymNWWNspA3UKtn7trv9EWCurbc?= =?us-ascii?Q?CLnK1aEtMkxiLxn80zj4iOyKpxbkBDQMsWxO6oLBbXoqnzrloDqu7DSeoQiT?= =?us-ascii?Q?2rGuV5GiWgF+d5pxgsV8zDlfGJDhazJ+5gKwJBQBOwTSw1FUtSBAimz/RPln?= =?us-ascii?Q?PEVaz7b8TETmqjW1njk+k+9w8HBuuP0K8ojtliAhLIno8rxBhIRucFy0IEsO?= =?us-ascii?Q?jW8b/GX+Z0bs8KZW/+2VYRTf/9BfmT0hvOm5XllQrGF9Ry8HXqTz8+va7+h1?= =?us-ascii?Q?c/Asc0ThQXdL073N7O/CrpFDIhqE1+SwHx0uu03tky+PpLQw6XD1Ar44xqiK?= =?us-ascii?Q?JhCnL4Xys2QpCp+Nb9tdla/S/cuV+RNC+x2waoxCKyCqJ3U4ZqwrhjvYjs5V?= =?us-ascii?Q?o8BOEFlpS3Tb5wHdqhqKH7JvwSGBERtFIeQvdVVlFGofqpAuiTNJJtTQN06R?= =?us-ascii?Q?PYRi9BI5ZlMSwEv4E2OuUy1qTOMYumIGPZ+E3+o5vRoX2Vp1fRDUN/sR974u?= =?us-ascii?Q?ORg6cTG4SrDLkDBoHwEzqFpaS5dmlqOitPy72oQ+T6Pf/IE76SLL7k2qugi/?= =?us-ascii?Q?IFKqyDjbxAAhH7INrX0CFVuIT2gWyoMiVsQfFaQ/q3r0uy1DDxS7k8p+J4HC?= =?us-ascii?Q?exNZqKHjTY3DhzN3T30WaYNPwysV71fj2w19BHxh161JlVoylrV6zPyAGCxj?= =?us-ascii?Q?xfPtVgt0Pdx7hq/MtQq4kv461ePEYZ16tJbOdy1lVgfqigaC2yXKocGnHsXd?= =?us-ascii?Q?4IYlEjI5WojjFwo+Ex9L3spEEMpnUC1hsVDgH7v5Jhe7YfZQsHq8O1HFoquO?= =?us-ascii?Q?gstrYfgjxjfW6jzNeyJ+THTaCaRnNQQpID8yNhzv1F6vHUCifxdShQyDj7tv?= =?us-ascii?Q?EVFEYL8dbh4KtQts546q4iGU21BxOB6MJK41BTmlHRaC+SVtWpMGeIoM6mfV?= =?us-ascii?Q?XN9HQA1CJYfoyWb8ZycDxSLfVsUjjfM8IeMk1vT1WLHnQBY3fltXnc321WyQ?= =?us-ascii?Q?DTSHyjMw0lXsxqj/kLNWM32TGNASLeW94Vy77CET1FDdvXhMDxCgPbcrGz8r?= =?us-ascii?Q?JUiIZgEvptHnDU2tsIHaYA1XOM9Y/1S2UEA9rlHVqgjrs+6St1RnhydGisX+?= =?us-ascii?Q?nlIuqjOOIUfmHCGwrmQPWjpqwmCKRs6WDjkcOAq7TnD/+nYc3Wrvq/j93ZBX?= =?us-ascii?Q?wlmuaqTJD6VYTcB0=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 6:PP7dx3kkaVNPbr/p28UVvnX9XQDGtg78izg9d+epQVAQLH6zlgW4tOHIR9/qwGkFPfmKR00On8ABRH51BrCMa+xmZScHl3j7oEWD6tvweVyZ6hmM6DpN37UA1ojXGwRakbrnMiXDX64HOew5Jfae0vKsEG/CZyPuO8ETFClSE+mh6zjevRtflyTBXXyhIIigcPkZKg0xXXqfc23Cbh/dp+u8kh3kCyoR63iFJvIPgUD3bIDEXy4iIOYdRvxqvXVceSIFH0Xq/yI4tAb4RZDRJYDXdE7CZxObQjOhOetf8t0kjanS1uyMnp73N4xcjJ0o2tG0sx5ovggEuHgVssCAxAykKxX+f22sMVkeFw2yR+5YvurJZWoC/xNSPKcIUnY6IdKiNUzFRFA8U80uAwQ2Eg==; 5:hyxc+tCu3mRTevxXauXSOVPx2uxE56UZETZ8xpgseFoIBPVVDg0vRgJmIvYwdwdjarzJrWr+sBmsvBNsOpfeQYMm0fiwIh06rMHxKX0IZj3i7mlhvT3tF36RKjctoDN0Ss+Z7bIHyuidB58JDfJFX6CCz0+OfhbfiuxbQLJ7TyM=; 24:B0GeYkIUQzU7JjIEbfkq++aG+GBQ8ypffFuHuDbTErPG+fxeduVjTLMmutYHjp63tg619Ipv0uJt2OitP2SjQ/JSnvVVprRHVrfhCiwaKaQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:fN1yyI45lxqebew3DtJf0UTj1g8LzposjhcH47NlVot4Y8trVm2jE9tORcU6DjlzYB4ZRaCRqD4A/X9+Cu8A3LE8ZrA2ypbKt2JNfPgV80xMdyl6z4UA/AoH8QbYfiGEf3rtEBIrS1sQCLTgz6RS6Yl1GPjEe7fUD188Ms5jCBTK0tzZf6TQK6ZaUwA+RFse8w60vFpEr2MehWsAog2VmXZXlv5Xn0BgsL4+Lr3G+rnpo2YmrAeC3JVO6CvShnstq+3nvV3PXP7d9zja15fUOwTifi0VDIhxCvhy8QO2oG3ha2NOZ8TMnSG3psABpHYS2uAJsZPcDNvi3+FjWVgxwQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:35:37.8605 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: [dpdk-dev] [PATCH v2 01/38] event/octeontx: add build and log 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: Fri, 31 Mar 2017 19:35:44 -0000 Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla Acked-by: Gage Eads --- v2: - Enabled CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF by default in common config --- config/common_base | 6 +++ config/defconfig_arm64-thunderx-linuxapp-gcc | 6 +++ drivers/event/Makefile | 1 + drivers/event/octeontx/Makefile | 55 +++++++++++++++++++++ .../octeontx/rte_pmd_octeontx_ssovf_version.map | 4 ++ drivers/event/octeontx/ssovf_evdev.h | 57 ++++++++++++++++++++++ drivers/event/octeontx/ssovf_probe.c | 32 ++++++++++++ mk/rte.app.mk | 1 + 8 files changed, 162 insertions(+) create mode 100644 drivers/event/octeontx/Makefile create mode 100644 drivers/event/octeontx/rte_pmd_octeontx_ssovf_version.map create mode 100644 drivers/event/octeontx/ssovf_evdev.h create mode 100644 drivers/event/octeontx/ssovf_probe.c diff --git a/config/common_base b/config/common_base index 901ac3f..693eaa9 100644 --- a/config/common_base +++ b/config/common_base @@ -463,6 +463,12 @@ CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV=y CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV_DEBUG=n # +# Compile PMD for octeontx sso event device +# +CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=y +CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF_DEBUG=n + +# # Compile librte_ring # CONFIG_RTE_LIBRTE_RING=y diff --git a/config/defconfig_arm64-thunderx-linuxapp-gcc b/config/defconfig_arm64-thunderx-linuxapp-gcc index a5b1e24..980f86c 100644 --- a/config/defconfig_arm64-thunderx-linuxapp-gcc +++ b/config/defconfig_arm64-thunderx-linuxapp-gcc @@ -46,3 +46,9 @@ CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_RX=n CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_TX=n CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_MBOX=n + +# +# Compile PMD for octeontx sso event device +# +CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=y +CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF_DEBUG=n diff --git a/drivers/event/Makefile b/drivers/event/Makefile index 678279f..b5059dd 100644 --- a/drivers/event/Makefile +++ b/drivers/event/Makefile @@ -32,5 +32,6 @@ include $(RTE_SDK)/mk/rte.vars.mk DIRS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV) += skeleton +DIRS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += octeontx include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/event/octeontx/Makefile b/drivers/event/octeontx/Makefile new file mode 100644 index 0000000..d72ad46 --- /dev/null +++ b/drivers/event/octeontx/Makefile @@ -0,0 +1,55 @@ +# BSD LICENSE +# +# Copyright(c) 2017 Cavium Networks. 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 Cavium Networks 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_octeontx_ssovf.a + +CFLAGS += $(WERROR_FLAGS) + +EXPORT_MAP := rte_pmd_octeontx_ssovf_version.map + +LIBABIVER := 1 + +# +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_probe.c + +# this lib depends upon: +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += lib/librte_eal +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += lib/librte_eventdev + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/event/octeontx/rte_pmd_octeontx_ssovf_version.map b/drivers/event/octeontx/rte_pmd_octeontx_ssovf_version.map new file mode 100644 index 0000000..8591cc0 --- /dev/null +++ b/drivers/event/octeontx/rte_pmd_octeontx_ssovf_version.map @@ -0,0 +1,4 @@ +DPDK_17.05 { + + local: *; +}; diff --git a/drivers/event/octeontx/ssovf_evdev.h b/drivers/event/octeontx/ssovf_evdev.h new file mode 100644 index 0000000..ce6b7d4 --- /dev/null +++ b/drivers/event/octeontx/ssovf_evdev.h @@ -0,0 +1,57 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium networks Ltd. 2017. + * + * 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 Cavium networks 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 __SSOVF_EVDEV_H__ +#define __SSOVF_EVDEV_H__ + +#include + +#define EVENTDEV_NAME_OCTEONTX_PMD event_octeontx + +#ifdef RTE_LIBRTE_PMD_OCTEONTX_SSOVF_DEBUG +#define ssovf_log_info(fmt, args...) \ + RTE_LOG(INFO, EVENTDEV, "[%s] %s() " fmt "\n", \ + RTE_STR(EVENTDEV_NAME_OCTEONTX_PMD), __func__, ## args) +#define ssovf_log_dbg(fmt, args...) \ + RTE_LOG(DEBUG, EVENTDEV, "[%s] %s() " fmt "\n", \ + RTE_STR(EVENTDEV_NAME_OCTEONTX_PMD), __func__, ## args) +#else +#define ssovf_log_info(fmt, args...) +#define ssovf_log_dbg(fmt, args...) +#endif + +#define ssovf_func_trace ssovf_log_dbg +#define ssovf_log_err(fmt, args...) \ + RTE_LOG(ERR, EVENTDEV, "[%s] %s() " fmt "\n", \ + RTE_STR(EVENTDEV_NAME_OCTEONTX_PMD), __func__, ## args) + +#endif /* __SSOVF_EVDEV_H__ */ diff --git a/drivers/event/octeontx/ssovf_probe.c b/drivers/event/octeontx/ssovf_probe.c new file mode 100644 index 0000000..9412878 --- /dev/null +++ b/drivers/event/octeontx/ssovf_probe.c @@ -0,0 +1,32 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium networks Ltd. 2017. + * + * 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 Cavium networks 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. + */ + diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 498369e..c07b855 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -153,6 +153,7 @@ endif # CONFIG_RTE_LIBRTE_CRYPTODEV ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_SKELETON_EVENTDEV) += -lrte_pmd_skeleton_event +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += -lrte_pmd_octeontx_ssovf endif # CONFIG_RTE_LIBRTE_EVENTDEV endif # !CONFIG_RTE_BUILD_SHARED_LIBS -- 2.5.5