From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0082.outbound.protection.outlook.com [104.47.36.82]) by dpdk.org (Postfix) with ESMTP id 3CCA91AEEB for ; Sun, 8 Oct 2017 14:45:24 +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=xORnAzViF6wPVZcvNHVdQi2VCGM5uHhgbwgi9JnL+Kg=; b=T2mitao6m1TI2KKYLXGTja6jaQY40TBhJmr1c24ZG09vnxoPL1ydKz4k6Tt5vJOteHKKUf9biWT0Z1E3xLp3ifKlqkBJhEcACiZB3/cJGmUpfwjeU4m8y7s60SoATSDoweyLhVqvec8K4NGr7kS46vROWN0CdLusZ5j6dTrLDl4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (14.140.2.178) by BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Sun, 8 Oct 2017 12:45:20 +0000 From: Santosh Shukla To: dev@dpdk.org Cc: ferruh.yigit@intel.com, jerin.jacob@caviumnetworks.com, Santosh Shukla Date: Sun, 8 Oct 2017 18:14:05 +0530 Message-Id: <20171008124430.1866-2-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171008124430.1866-1-santosh.shukla@caviumnetworks.com> References: <20170831145436.5397-1-jerin.jacob@caviumnetworks.com> <20171008124430.1866-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MA1PR01CA0113.INDPRD01.PROD.OUTLOOK.COM (10.174.56.157) To BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e76096a-4117-45fe-4495-08d50e4a70ee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR07MB3089; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 3:3+2Xo84PntOrYLgTeIrPu9VPh+gxHDxZZop+gWdmc4ZMR9+jvu1qDJ9IgLDSl3bfsRsNbd1yoijp2B/SqcQsooJQ4HlR7NUkcTwDONAdz/HvF+SjCkzIVyNfmNiJ14DD9PpJKkhkoDVyYjg30mk5cQM8/884TgkhBLKsi0kAPsSWl8kovruLUacGtDxiamszVOwU9Aq9jy0wjhsvDiduuqqjXGAXekzqy2dj8fPqD2iLbMUVC+IsaAVu+92xQKyl; 25:gcxhYM4+GhmCLc8H/jY8VmtoTnCwknCxUZzxEj1pVzCpFt8d3Gyrhken+RhYNwsXj/i4/VaptzZJMo5VKuzzxPFw00YR87VXXQUYIRUtmro/EbHJ/vNflr9hrSsXgt7EAM0mFnr4ADiQjHgji8l+VzGmJlQXC/azIf373SgJJDHm7zSySMbTbuiEL0G2k4jS+DPoJ2nYfbdPWpt4Ey3IWEXunygzKwFASS/H+Kk6zC6FLW4gl13V1fGoXrz8Qt0I+QjO45a8uB8BfiwrWywJG9XdVXfgdVkkXJuhJKYBIjTEwtf2zmdNpJFClNeH8zRodXsPeE1+RjKwKurGoC69iA==; 31:LBTXTwNIUmmDTX8Zj7hkWkvmulAtvK/7L7DHxfVVQWwyemoyPO6e90Cp3WTKfEsDDSjcfrTsL3vHCiC9tqXeJLjflJgqZjsmSoZR1M50I3mG6kUxEGvfrStYy7w9fGxpVaMXEK6XYUR3wutFvCy6eO9ykVkONZCilQd0YDbDr/Erx9prAwM3PmHOnoK08+MxqELerAMrVmHUX38Vw0N5GeowkSTvikkxS46ijPQfYTM= X-MS-TrafficTypeDiagnostic: BN6PR07MB3089: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 20:fmH8a1Ql0qg/gIy+UJL5ysQOBWpgMFQG7tA2jkrWQ14LD5nUrB5EV8mjUDc38NsB+qHgFrYVBb+T0XehQI2unNyVIfMS3lJSzMD2O/nBuqvb/trFvpPtPUak9b4w1cFmtswslL2xHWN3ZP4WM0hwJtOWc6XNN0fn8NJ2W/6LZUvzwbf3sCr5FlmgV5B0cJtlMS0us6N2ZHTR/AhhbT1zwZc5l7WakkhhgM90skFQsf0xYFbCNj2krFXwuKkjmMaPcmnDKqgh22qZQ1R+FOfG10alzjQEKtiSgqddJ3Ov/oM3HTWCACe9QWMJos0dQIoMfOssD/o9nnkSNIq4A8tHuKh2qARF8b+O8mkBuVsdfx1rUnEKMOH0XbqbIfJJziAZAtmzSipexNrMGLp/keOujgmU+jciOH4fGKkI/TI4/GIZYthT+EHs9wxIGgANy9W0tCKyGLYyiNu7sYEbnj4ncFjRDsDzSTJAZmJ1awRtqF9yzUV3TYtJDDi3wvl4wAhSluMhW1K5SDXC26BajYZFeoUlykJrbA/le02wAGJQ+7pg2AlUVZbccaq3drXOwVekF40e1j3sD4CY+qq51re2xfYGQAH9xwKOiongCT3ZbAM=; 4:tY4lvomy2s1AYUeZRwXzDZWtJTQm+277mc4yNzxoE3nne0Fe/42fPViaztX3kUcgw5oD0K0+XbwE7qrOHgMk0cyHet/oTYIU+h549Kw4jdf9QtV02NYv64wiYrXA6IoDvGGHAQNLH/8J41vFlHudNgDSIq7nK2AsnXYq+ehSQSTHjRn52mDmv5kNxIMXMKzD6d8IjpX261ZMrYvWq5mNNNqdMPB9ERqzyyLMLq3o8yhjxL/NqdiWqki9/2I17a/i X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(100000703101)(100105400095)(6041248)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3089; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3089; X-Forefront-PRVS: 0454444834 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(199003)(189002)(6916009)(42882006)(81166006)(2950100002)(81156014)(8936002)(50226002)(6486002)(16526018)(6666003)(189998001)(16586007)(316002)(6116002)(1076002)(6506006)(3846002)(7736002)(305945005)(8676002)(106356001)(105586002)(5009440100003)(53936002)(4326008)(66066001)(107886003)(47776003)(2906002)(5660300001)(6512007)(76176999)(5003940100001)(50986999)(97736004)(25786009)(101416001)(68736007)(48376002)(50466002)(478600001)(72206003)(2351001)(2361001)(33646002)(36756003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3089; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3089; 23:B/WpQWkanKCUVNT5/Z7Je2Fbl5jsuLmX2K3uE4Y+4?= =?us-ascii?Q?vnIOhCahzfKzkMYaKVe4IeZL2wcagEpO9tRpV7eGgYEcoCoWolh6v6jRtyl5?= =?us-ascii?Q?+aIqw0M2EnoEFRbtrQdnObMKR/TxbTXMjXpbAm7LxkC7ZHS2CI6ioBfiEUAx?= =?us-ascii?Q?a034dCCGVsoGUobIoYOXHuc3V7I0zbhtkHwfv3hCZ6CNFubXHecatSg8ySCR?= =?us-ascii?Q?h7MZ6hrI0l5AMykh2k5oOLFCTvg31FpOKvKKawcsn9RUHIqhrc/nisWYwP0W?= =?us-ascii?Q?qyeiEp+ET1941Dsejr4QeA5dF0T+bhFOkthNpkRHiWJCDcFjxlzcrJ6ZpE7a?= =?us-ascii?Q?Lv6d/cKVmmkCewOyiQ4LBFeBXiv2SJp3XJsin9MXnXz8MPCcoOLeaLwq5c85?= =?us-ascii?Q?XfaT0isR0siKNxMpOCjcYzgvZDvbvvBnxGj2MBej1Twotmo6ymv562OZNoyQ?= =?us-ascii?Q?QKYSOjRxRLfTcgrGL60ILrMLlLxW/fKGsI3nJI/KuvD48ycE5HFBIUU76LeX?= =?us-ascii?Q?p3k+BumVi9wpaKPnvcVLkLOnmZ4fHwPZ74ti74RWK3vk+78yHytKIo8c4FRz?= =?us-ascii?Q?KdqvpLXCkTtQyGvu40xbSGs3nYvnWOfg6A2PxJFsbeaq/ZUsc8YYt7sRdA5D?= =?us-ascii?Q?JzThwfyiHkmEIJbuDytGI2hLB//yA+VgjsQKL6X/MKIk7FB+EKhjgjkN517l?= =?us-ascii?Q?GIpfPbkDbda67woXqzme0aK0h5jc+eMT2Pjza760l3LFAX8hhBYKUgQXRbBj?= =?us-ascii?Q?gIAEi4SWLaOyA4GiSaA3reXMpMBtIlKJJKF050k0Tt5Md+ykNkzPjfwJPyBl?= =?us-ascii?Q?DcS2UibKjeWzVrB2BHlIOoJ4xzx8iFuAmgE8+ZKUBEL2u6slSe5JnS5KN0KH?= =?us-ascii?Q?zr/6kTdjHrap7JjSO/qgTokh6lS6Odv6JOXpqt3wWj8+Bgueg8xIT3d8TcSU?= =?us-ascii?Q?6K//gcOP3g+IihfIyobooKavjlqDd8CpKSj2bZaYd/Q2p6VeyVKrJX/N8cns?= =?us-ascii?Q?8tto58dMH3qTw9VVvQLm4feM4e7AKsZqBnC28Vb31ifoWGKU53kH4hgocYnk?= =?us-ascii?Q?Qp/97h1fwwlsyKaaviiVXItEZBacrJMFleVFzPExlMBE1qkP6ji6rWthTZLz?= =?us-ascii?Q?13SBchu6XZm+pukev9X7K8e/qCu7iHy5uGCAFWPnnJD/r0g18xEQwJsif+uS?= =?us-ascii?Q?J+GmesgN0CpAOjBxZMrV81y0p9wgutfvLT76q24PnA/ckh8BHewgDjrSw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 6:VTRBtEWW9OnL1J1EIcZeH79b2QgrGZ5NVMy/43hmZMkORa/R1tQ4OJ/YH8j5AnWrmKLMGz24fSLpZPIP7vcfm554MfpLSIeM4xeBCZS/sdSluYW81Sk/yNQo9FsU0aGEb2gPisnmxFn4sxqdg0OPwrblGzdAx9YdFzPr924LMnhOuuz8s/IdqLSzerIkWYNmNrAyucneisr/U0YclkQ5LRPvX3oBOePl0B+j0mCULl/hNVGNUw8w01/PUjm3ChCXq2nFnBHxiSFtHwF0uta/i5VXcCw2/TZMQIssQTlrMt5QHgc24ocwBVTzY7oimTYdgNXMNurttyKPE76uThV5OQ==; 5:Zt7rnXEkXxdvzSO8PRb230zTCWyYjv5wi8l1TQRA/QfbsjZYvbaow9Y4iHszK5VF7m6f3MtyQK55UKXXeAEUlAEKS6KWDIfduqJwGCgoP2t/RnV3C1GKjSD/6D0nYfiKYoxXQY0GthLnKPHdzCa5KA==; 24:kyaI9IEL0iRHKFh1nBG420qaHLCMSyx1V4lkCybbNefN5uHdFFQFQjjyxQS+HimmcOVkgFqt7gu3qXZSLFEe4RIlgxqZvk88n0NV4dUhyjY=; 7:5XGIDgzwT2GMt04ar19Ka0PC2GhJJLDk1hHKnwqrMYfEqCw5PBTeUMnpm9mf+CcA8PvyCSjpoMKXjon5kp+S8BQgk5v6yOKCYCXR8sk3z+nUQD056j2kSnvwtdXWjV+V6lOUOjuy4+64J+K4szPWO/7E4m1HKONGIR5ln+ZgNuAPDDfqi2CDTC4LE2lYtDSrmqH35FV01flzsH20xDQLVHtGsQHZQipECb2kdWqStBw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2017 12:45:20.9009 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3089 Subject: [dpdk-dev] [PATCH v2 01/26] net/octeontx: add 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: Sun, 08 Oct 2017 12:45:24 -0000 From: Jerin Jacob Adding bare minimum PMD library and doc build infrastructure. Signed-off-by: Jerin Jacob Co-authored-by: Santosh Shukla Signed-off-by: Santosh Shukla --- config/common_base | 10 +++ doc/guides/nics/features/octeontx.ini | 9 +++ drivers/net/Makefile | 2 + drivers/net/octeontx/Makefile | 53 ++++++++++++++++ drivers/net/octeontx/octeontx_logs.h | 76 +++++++++++++++++++++++ drivers/net/octeontx/rte_pmd_octeontx_version.map | 4 ++ mk/rte.app.mk | 1 + 7 files changed, 155 insertions(+) create mode 100644 doc/guides/nics/features/octeontx.ini create mode 100644 drivers/net/octeontx/Makefile create mode 100644 drivers/net/octeontx/octeontx_logs.h create mode 100644 drivers/net/octeontx/rte_pmd_octeontx_version.map diff --git a/config/common_base b/config/common_base index f4b140263..08e39c6f9 100644 --- a/config/common_base +++ b/config/common_base @@ -306,6 +306,16 @@ CONFIG_RTE_LIBRTE_DPAA_BUS=n CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=n CONFIG_RTE_LIBRTE_DPAA_PMD=n +# +# Compile burst-oriented Cavium OCTEONTX network PMD driver +# +CONFIG_RTE_LIBRTE_OCTEONTX_PMD=y +CONFIG_RTE_LIBRTE_OCTEONTX_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_OCTEONTX_DEBUG_RX=n +CONFIG_RTE_LIBRTE_OCTEONTX_DEBUG_TX=n +CONFIG_RTE_LIBRTE_OCTEONTX_DEBUG_DRIVER=n +CONFIG_RTE_LIBRTE_OCTEONTX_DEBUG_MBOX=n + # # Compile NXP DPAA2 FSL-MC Bus # diff --git a/doc/guides/nics/features/octeontx.ini b/doc/guides/nics/features/octeontx.ini new file mode 100644 index 000000000..a8468ea34 --- /dev/null +++ b/doc/guides/nics/features/octeontx.ini @@ -0,0 +1,9 @@ +; +; Supported features of the 'octeontx' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Linux VFIO = Y +ARMv8 = Y +Usage doc = Y diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 2bd42f838..28d2ff1c1 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -101,6 +101,8 @@ DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3 DEPDIRS-vmxnet3 = $(core-libs) DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt DEPDIRS-xenvirt = $(core-libs) librte_cmdline +DIRS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx +DEPDIRS-octeontx = $(core-libs) librte_eventdev librte_pmd_octeontx_ssovf ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) DIRS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += kni diff --git a/drivers/net/octeontx/Makefile b/drivers/net/octeontx/Makefile new file mode 100644 index 000000000..2d8f2e1d6 --- /dev/null +++ b/drivers/net/octeontx/Makefile @@ -0,0 +1,53 @@ +# BSD LICENSE +# +# Copyright(c) 2017 Cavium Inc. 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.a + +CFLAGS += $(WERROR_FLAGS) +CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx/ + +EXPORT_MAP := rte_pmd_octeontx_version.map + +LIBABIVER := 1 + +OBJS_BASE_DRIVER=$(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))) +$(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER))) + +VPATH += $(SRCDIR)/base + +LDLIBS += -lrte_eventdev +LDLIBS += -lrte_pmd_octeontx_ssovf + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/net/octeontx/octeontx_logs.h b/drivers/net/octeontx/octeontx_logs.h new file mode 100644 index 000000000..d5da73311 --- /dev/null +++ b/drivers/net/octeontx/octeontx_logs.h @@ -0,0 +1,76 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium Inc. 2017. 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. + */ +#ifndef __OCTEONTX_LOGS_H__ +#define __OCTEONTX_LOGS_H__ + +#define PMD_INIT_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) + +#ifdef RTE_LIBRTE_OCTEONTX_DEBUG_INIT +#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, ">>") +#else +#define PMD_INIT_FUNC_TRACE() do { } while (0) +#endif + +#ifdef RTE_LIBRTE_OCTEONTX_DEBUG_RX +#define PMD_RX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_RX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_OCTEONTX_DEBUG_TX +#define PMD_TX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_TX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_OCTEONTX_DEBUG_DRIVER +#define PMD_DRV_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_DRV_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_OCTEONTX_DEBUG_MBOX +#define PMD_MBOX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_MBOX_LOG(level, fmt, args...) do { } while (0) +#endif + +#define octeontx_log_err(s, ...) PMD_INIT_LOG(ERR, s, ##__VA_ARGS__) +#define octeontx_log_dbg(s, ...) PMD_DRV_LOG(DEBUG, s, ##__VA_ARGS__) +#define octeontx_mbox_log(s, ...) PMD_MBOX_LOG(DEBUG, s, ##__VA_ARGS__) + +#endif /* __OCTEONTX_LOGS_H__*/ diff --git a/drivers/net/octeontx/rte_pmd_octeontx_version.map b/drivers/net/octeontx/rte_pmd_octeontx_version.map new file mode 100644 index 000000000..a70bd197b --- /dev/null +++ b/drivers/net/octeontx/rte_pmd_octeontx_version.map @@ -0,0 +1,4 @@ +DPDK_17.11 { + + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 76b1db3f7..ac26c6ea3 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -181,6 +181,7 @@ _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 _LDLIBS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += -lrte_mempool_octeontx +_LDLIBS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += -lrte_pmd_octeontx endif # CONFIG_RTE_LIBRTE_EVENTDEV ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_PMD),y) -- 2.14.1