From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0048.outbound.protection.outlook.com [104.47.40.48]) by dpdk.org (Postfix) with ESMTP id 3FE8E37B3 for ; Thu, 2 Mar 2017 12:36:38 +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=0wcPHSMNVjVUuk7QPh3NYfGLVuz4YrjKFD5xdVVRfDM=; b=FRqIoZfoFAr8B8Ft7GAInOO4ru0A6C16hVT5jn75aJVEOkXZSaZqrv98u+ZPjEgs455YDwDl1A3gM7bRFZvduMW06CDTea/PzATXifk4W0s3ye/HD6mSu9N7BDbeAtMv9Vi8g91a5KKUglK9NTu7xoah653/rYihCGh0/meauiU= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from lio357.in.caveonetworks.com (14.140.2.178) by CY1PR07MB2277.namprd07.prod.outlook.com (10.164.112.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Thu, 2 Mar 2017 11:36:33 +0000 From: Shijith Thotton To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Jerin Jacob , Derek Chickles , Venkat Koppula , Srisivasubramanian S , Mallesham Jatharakonda Date: Thu, 2 Mar 2017 17:02:06 +0530 Message-Id: <1488454371-3342-2-git-send-email-shijith.thotton@caviumnetworks.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1488454371-3342-1-git-send-email-shijith.thotton@caviumnetworks.com> References: <1487669225-30091-1-git-send-email-shijith.thotton@caviumnetworks.com> <1488454371-3342-1-git-send-email-shijith.thotton@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.163.198.156) To CY1PR07MB2277.namprd07.prod.outlook.com (10.164.112.155) X-MS-Office365-Filtering-Correlation-Id: 76a2acac-e9f4-458a-12fc-08d4616062a6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR07MB2277; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2277; 3:6AX3UBmLhkE8XIxr/61oFKG49MYonndRRBP0FVtK/yfTEDmk45f1IJSUeBGcrKOsOz8I2cIYikhESDx28uSwuBLEVbk2Y22X8v4u/loehzOXNN8+5SE8iocvELHpAdGnvIPJVVXd2uC+DRssbEmmcuBmFhfqtu0RLevgUoZ9CcW320rzvynrnoK0RxUumRr8YnS2W2fs5jHGDEnAbLOEFFCpgTYmenTqAo4bfTzCYJ3IQDvC3opfJrbUzZa5G0cYVgvKE+JZYNEMzIFeVGPrrA==; 25:V38uiT5NTm1hPPCzodqk1d4IHiqaJUERzN8bq3MgHtGfZKGMbGuBUX5DphFHFocd90MiU/akqEIwn0sJnTC5gCyOGbODf7oQJx7FP+KxADWtBXgPo8wCyFZjzFVS/5vd9YzxBT9HHKgoeL9P6IGdwVWiNqvWkoD6ZGcwQs8aY5zaBQZCbmsByWLghuCCsPJnkBomsF5Iv7jy5W+RzV1mYlLNbwSDxKLDVcEYnuO+c84natY1ieNykTWwZvYn1eUubjirtP4Hvaw1P9NKp80QPqXZv4fpYNQlQDE5ygW3agPiZUAN9j9/14VBOANrnQnUch4rP27F8dEe5cQJriO0bb4q9Tjm3bAiyXuN8fzoVbs8FTIe4R00BLHkEw2hi2MYWNDNm2ZKHuASqKDdIRxJpbaWmzlP9DEWpVPb2FoMqe3xXXE9Pb39ySIOYmUvEkY4Qfz5fLRoMMeqVfEhog5YBQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2277; 31:ssFE5s7swQS8Ke6VDKLlOgpSQ+jjta6i2p0UUqMfv8AauxeYT4TKOtcDb/+sN8JxA1fZ+DZY3+O0L3hHY7AAzIEgdBUEQOfmW3ZZsGFcPgtLstHZXx0w4Yoa2J0ewq7Q7z1XN76ZYFzzfUuUOV8kYP6iTQN1NYWBjNcTSavehRR0/9v5oqgPUxcLGzUlcKzzB5SOF9V1kN3ArbZIE6ThWbR7STqUFWCndBI21mH2kocK8z4ZnSH7ysvH12xW2WBkNpnaQ9EUlFl3bTEFvmHvBw==; 20:+PgJM5Ohpm1YBOf9W4Y3G521uY0vMzswccXo60pMSns7JoQ4iI+e7VQyFPemdmlXJ/XJjODWbKp2ySHupGwNOz/yUXCI1yA+3m+priDPqlztaQlp5nQIUCc85N0Q2wvnIcW39J+OzzsJrHsaHLbwPRIktf7QWqPpyQf34twtXb6Z4McxeySPsFA1E7lFPPjNkakj6P2wmxG8Q7gyZe63YY5Jcj41iIdRSzrZloeXMAN0uCIzzNyz5KggYiOCp8GI9WINd/P6/LFdRn0gZSIIjCEpWDBsbG0N6VwVm8SUgeVFxopcNwVfom4aOwG6wmvG3/iuD+pAWRM9PULWvalmHGXHNBttFSVwu0X7NELnsGhTZ6JAIOJBdlD5R49jodwz0oGdd/nDPNe8STUu0k+SgYILGOEMnXSRyEFB0qlpBK5qDARST7rHUmbtV2xob3IPpS2Oibsx8sKMTjndy19NUp1pGpE3rS7F2Gi3Btmmr/eXZMI8Oj8k4ltenZ8aRG474N3zVS3VAT88j3kC83KqsoMiitWC7bKFqeBGEE0OC/KmLS2UnY2p4MH5mnOydDUEmcoIgI5VPO31b0GPMTqCFQFFPE+JZsKP/O1hELOo59g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:CY1PR07MB2277; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2277; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2277; 4:xKa0fW3rxuGwczejai1Z3yZzAKuS6xQwO+HOMldm9cjZkAuH4trt5DZ3l8BWGLXppvkzEUIGm4XC2XROjOVVqiQl3VxegT/o0cjUrAH1+TihubdSsaYPQu1krs0dgxuRCatD3jo5S+4ElJQsSP/tVXEaqbiYFog4Aum3utor+786XmEXtG7tjfZfwAlo30qpO6jE0WoXSh9cludA05lHx7QLOCTnPINsdRnnuxKeRNSd8nuFFYp+HW6xmsyZU2y8GsN2w/5oqZoju5jbj20Xq8et94cDg2EG3ODhMfS2a7PLCWiMH8OCmG5wzzfllGduw/6QbUvTew2pbEAnG+4PV+8YmeXDrEH2cyLwCPRaz+YJOOjVCQTU2ZDSH8Bvnsj8GmAopYe8u/00JOTtxuykRSTW/+8Abgmu0gRIfaBXg13Sp3UfKuQeOu54APgo1B3Zu9Zw4oJlsUCUc27xvgSt3Qjw2S3rvBORTtOATt2WfrKSMQ8l8Gg3dDD1RDQnYTLEIC96CrmX0F5k8hO/BApOMe/lEkeoCK1rIPXi6d7cYM0rRb3R9RuwDbcrN9Bi2RC0kS7ZMymcwn8zvuIrDK68ZPq16eYttbY8qPTKkb/k6nI= X-Forefront-PRVS: 023495660C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(2950100002)(6916009)(42882006)(5660300001)(92566002)(4720700003)(33646002)(48376002)(50226002)(6666003)(2906002)(5003940100001)(36756003)(8676002)(50466002)(81166006)(110136004)(38730400002)(4326008)(305945005)(2361001)(53936002)(2351001)(25786008)(6512007)(189998001)(54906002)(47776003)(6506006)(6486002)(66066001)(6116002)(3846002)(50986999)(76176999)(5009440100003)(42186005)(7736002)(7099028)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2277; H:lio357.in.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;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exchange-Diagnostics: 1; CY1PR07MB2277; 7:qioGghNYkay+w0lKr+0oCNyktQTtZIr5z65GT0aqMHeezTNwsuHX6KdHI8LM8A6jl+a7TgqIJnFgFHziApoptAwSawEH1/tr1GI31iA+ZExfEMrXKXXHwtKORz9eCc5cQeLh5y7hIJ8yQ27mnrI+Ii94Cv4apHqqDKuUyOJcgsSapiCBfQFgT7QDtuQCCmN10jSzuQ+OhDpeFMOVoIY58ZdLqKYzDzmtByW7ISRECXD5nRJPb4o+ZPnspg3y0Oag6x1ut2M1iXCCF87Tl1VqzAsJJZ3X8doeDQqjqEU++2kMwt6YZgaji6YvTd1sfqFt0KaNiiWOUKm2vung3BirjA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2017 11:36:33.2137 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2277 Subject: [dpdk-dev] [PATCH v2 01/46] config: add liquidio PMD skeleton 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, 02 Mar 2017 11:36:38 -0000 Add makefile and config file options to compile PMD. Add version map file and update maintainers file to claim responsibility. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- MAINTAINERS | 5 +++ config/common_base | 5 +++ drivers/net/Makefile | 1 + drivers/net/liquidio/Makefile | 59 ++++++++++++++++++++++++++++ drivers/net/liquidio/rte_pmd_lio_version.map | 4 ++ mk/rte.app.mk | 1 + 6 files changed, 75 insertions(+) create mode 100644 drivers/net/liquidio/Makefile create mode 100644 drivers/net/liquidio/rte_pmd_lio_version.map diff --git a/MAINTAINERS b/MAINTAINERS index 306e27a..2e16c5d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -299,6 +299,11 @@ M: Maciej Czekaj F: drivers/net/thunderx/ F: doc/guides/nics/thunderx.rst +Cavium LiquidIO +M: Shijith Thotton +M: Srisivasubramanian Srinivasan +F: drivers/net/liquidio/ + Chelsio cxgbe M: Rahul Lakkireddy F: drivers/net/cxgbe/ diff --git a/config/common_base b/config/common_base index e3ce210..23afaea 100644 --- a/config/common_base +++ b/config/common_base @@ -287,6 +287,11 @@ CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_THUNDERX_NICVF_DEBUG_MBOX=n # +# Compile burst-oriented Cavium LiquidIO PMD driver +# +CONFIG_RTE_LIBRTE_LIO_PMD=y + +# # Compile burst-oriented VIRTIO PMD driver # CONFIG_RTE_LIBRTE_VIRTIO_PMD=y diff --git a/drivers/net/Makefile b/drivers/net/Makefile index ab60cb8..2093e09 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -41,6 +41,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_ENIC_PMD) += enic DIRS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe +DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio DIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4 DIRS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5 DIRS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += mpipe diff --git a/drivers/net/liquidio/Makefile b/drivers/net/liquidio/Makefile new file mode 100644 index 0000000..ce2b7fc --- /dev/null +++ b/drivers/net/liquidio/Makefile @@ -0,0 +1,59 @@ +# +# BSD LICENSE +# +# Copyright(c) 2017 Cavium, Inc.. 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, Inc. 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(S) 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_lio.a + +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)/base -I$(SRCDIR) + +EXPORT_MAP := rte_pmd_lio_version.map + +LIBABIVER := 1 + +VPATH += $(RTE_SDK)/drivers/net/liquidio/base + +# +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += + +# this lib depends upon: +DEPDIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += lib/librte_eal lib/librte_ether +DEPDIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += lib/librte_mempool lib/librte_mbuf + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/net/liquidio/rte_pmd_lio_version.map b/drivers/net/liquidio/rte_pmd_lio_version.map new file mode 100644 index 0000000..8591cc0 --- /dev/null +++ b/drivers/net/liquidio/rte_pmd_lio_version.map @@ -0,0 +1,4 @@ +DPDK_17.05 { + + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 236da9c..837cca5 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -116,6 +116,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += -lrte_pmd_ixgbe ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += -lrte_pmd_kni endif +_LDLIBS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += -lrte_pmd_lio _LDLIBS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += -lrte_pmd_mlx4 -libverbs _LDLIBS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += -lrte_pmd_mlx5 -libverbs _LDLIBS-$(CONFIG_RTE_LIBRTE_MPIPE_PMD) += -lrte_pmd_mpipe -lgxio -- 1.8.3.1