From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0062.outbound.protection.outlook.com [104.47.36.62]) by dpdk.org (Postfix) with ESMTP id 7422F559A for ; Thu, 31 Aug 2017 16:55:23 +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=fwddDixNuArocZaPwDGLezwAy0Q4BofurMSadeANXJ8=; b=Kwqlz73aLCy+CXnZTPmk3rksS5Nsi5w+krOxGhCpWGspEOphITz++aV0iZ6QDDZ34yuFQYvsxJi5fqevoBg3caMSjgXRglICYwdVa5uwlbEywhA0bj5AgUMX9aAh4AojaKu59Uly9SMl8d/gNi6XrvCWArvJSZo/xN9ltsae09k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.domain.name (171.76.126.71) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Thu, 31 Aug 2017 14:55:20 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: ferruh.yigit@intel.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Thu, 31 Aug 2017 20:24:11 +0530 Message-Id: <20170831145436.5397-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170831145436.5397-1-jerin.jacob@caviumnetworks.com> References: <20170831145436.5397-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.76.126.71] X-ClientProxiedBy: MA1PR01CA0109.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::25) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69587eea-6255-43ff-2a19-08d4f0804de5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:pm5r1EP+Lh5Gx35ioStSQrPDDc2DLpp+l55DreFrtgY8hllJeW34IrT5+7PgPm53HjXW30dJI2e2Nb//yPUfYXbRckeQzWk89o1qHMG6qIrGU97k2jxDgQj8bIWemc8p7EnTSI9rcT0CG7+zPCw4l4AgXFLUYspZp7FpOfbwVu4NMnQv+6F8ApasTWRVB1tOwCWDDhI/Ss8gWafwQ7yaOTLIF90We4VLhhndqTWWhOg3f3vZTS5clG2yuNCnmdep; 25:1FTOxF0b4rPEGAhT7GZLcuK2gSgaMSqR3EXbz/kTQxQMLDSN0OnE6wkuv5chNUZlnp79nUUgjXd2ub3vcnWzHg85X1c/zRZe8c5MGfwpf53NWZIth3W31s8aEzsePXlFkT29Zta2dOD0sxLDXYwIXnOTNmI33FqvXW7VDM68A8obJcHLJ1rldaGydOiv718A5CkaPcCR3fWqC3SwVeHM32ZuhQh+H7wUpKUWElS36tGa79XarYfcV4bDrf0nGFtegzdMrY/yR5M/QoAQTEaQhKrt6cruD9TEr9uDQIHum32OHtm6wKlAPPvahKrt06YcMUpvl/gCLrsqZ75MCra78w==; 31:+qIeTdCFzuYBR3geLUf1s8zKzdJu6fVh/fU7A18S3MyuQjitpJiQaeMdXAuk84KkRWX4gCnKKravizljMmmy1O4MHLrAselbLe8LMNehV3U6BFHIYrW4LCD/jV7HK+/OjVDY+6hniv2q1bL/p0tFUYp1mf+tHXJfLgGzGyhoYNCm3RNIm/AH6j45Attq8DSsKDT1SMvm2/sTNm0dezy1k3zzMVcSFVFV67q4GRcubaE= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:3xvNNO3kgouXELNKaEWOn3AajCsCSjfSptBTHPZKW7EH6q9YCsBJjkMRjEkIVv7iZ7yuBSLIbYQlsCtBupZsRNO9Q6DWOHQVfX8I7MnLVETYDkQ2Z1zcS7zB9ocky1LIXYKBAtl/N9h3rijMu8fu/Z2vJz5idKWI97Afg1eET2zWYmobJ5slu8jnyflwPo79iR+W0whHzKdlINJDw4OkGgAS75VC5kKmtmaP+Hv6ayAkcFVU1UONEmsKqENJNwMPQG+oNqY68qh+S14VqyXRsO6wCNIqTlmiDnYIR0FNlOcZq1IrznzJngodYylcBNMhmrPUSOjEENOtwlphkfHd3bzjOQGpTAPBzL4/iaIrrbyUgP5+O1xdiyqk3ZRVcQ+y6F17V8MXZYo9mbW+PGzmnFMH1W8X22wLXOxoebcytTqILgLfmDXcl59QnQ5hG0h7U8NhAUNQDZvLvY01pWy10+icaDXSZmxTckvIvjTc1WiXvxnJX586mjdqZWVzOwerNbucDc11zOGiYMrSQ0RcVdkN/31N6DBtF/xrhxKUTlXFyUe0kjbdNfo02aoky4qC2r2xTA7vGUBr4yR8WekRtf1fqsV3XP/pHPcDWQ74o6E=; 4:MSgyHr8OY6K+VTE9pNJP9b+uzKvcJFYChtOQpyxS4LWC4C2rXiGxNOTzbOsB10I6JLTv8BLqnbblrmV7YvwNjc/BFJou3I/0JlSWhGw8RxU4BvYyRCg2AdAw+NshiAdsVs/VcN2EhZYnDmJHM9EJ9MvpK2PzK0oIg9AYSKT0Uv2b73BSbu64RdXGtgOQDrncj87u3o27xf8JfLOVnHzibzXsP8/cVW+njsouEGoB8MvvhsP3L+Ywgv/ILTpUj56G 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)(601004)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR07MB2526; X-Forefront-PRVS: 04163EF38A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(25786009)(1076002)(53936002)(3846002)(6116002)(478600001)(110136004)(72206003)(7736002)(6666003)(107886003)(6512007)(305945005)(6506006)(36756003)(6486002)(68736007)(5003940100001)(189998001)(50986999)(42882006)(106356001)(101416001)(76176999)(2950100002)(6916009)(5660300001)(2361001)(33646002)(2351001)(2906002)(4326008)(97736004)(105586002)(48376002)(50466002)(81166006)(66066001)(69596002)(8936002)(47776003)(53416004)(8676002)(50226002)(81156014)(42186005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin.domain.name; 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; SN2PR07MB2526; 23:XSctE1MehCO4wWpA2kowszDY5yUmdu1FEevzJwCWP?= =?us-ascii?Q?+kMUF6T06Wv+WDQJLSOE6GsHSOsMkGx8+4NJ/xsDNARTgwbflKPMevV34ua5?= =?us-ascii?Q?4gprOoQEJ/56tHbA8YgSHpLMc83LsnSRh8uCt29gu6Yf8bCTuGOTCH+vGipG?= =?us-ascii?Q?0Yn6jPRFepdSSwi1DiqxAhyvj8umnzUpa/2Zka10xn5uO8XuXovVdON0Euc0?= =?us-ascii?Q?Ph1SY2sN+xTsle7wUvHgnTSXgzIh7CSBL5Swlg4Gtqbk3YiIEeChzPHNjjfT?= =?us-ascii?Q?0lQJwi060p3/2fBj5f88cKOoqO1nIO9SCaAI7d62OJse60N5bzDe/ptD2i41?= =?us-ascii?Q?vjogqt8fypVNgQpeXWAWC7Pps+sSlQQowBL4cgjCVRMCDfbG4B88+4pqVtRp?= =?us-ascii?Q?sUfJlgBJxDrYgT1rPYpz0ETS244I1JrEEUNRt/nKrTLzU+RcfcTz4DZhbSvS?= =?us-ascii?Q?PUwc3jAJ6OydYrThdXqh4bgB6ZQIzoezh83shOjtKl2+dko6tk5JyV3kOv+4?= =?us-ascii?Q?T2SjP7TDFMXBUwdISeydEveED+Ax+OytuAYtV0z4BglanMeVKCKCM42C/pDp?= =?us-ascii?Q?rZqelwUiUfmWpulKZF/1y0pR7WZHpjlO9W3iUpwwzSVd9ojX+AJWS/lhy4h8?= =?us-ascii?Q?ZWJ9PGxa1EsL0iJbjiw0mhcbxaWi49BNHCQ/S5doZJMrCvP3IBOCDiUA2XfT?= =?us-ascii?Q?n6wYRifBKg3dD/CYxGLVEyYZ5Mlc+3XYMolm+DS0Io6MJL5BHPsls3KI33h5?= =?us-ascii?Q?6uJ086A/lgdwjxF6PEEfOrbLVHIqd4hFJx9Qn4WrED3+zu+zZa1P9WD73Ana?= =?us-ascii?Q?MMJBmoxTuOvnN8b9Vnszw5uJB0nrmCagTW50w3fM/fuqlgL132iYX63riyvJ?= =?us-ascii?Q?1bHvhRSQ4vzVJxEcbID4tyHJ/Rr2UeHSWK8w4H2GZ3kxjrHUhNOmbeq1QMYT?= =?us-ascii?Q?nLRnhqViBxak/1+RRbwlsP5P6cbdKt4LGCpH915PsDjtUe6u4aWlF78lUDr+?= =?us-ascii?Q?wEwfIhfPPjTLvXk5yiyjvfVLvjHQlllFu4zBkynR9J706ybfi2wsJoAxRpqh?= =?us-ascii?Q?Kv1hoUA+OMGMzvWNjxtXztQdkLJpdZV4dXyYDAD02NlMSMee1z5fbZ89Kw+o?= =?us-ascii?Q?AZdNRfcmpCQN2EU5F/PZTssq0+spnImbJKH7FELlDHVp8s46LdIOw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 6:no6+EkHX5TxUISwyBwJuyYHEgBbKNl+gqn4dAhzw3vo2cUnnmSh5vXFJHnhcJ5tRO9bsikNIT5MwKB7oaM6CtwmK3joLOqpZEgkKPAFIkhwWy3GrSb6Jq+e50KH3LVW+6KpNWm2UfUx3EX6FwfjBCxBw/t6t8Ikfw5PFC4QEioRYZplIK9Vvzbz4y9PUW7B5scViCM2Kw1lWQErtoXlB+oZI1y1VOBE/C9BNSqq3f9S943E8hhNBSZdYPuRV7qv6a5mVmjHMsTQgU9WS6/p+yMCQyHxAG99gHV4urPbI/9DA5vPrYdAjvmP+/MQOcP6tNMZ3zAg9DaHLNoBT6dejhg==; 5:iEit6iXbD2FiiFiwNoIty2KCOoQ+Jk9Uurs/hXinxG4q10E+5uuG5Khl5I21xmRs2UkCoqasS/inmdvnMpIrCnZF23+qq6ZcO9MEScL1m4W2baO5jMob059kBjz+SUhaVwxRlr8BHD+1z8ZcTyC2Aw==; 24:s9zeeVZakXjnrla05jMMzRXPpNNQSJY2z97Bpd/dXQPpE8I/edO7zbva4z7w2Bpz4bil2pgBoP0NLxKnAXHKWBweHIeaRrMFzXVhDuZab+Q=; 7:CqJXIjkNZyHwo1bixhD57RHAyPdu/3j5TtojYrBpYmECWr3TKzUVutPeebWFjIK5Ad4pOIfmNM59wtW0E54mVoa7BLFyaz7yHeRaNIqkqP5AZi/WxPB9DiyllNYXvtYAPdywMr7isCrDktBx5LmigcXn1yGQo6D0ZP7SKlsKoS22hdD0+rC6lZJ63imTg34wTzV6yvZSqBWlVsBDN738nbNdcH/+QCr6Ff0WBONUEqo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2017 14:55:20.2082 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: [dpdk-dev] [PATCH 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: Thu, 31 Aug 2017 14:55:24 -0000 Adding bare minimum PMD library and doc build infrastructure. Signed-off-by: Jerin Jacob Co-authored-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 0720e6569..a3954bbe8 100644 --- a/config/common_base +++ b/config/common_base @@ -303,6 +303,16 @@ CONFIG_RTE_LIBRTE_LIO_DEBUG_TX=n CONFIG_RTE_LIBRTE_LIO_DEBUG_MBOX=n CONFIG_RTE_LIBRTE_LIO_DEBUG_REGS=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 d33c95902..0688e302d 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -99,6 +99,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 55e98f222..5c8d798e5 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -176,6 +176,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