From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0072.outbound.protection.outlook.com [104.47.33.72]) by dpdk.org (Postfix) with ESMTP id 6FED7F932 for ; Fri, 3 Mar 2017 18:29:13 +0100 (CET) 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=37JxyOwjSL7ss5IOxQ+50j5JWbpDbIGAphbuR3rd/QQ=; b=UGt5gBVssJaAHgtqqcdSLldSSSZU4Ppy0KWmjk9k/3YAtXs2ZDCGKlnyYKBaIYT+FYM8YhneS8phimayxlqtDMsMfdruaTS9RJ1QzAJ+y86MgTZf4hA44kExnhCj1gqHIlslICPE5aC7UmyGoicHY3R3p9UFTck5M+HoxdzIdqg= 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.localdomain (14.140.2.178) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 17:29:06 +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: Fri, 3 Mar 2017 22:57:46 +0530 Message-Id: <1488562101-6658-5-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-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: BMXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.214.159) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: a5755db8-ba90-40ad-d6ad-08d4625acd41 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:7BezQtpi8tf76qNqTc52iEBgJJnGtT7Jy3DqlTY3Doq4OjDtTL47I2XOcQP9wSXtEHmC31+94cI1iJ7dA7wsbjBKWAiw4W2sY1qXQlXnIWzazWD9Vo3dxbo32RMTNkaasXFnVJ5ws9D+GG8opGbn0ao8SrkKP9HrvPHMnxk1vB+CiqShiidcXvdPU7T8jD/6bRlQF+k51SKysJBnn2ZS7eJ+OETVDeX/yfqQmoMWLFWgWKhy6W9zJZgpC79kM2fKpbp8DyeouWqOdU5rCTgxvw==; 25:4amsxjsfTOJDdDcKQihiiooCSIxMRehPHfZfVXxCm/Gm4EqsrO6cPKbZrziqcE+Gni+FoODyvXrMN/ISVhsX7ORARq+K2xTT6Hefc8r3jckKc9uz0E1r2JROEzka50k+QtIFoCowj+gt9pnT/InvjWewqGmo+ekOUGk2cael0sWwlU4c6+N49j85gaMIZ/k9ONiA0zFzh1lgDz6b0PeSjpQTuoZtF2Eg+zm1pPSTJdMmMVHU4hSKtgbypzAcP5sEDePdqAR0Uj86j78aoFuP0wg6idKFO67BNdrLV8l33kmnGevgmGrL6GyXxM3EVwIGMD4DgopOluzNvWLANw9VSQb4KCG7gJ/sjtVSW8l0cjUaKy8RvQj1QO4kbVGbHS8DI7WeK/CYwWB0E+ITW7vjyebZWWHvv46pRQrzkyR4GMXwww3eWuM4UOOEWKUPqLmhKu+V8+elACHm2BZtlI0xXQ== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:v3imcFs+0gXINDWdzCIs/AHjh6T+jWAl1egpoPo0xE9biRdfbpw0B/vXu0uPUve0W1wPOiX8gUeB5/umkZ4i2HBKreohrQwoSHt6/cmf117Rnds3azU55+1HjyKrfpDsHevmiCL8c8EH6KZewOz9ZLpfLfQtQ9kWCBxWdDN8nJPAFwr4ImBkpoQuoI0q5UfubKILVSSPkMqG74D07N6RGmMhYiYnbOAd8PoUancbdPbb2qkI7UJqQIzr5w/14znK; 20:lMwBCCxpttqtN2kQ6Ddif9feqVioo0JKjiIv/PoMAzomDUf9ckbWkL1YpWCWIHcLUyaGp6YGEtp483XxJYfK19GcXaSgUlJRtihZPYL5hdi3ltK+Hzw7kHo5kDEMxL8sicYLYvVGH/44MBZbpBFIUDWJkfpOuDFAPqEGXW4WxREXvYZP3BG7DTxsu8cr5DcpdEcwTmY6Fy/NImzUpilqVupSZ5JiAgudwqef9o7oqtICSrU7SB0BACPjEOVG/AzJ4edMZJCBPLaGQojUFIwTf/u4x7tQMSl33o+Ec++CVxR1CmpJcC1w10QT7pXgR4lx1jcxA5WTl6a2vizzfUi1iGMHpcfEicPZpmuCwTHEsqtZFJAbNLHJRJQNYQRk1pfltNIc+lKOGtvwLJiYZqMy4C/CPlokdaDHVLF27r8vpXLCWsl0NrWF2dp/ISKgzLN+3FohOmOLeX1MYp4NXsZyG11HQCXEorpMTZ3ran5lgK21twjje7FbqvhSEjwdGeZOyZK/V6y/X3VRd7exmm7i+2GIlizDn61HcJNez52xpcG3o8LSjEH+zClgLFLSmummjUsecDNkjlrG2JAlXDzdUbaIWicSuDP80DhQhPCmKxA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:RS0LmVE0IYEluJERkRmACNO9jHnBwba9ZS0NN9YVo5fYuOEPSd66CH1g1RQeg2GGFcZu3yNQRYG1hZ1MY2E4tnz8zM7zQ65BXH+ZejRNzLsN9lmvLxLBDoi2mHCctc/KzNpx+RKW6vyKNPUrYLDxXWrP0dpNGjA11aPZyVnG4eO2tyFXwceggO2BGiE106WAj24RjCL6WTa7g23efyhgC7QjD3j+wuCNoDDpZ3WQlihO6zb4/5DMsQJpEwTRuz05W3GKNh3H+0IVdRDFv3KMAP2AQiiHWYKBYeWczmU8Y8HdhVX+bPTMwhzOo36gl2w9UcV7+rHSB8jq1OVXVbQLZdX8VYyfCGdObtepheJnuH4AAM7o2ROiV3dfLo71MZ5jjGOHS86vmpTy8z8M0EUG9N7nGccAn/GuxKuLGfxA799Ab+iA+No2Yijk+Ek+FOLfM+dCC3rqlBroa1r+M7fW47sy6Cf8X4BhuOJtcjU7iZr7CZwdN3mKEYsq5IHxtVOph05VP4ekYiaenY5Cg8BQr6VG5fdsOyH9ODlqfO4rCiOdlslFCGwHDjoUBYcQZVIP6y3tpaPmlWvNy3KS74/2V/KoNbBVLSPUwcVxAfU2otI= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(3846002)(50986999)(6116002)(36756003)(81166006)(6512007)(97736004)(2361001)(2351001)(6506006)(575784001)(5660300001)(42186005)(50226002)(8676002)(6666003)(106356001)(8656002)(2950100002)(2906002)(25786008)(47776003)(6486002)(76176999)(33646002)(7736002)(107886003)(42882006)(66066001)(110136004)(4326008)(38730400002)(6916009)(305945005)(48376002)(92566002)(5009440100003)(5003940100001)(50466002)(189998001)(53936002)(7099028)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 23:piTvw3YS4DiPbFagF4XkuVYLGuglfOpYg9W3bCj?= =?us-ascii?Q?wZFS+lSmPYKlEwm4gchfVy6fJKIlNsu+3DmpC1P1TYiJSP5N/H/e5VZ8GnQm?= =?us-ascii?Q?V495yP9iJqpzPC+2TYtl/i3r7T3cRIPsjkeXEPF/6/2KV4TW0KyzP+Q31Mdg?= =?us-ascii?Q?OSxiV5D4dM+D5kGZxwb8y28I5Kjx/5ySivqHeLejDmmmJdKfiMPirPl3ho4h?= =?us-ascii?Q?feCVZDhcIJjU9RrA90OSKE23yPy9jjgaEebjCDByiOPNEVgewgLR/Z+C+Qm6?= =?us-ascii?Q?APwZOxbrFE633aSEHf/hNJUyh+3B/PnQu3R+77ZzyYAKpyj2VnQPGCpmDX9S?= =?us-ascii?Q?oL83V99hgHlDHlgKBdgVq+V2nPefzumKobh+5Arif8qLzG97Y3HUU6KwTWmJ?= =?us-ascii?Q?5rJt3mue9CzN4eEjTF5JG6f5attdU5RVLSt6I8LeWMgTqdCNxiXHTziDYuS8?= =?us-ascii?Q?teK81IKcaiV8hvEyEgVm83gvc3pBFUHsqftr41yY46iNecY4W4knUYK98S4F?= =?us-ascii?Q?Eai21HMlTl4o0/x53iVnFznnprl+9BAyLXmBT21dmzaiCWNBSV7g/hibJATY?= =?us-ascii?Q?GDc8616MifT8AVrZWvcl8knitfKISfVlU8wq5Zfwf438L70AtJXN8upKt/XD?= =?us-ascii?Q?x6GOmorgDyHTPN4Ifn45exNPWHqJI5v9+slxcpkk4DkNEmCbiElWvwws/gv1?= =?us-ascii?Q?KFKzojxpaxMOeeE1Xt/Ll+opkJigtU3ppvSAKvCzHaV/iOHhG92CM56a/Hbd?= =?us-ascii?Q?6Awo22Ybgve3Gub3vyfvFe0EV+RTSuJUNJAE8DmwjZwjY2AZ/tl49tEXmTzW?= =?us-ascii?Q?2mHrleRZ1ZdVzJZfyXno2WcXU4SoRuGQNgt7CIYtRzyJrlrO66+kj05UoObD?= =?us-ascii?Q?t3RCNCqucrXwRFhspl6FwgAba524orZ2NcO5+mvSfs5HI6mPVUFVtHEGu+rX?= =?us-ascii?Q?W6beLDWFMueTxt/NSR0xoWo+VKeHapWh43+26E7Vkd/xAUCILZJbZPlp7aA4?= =?us-ascii?Q?NeaoNpmAiexYXw6dwoOGtV4Hx9EgpoSQcIJjuM/Wq0uz362UdC8F8TU/hh5D?= =?us-ascii?Q?1ctLdsmWNWua3o7bi7b4Dl0gNSykhG0rtSTZXqf/BPQn7/K4M0TTVhDpp28/?= =?us-ascii?Q?G3Pm0Rj018dqCtwRW65v1KGFGXuKrH9jtTDDia0EgVna76vGAcXHjj0DBibf?= =?us-ascii?Q?m3eSdZRrAE7lSHWk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 6:9OAnltH2Ohpfo3GtcNn+jxkDdPk1JVVqdAUW18hy6fp8KIT24BkUdzdO7dHggdTpTu61m1vAJrn1OUdPouCE/R6m+GF1wUBL4uRVJ/Y2WDPF+4dqaX2TsVhoRnDU2APn4SMY7uM2aOSH7gV6CENSIKat67ayWzwmBbVriRYBzbAmTczmEKH2U/dq0TI6BlUgKyNhoj36Uwbc85VyUHGv19ib/rrIj2elO4ZdsZBNLs/Dq53TzgxIUFMunSHKSVUPlJz+8X2Yc/8AK+GNOTL2WWBinsUXQ0rJDW+6sV0cPgdDp7hDe9k9goSh8xg6TnUmapml8LmL8LE+R4gR2QYmE5hxS7egGTjYsJ6YA499WY9ss5Jn/W8RC4DLQqk4LGKY0weTXHOwJkp0sPRNPN2hrA==; 5:D+cxmQDELHB0VYGoynhnJ5LkelsThzhCt5BPnWtiAnrUfSlr/6RR9uRGaqScWBjucg63FV9fFzEJ7EzDzKHzZdZVX2kwRXYsBTq9HMuQc4anwHBZF7ZyILrvFm04x7Gy5xHtl5ZAXZOJbV7qHNVjhA==; 24:B0w0pLUkyyU4lvmNgeBN3q+6HO5gSk1l8o1+AFZtSi1ucCnI8evVMRxTI/1JPXbGGVyWoLkPT/KviDI51V3qxwtQzG9tLHW70wS6hS9QFjo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:m4nV51WnX9mkCN6nCQUHBOUFumf8wIgxU7WPrxolZoma2QRGOh5as1Oq1h7O8LmXasCHMG+g8oOiUDjEWl4zNHhkOhSJO3B+LEo2fDbzv8oDmqZrLUBEOZgSJlqcgEcCDT3ofCsQYgD6B3esAEiZGeoi2zY/UgDrs8sDqV2hreHQNZIBmz3VjadQu0Mee7PPnRpis5iNlS6OW12UcfSM4GXx9P6g2LQL9uXH6y/xS0uHm8gxff0Sac2GpY1lYSzNwUW/uX/HcC6SYbf2CF1a6cs2um5sHOkcP3IrbYuFxwm48Q3PSxXHBRUmmdlMiDwRG+NyYi7SewtWHZvvWwDcFA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 17:29:06.0366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 04/39] 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, 03 Mar 2017 17:29:14 -0000 Signed-off-by: Jerin Jacob Signed-off-by: Santosh Shukla --- 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 2538f4a..a9d6ade 100644 --- a/config/common_base +++ b/config/common_base @@ -458,6 +458,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=n +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 3897e2e..ab4b0d6 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -154,6 +154,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