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 26DA8D2D8 for ; Sat, 25 Mar 2017 07:26:55 +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=oHPfbB1hNjwcb1gLvnawHR5dZKD4ZtpVEv/iKaYsSEw=; b=GXFtudA4lzDaq7MNT5PDGG5iCPyhfAmZaVkKrkVnU2KexKhLgsT9I5sBG9yAJfb/9o8/D3kxRjocMHNHnCnWh1KM0+jumEAW5UR0uK/68c4NBcsLD4fUJ3g6+us2v2h3iWcJaEI0JoNFbhYAWAVxh3OEOYgFQMDMEAWBOE/ImXk= 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 CY1PR07MB2280.namprd07.prod.outlook.com (10.164.112.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Sat, 25 Mar 2017 06:26:50 +0000 From: Shijith Thotton To: Ferruh Yigit Cc: dev@dpdk.org, Jerin Jacob , Derek Chickles , Venkat Koppula , Srisivasubramanian S , Mallesham Jatharakonda Date: Sat, 25 Mar 2017 11:54:12 +0530 Message-Id: <1490423097-6797-2-git-send-email-shijith.thotton@caviumnetworks.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1490423097-6797-1-git-send-email-shijith.thotton@caviumnetworks.com> References: <1488454371-3342-1-git-send-email-shijith.thotton@caviumnetworks.com> <1490423097-6797-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: BM1PR01CA0117.INDPRD01.PROD.OUTLOOK.COM (10.174.208.33) To CY1PR07MB2280.namprd07.prod.outlook.com (10.164.112.158) X-MS-Office365-Filtering-Correlation-Id: f524efcc-480b-46e3-695b-08d47347ed6f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR07MB2280; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2280; 3:hF/yR7LNQtqLHKLFLCkO+9UT5n6y7g9Tu2duf72eCGsJW1FtCXmVlFp6RHu703XA8R9LttxJ+RelhOkSeaY7WDcIMBfxw4eI22kPJufQH9IT7QpCdvnDRX2rtlqHCIziuITM3UmLD2U6mjYhct/ujmYvD1ir+n3r6spZ7sgvlJybqzlNhBskARtowz3RmsPO4FRa+ZPdWhkKyHD2jNxAgFfKAMoiPxVcjo0AMlDbsTO2HOpjMyVOUEzwW/nXs2mDHA83gMV7jhNXqgUz+H6s3Q==; 25:bLXDr1rn2A0QvtWRRdLG44PF6FRUVt47drZxJBxK8JYcCs/SrX6tepfoV/Ytr7+PM2XtrlS1ZlAn6+rH5ej5fi/WMPXOZjWCOvZ0qmVakGBuMyuy2ACTlB+mQ59NOr84ZsiBcu7+lti8Woy3GH0rNOkg7z9aRO97WghmXWP7cyJ2fTiXa+oSyAO+NEHlDg/2ZHoOfj5ORaoU8DQZi8zHE0YRG9X+fMNcsjo/7uwTQFir0vjlsisMkjbjYmxe5nkuY0yy5b6uZe8fyZ0gOGNQyVKE/62JJpzfWm6am8+FBdeLzexwvKaVXV3xJf0loEeS3SIL7FJgeT/jQL+hKEa1M3b6n+sDoq3iOv2d/Z9ZcreAC2b47mHCpuV0QRzGWbd2X2asxqV5ofteT4kDy+pWfnx+nMLB5unR6x7fI1IJ6vz+gkyVFYND0B0oZNLpHU023at/duLJpSLa9VJftZCbFA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2280; 31:rLvGEDMoM6Jez8Ywz+rT4IdcqFiuVCsmEJK3MV8kezcitlgwPo7WV1VAEVwHByX0he4YqIGuSwKNtT+KXxuFs2Q1tzl0LbxiT8oKcdz5b3KyUkgvVdk0jubjuWKafNsQjGdBiQxa09hVQQm8FFk6kp3/aaKvkKOM4It22dxHgjki7dWy85M3R65d6h7bu0/OxgSc3Ap2wMhr+gm2vuKoOEoVoSEoYjYG8TJuiG3GDhe4J9DMK8EE+RYKHCbLERFH; 20:hOOGJgbc63Hu7B/lkK2iZsxwHQ955osjPuFhd14B1aD4x9N993NVAYLmvhON9V6bbeukuisH5Fil6K3ZgQrFG3b3kCDoaT3WABtf1I6lhRVhF0mWlcWn8dgSHw7Z7CVm/8H3UDgkHQO+yPNsJ4K8NFR11Aa0QgkEBYfiT4h++uBc7gM10YPfXNyeJpWl4lIq3lG48iaqVNfyPOsFdTY5caZbaD8FzMaiyPzmcaP/xIpOW/+QrzHuKXy+pTzME0UYXdqZL3y+GeheVl37XLpdG4nWL6RojIT0C58tt7wtV04FibOL/Miba4KxBkMXqAf7WOHkfhYYrJA/v4acKMYhsUFIygnTpbNDhMmv6slgwfWIa+sQP08XmZb52EKbs6THxG2LMMc4YtD6RRa3IPw2n+4RVDw3iTHE50Tf4f24RpyOMxWZXqB3Fxh4RP9PjtcN32ggfWmDadej2uvbbGsR4SGtt8kbWq0x1gwZqgPZ21h76UVVjPKQq1HOVpxbRMhkyxGFl1YV8sdlSICPyIiHRK/9sSNNJ0Rj+12DlV8HFuimXAw2rsONiXBCqSHv0G5juRdsCiOWA5G0M20XA8dt/RSMC9K3cLw+cMAz2NQrRxk= 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)(20161123555025)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:CY1PR07MB2280; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2280; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2280; 4:pT8BjjdhPja9RO5AH1oqD6d/BqPnd1ZzVy0804bJGtob+fLmt/Zys5ha4x6L89fKEjg44zf9B/gR/QFNMhtYLVcFbRUY1FmpVMvzMZDm7U4E7QH+PruvHHZaOz0vLTvC+4FPxNgmHx+DpwzJcOkOYjl7n/0Twymg8MINIrGrg3NMdlGB65RqcIXBlvEU4QuCMD1lZItro67yEIrlcJvLBfRKPiTw4bT0RZHH2BGpNoR36mHFZrLN02w/07FbY/FBi2MMDJNIu5IscHXACocw3h2NoB5EPtyBz8V7AIqkOxvQl3QBXYkmf3cCs3e/HUGKHWoadSFjv6C1hXOrCZikpVpFI8aBhWjnNZrZiFmesgaGTTnLKsOWZ4NSzc5sQxQpP6/BsI7GLJ6SDKYV06ITeR78qYClkbxHLPhl8gryaBRZxtm4yj3y5FbkJ9hKcIw8g/qdXdSmVe5wuOFo90MgDT6Nswju8jyXvHhVpoiM9VhghaPqF7CukcunDZTkyVyQjMCGhtxm1x4hWG33tb/bjiugF1CQI2s1ffTWY3BLOKtkOK3lx5hGSbxpjpqTx731+tiKPPKFOjY8IwJ4dFVV4sB+XNlb83FEf4sngZqSzAA= X-Forefront-PRVS: 025796F161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39830400002)(2906002)(2950100002)(5003940100001)(66066001)(42882006)(6916009)(50466002)(48376002)(47776003)(42186005)(53936002)(6512007)(68736007)(5009440100003)(54906002)(50226002)(38730400002)(6486002)(6666003)(25786009)(305945005)(81166006)(7736002)(6116002)(3846002)(4326008)(8676002)(6506006)(189998001)(36756003)(50986999)(76176999)(33646002)(4720700003)(5660300001)(110136004)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2280; H:lio357.in.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2280; 23:27Z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ascii?Q?ZzUUFsPImnASJci6H7EMShqB2bIGmIJEjOOvhTBnwh4ou9N6mcxHvCtLC8uA?= =?us-ascii?Q?arsDv5zPl9S236fDLbCcQwBNFHh7RWwlKK/4PiHgIcRhQY3WctNPZIUkCkKj?= =?us-ascii?Q?COsrGEV4IsYLjVDnHTpU/PS21XaxASs1gjtrd2uBHPamAwbC1UUdW45v8gwE?= =?us-ascii?Q?zrJlEAcIvfUoYpBPAu4HPTP2dWK?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2280; 6:Fj/dPSscHW9X+iEidQWtp0gCwLxBoT4XprFMp8whKy47FTVMYaWvvW72NoEtyZWYwBDKRpalRWuD4KdLrgF3w59kGMY2nCDHL3hiuQNvQ8DNW3/XKpjKBFo2BYY3sv1slWNisbGMxD8LjKfXUp/cGv+3c0zfoKXzMy7LANvltYb5ezMYlR31ZUzTLn5zfp5V1wZs+lKE92SFm/mk6shFNL9H6OAt/SNfJtdcLH35Y6lX7OcbsRxV0+jd3qyLY9VkHpPvBrUm4wioHBE1AWAAAFm0ItXa4xRdDEAGot20VryNScglxgm9XkEUIBnuimrMJI6UYXCIaBrhcfrkyPaFSvAIfp+uUqi7i2S1ua1VV+LqRts/TjAVAAt3DWOKavuSvsWK4qx/GyUSrf+DTatnTg==; 5:PGGc6l8jCrVyx9dUxD24ODURBSIejY9dTb2diiT8wxo4A+W7BcRDFc2ev3SeTCto+hXicZy4Tjc8BGZiEb1Q+7Kp8I1PoltT5OrivP11oVVNh1p3bTskzmyqt7lo2CgiAtRS96ZjZnU+wkalPHw54g==; 24:Aw78VZ8Ry6PRcGLAwhod8Z2vGsBQufxrnY/XdqFLERpzRaaO+AV+j52ttAfrh8o5IqNtSe0UVk0MOaDijQj2NxG4EpgHCDhn6BgF1dVnqMQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2280; 7:YOV1nRBejFBos8UV4omgd0eyJy44AdXAdEoo1MmGVEHQhaTGom34DcGhFus47+csQ7ft2BwxFRZbVacZSSqoodHPv0TqT4+HujLJ0+Do8wCF05LMDKnb9ag8/EEZfLJSPs02w6NbDHAjFdj7zwmOvU8q+TPAuFIEeHtIAtwnm7/oS71KUQJOWs6OrAxb2JqM/hDMhneY6uG07A+5wDcGgXzOZ1xwpmYg5KAmt1Yg0J7BcboovS0EdK1sLT4Zist3xCZjGFMt+RLBoSgZXAC3U5WLpoWCbuMsbVss27yM9C/acGWpukTqxDRmEkH01+cnKr07lNwyVqWFLeFIiaL6Mg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2017 06:26:50.1424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2280 Subject: [dpdk-dev] [PATCH v3 01/46] net/liquidio: 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: Sat, 25 Mar 2017 06:26:55 -0000 Add makefile and config file options to compile PMD. Add feature and version map file. 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 | 6 +++ config/common_base | 5 +++ doc/guides/nics/features/liquidio.ini | 7 ++++ drivers/net/Makefile | 1 + drivers/net/liquidio/Makefile | 59 ++++++++++++++++++++++++++++ drivers/net/liquidio/rte_pmd_lio_version.map | 4 ++ mk/rte.app.mk | 1 + 7 files changed, 83 insertions(+) create mode 100644 doc/guides/nics/features/liquidio.ini 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 4c2fcac..1421c85 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -291,6 +291,12 @@ 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/ +F: doc/guides/nics/features/liquidio.ini + Chelsio cxgbe M: Rahul Lakkireddy F: drivers/net/cxgbe/ diff --git a/config/common_base b/config/common_base index 12143ae..a5463a3 100644 --- a/config/common_base +++ b/config/common_base @@ -292,6 +292,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 Support Libraries for NXP DPAA2 # CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL=n diff --git a/doc/guides/nics/features/liquidio.ini b/doc/guides/nics/features/liquidio.ini new file mode 100644 index 0000000..3422661 --- /dev/null +++ b/doc/guides/nics/features/liquidio.ini @@ -0,0 +1,7 @@ +; +; Supported features of the 'LiquidIO' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +x86-64 = Y diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 7b8b6a2..0d1ff82 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -42,6 +42,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_NFP_PMD) += nfp 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 48c7a1c..a63464f 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -117,6 +117,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_NFP_PMD) += -lrte_pmd_nfp -lm -- 1.8.3.1