From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0055.outbound.protection.outlook.com [157.56.110.55]) by dpdk.org (Postfix) with ESMTP id E53AE5A30 for ; Sun, 29 May 2016 18:48:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AHxPOTjE2izIC9f2UWw0hJG+CwgcuFJarVEH/GXqfm4=; b=bZidg6SuVqMubXkWE6D5vLIjKZWs56X0TI+5SAUNXQlZG5v4mkNpUSN7s6ymKdoc6DKWOMaGYFRNj7D9zaZleXY+VQ+evM/WeRSOpeSxMNnKoJeVWQdjq3vnGH9U/v0wHfvWXpBhHxN7uaRInqk8zYHa5Vc+YAKmDsjZnNp3V+k= 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 (122.167.187.184) by CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) with Microsoft SMTP Server (TLS) id 15.1.506.9; Sun, 29 May 2016 16:47:59 +0000 From: Jerin Jacob To: CC: , , , Jerin Jacob Date: Sun, 29 May 2016 22:16:44 +0530 Message-ID: <1464540424-12631-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1462634198-2289-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1462634198-2289-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.187.184] X-ClientProxiedBy: BM1PR01CA0003.INDPRD01.PROD.OUTLOOK.COM (10.163.198.138) To CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) X-MS-Office365-Filtering-Correlation-Id: a0dae35e-896d-4730-4f69-08d387e0ff60 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 2:76w/NA1umwq3pAXhAUoOnVMX7ugOu9QUj5kVcApO8VC5hz3IdOB+wpvQLmbZxItH3HIiYe4zBMU8+FHXZlIzs2iyvqCSDZt8LySteLf7n/damCR5dvJPx/ta2el+VcqvhfgdeHslR5Xn//0Y0gEePP7vdmK7rlt/Ta3A5uduxoXx4InCXHfofL3lipWigGSS; 3:r9t9q76AVTDIsu1ZO9yjBUrGjrziCv42iNZnZd647fpY2rMRiGUctPs1j0G35VA38U3EDqdsZviT0/Qc3ijDHAgcVdU4SVW4hMU08vcoqFcUT1H/ccT0Foxv91VNDXWL X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 25:vw3ZSGoORHiNEJm6Sng85RoB+TKG6dxXwP9EeOpXOd4kV4E7/z6er3X9s3qevkx8zlQC/NV+xY6JLgRWf80zia92ZdPRrVnGg8J7XTIH21aYwVc2RmPbtQYkbmLsNLkhHAYmUpanVhQnhrEwUgMZFxbQoSPINg9fdlgsEk/IRu8GZUxR7YY9ynAjCGje/7EPsfvpUaojyEQ/HsKiwKC2zmGY2y0hu0VnFpcFXcsnIDY9fnqpFl3kBANe5OE3rcHfRMnlSKTReSia0ODH9GEpn31pTt9KpnTWEO7qpbN5QADB9pDOtSCyK2vrnmTIWtnbDCxTPypNKieWcEgTabR0TwHh3wFhKddsN4O2REtg1T/c8LdLxmdt2GuFKmCXg1iKfVz7W3usjne34ynaYDmILw+2+8JyTLZiq6nnxydNRC6bIf35/kabtaWWURZT7PzIYTi7hJRrsHsmV50TWk/fIW6Pz0I7YE9Cr5Q3ffHwXNNNBGxIseYpjgjk5uObejK7+lRC11gm/fpy1kHKOiokZ42A8uUtJtz0E+ovjrTEdB89mFKvLioPNkl42xYclEz5E4YW3TNUG063+ApCRU5PNs08oo0nMSnh31K0+95re2cG5TDC7hZix7dG8pNIFdO0pQdixyAIa0sTYUOwQSkl9dipSe4ti+h+PaFJKEDQNn6glxHtLD53mmqmtpXK3t2PlP6bgGXoJ9v+etUcJdU5NJFsKewobCkD9rr7Xzsks/KFz4m4hx/EjOOjPLjFyuBD/ITCFEfqEa8NQF6E/OHRKKuhX/7D6sUVD99ahYXFM98kDLhYk8kyZBE/QlO5WDkA X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 20:qTaQKCduEGzZ4pYImVTzQXPycJsSPqnmmR6nR75b6Z24VEcmHnHSox9z6Nb66nHargCnKT71AWuc+6tpScU4Tnyj+7BDmK5M3ikf8tJcO/Xpj5Qrv2Ia6LDXZjsR4lkGYzUk5Ihw6U5u4hVHUOeHOQIgEwIxWL6NpVWCnLpHxKCZL67TbYC/OuOaWv0WMFjGM5z3TA1L0XiR7GzF8OKliarMLI7Kmc5ptGfCdGtJSptAB4KY651/0R97DcJmTju+jO46ykfJ7gNIRVcrqjoSiT27mLQh0OqrBczi8mancoht/VbZyD22/z3AcFI/OVp0q3/HZdSFjwGyICWYns7nzGCoo5ZcXN8F67Zanmb9SnAkAXViLOcDceNSVDYzOO5gedf2gCVmMmd1RTsIB75msHoJjliKc0cY9Pnz3nlcKS+8pMHOjgFenPHkGeaOk9zOjvg/OKycCugBg/uafxG7Oclkd00XMW5mYsveYPBKHbH+Csa2qW00VHMI6Wz2/WRSs/y8xOm8MB9zmc2aRFS+64121Tvaxx3wzKYdwVaRPFpDYPqbIVGZnatKO0RZ9xw7dK4kQRhWpEW6QQQP4iP6xPzTNF9a9b3I7y6DrPd7FbI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY1PR0701MB1725; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 4:uegIWOsL18b+NV1XTUwPBxewBsG/RLMhueoX2qLRfPaw3E1+vWvMSPD5lWgsOUcLsIpevqNB/D1LLODMNf5Qhu9WYnDXGH8t++4vG54LOeI4vUYQwcd5oJGubOr5/+4NUgMTkUvO501sz6faPZkl9rJpfzGgwHCH6YbEQuiRcFmwkHQBguxjkSYPryrHnYrj9ARH7IDdcdTLFJGGc/FHzaBC7pSxhS6ppRGvidiRglhk7LuQXslkY/wnAsry5CYs0NBYTiJEWIFpQF1HoXKDYWPEHAhgd+fx3aYJSZjM7Wgb53R5/lZrqjKWyeS5be0WXQyymn2fRyAoVkybupTXcO5qpab6mRF3dzgw84EnWCM= X-Forefront-PRVS: 0957AD37A0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(4326007)(92566002)(189998001)(15395725005)(2351001)(81166006)(33646002)(76176999)(229853001)(2950100001)(50986999)(19580395003)(36756003)(50466002)(110136002)(8676002)(2906002)(107886002)(586003)(575784001)(3846002)(77096005)(5004730100002)(5003940100001)(50226002)(66066001)(15975445007)(47776003)(48376002)(4001430100002)(42186005)(5008740100001)(6116002)(7099028)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1725; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1725; 23:Fz3X+Gs3fqdbBePVJzId2PeH3wGJC4Jcz79VQLq?= =?us-ascii?Q?putjLSfVYedg8cYb9maA/W1tHdrso9AjZEZrpu6ZsOjQ5JuxGrMxtJHzX6rI?= =?us-ascii?Q?XtMK1zdQlEtCcd9iQCRpZMoANqxvihsu44AKiZUItztv0LM0TBH5QT5tk2PZ?= =?us-ascii?Q?/cTPHUZKQJuNgk6bGYG7aeM8yFAaqZd6Z/kRt7b0H2FGy7NJKszQ8Zq4ixeT?= =?us-ascii?Q?bloWu4lDuHd+l88Hc3JoQlhq1M06580Yg1MMgoKG8VbHa5/Io8NFpBFKbJ5E?= =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z3hqFt7MkYWnTaoRifeiJGjEwehB8DIfCPyg==; 24:ykBy5F9Yrcn2zH7SOKVnMUsiaUg4TqqIIjiW8Pjw9271euP8tq4unxYvQ5xCKTLNel80AzrPsncdx9hNAJc09RKGnTGo8lK78zFxUvauo9M=; 7:I1XSmNRLitcBQjIWyhtRPvLVXonyJ380u6SYlhAOfWs/A6eY8keO33coWKfeUNqBYLuuQfUuFDmRvbl9VUNxyBz3AzIVtQe/+V8GBY+Mz+lijwW2b9HFUSXKBnJZ4bHYolFX9c8MxaisKbWHL+M+qLwaK9NRVyPE/WexntOUCLoArcRjiRvPt1FvAkVkMBbI SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2016 16:47:59.5359 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1725 Subject: [dpdk-dev] [PATCH v2 00/20] DPDK PMD for ThunderX NIC device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2016 16:48:04 -0000 This patch set provides the initial version of DPDK PMD for the built-in NIC device in Cavium ThunderX SoC family. Implemented features and ThunderX nicvf PMD documentation added in doc/guides/nics/overview.rst and doc/guides/nics/thunderx.rst respectively in this patch set. These patches are checked using checkpatch.sh with following additional ignore option: options="$options --ignore=CAMELCASE,BRACKET_SPACE" CAMELCASE - To accommodate PRIx64 BRACKET_SPACE - To accommodate AT&T inline line assembly in two places This patch set is based on DPDK 16.07-RC1 and tested with today's git HEAD change-set c8c33ad7f94c59d1c0676af0cfd61207b3e808db along with following depended patch http://dpdk.org/dev/patchwork/patch/11826/ ethdev: add tunnel and port RSS offload types V1->V2 http://dpdk.org/dev/patchwork/patch/12609/ -- added const for the const struct tables -- remove multiple blank lines -- addressed style comments http://dpdk.org/dev/patchwork/patch/12610/ -- removed DEPDIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += lib/librte_net lib/librte_malloc -- add const for table structs -- addressed style comments http://dpdk.org/dev/patchwork/patch/12614/ -- s/DEFAULT_*/NICVF_DEFAULT_*/gc http://dpdk.org/dev/patchwork/patch/12615/ -- Fix typos -- addressed style comments http://dpdk.org/dev/patchwork/patch/12616/ -- removed redundant txq->tail = 0 and txq->head = 0 http://dpdk.org/dev/patchwork/patch/12627/ -- fixed the documentation changes -- fixed TAB+space occurrences in functions -- rebased to c8c33ad7f94c59d1c0676af0cfd61207b3e808db Jerin Jacob (20): thunderx/nicvf/base: add hardware API for ThunderX nicvf inbuilt NIC thunderx/nicvf: add pmd skeleton thunderx/nicvf: add link status and link update support thunderx/nicvf: add get_reg and get_reg_length support thunderx/nicvf: add dev_configure support thunderx/nicvf: add dev_infos_get support thunderx/nicvf: add rx_queue_setup/release support thunderx/nicvf: add tx_queue_setup/release support thunderx/nicvf: add rss and reta query and update support thunderx/nicvf: add mtu_set and promiscuous_enable support thunderx/nicvf: add stats support thunderx/nicvf: add single and multi segment tx functions thunderx/nicvf: add single and multi segment rx functions thunderx/nicvf: add dev_supported_ptypes_get and rx_queue_count support thunderx/nicvf: add rx queue start and stop support thunderx/nicvf: add tx queue start and stop support thunderx/nicvf: add device start,stop and close support thunderx/config: set max numa node to two thunderx/nicvf: updated driver documentation and release notes maintainers: claim responsibility for the ThunderX nicvf PMD MAINTAINERS | 6 + config/common_base | 10 + config/defconfig_arm64-thunderx-linuxapp-gcc | 11 + doc/guides/nics/index.rst | 1 + doc/guides/nics/overview.rst | 96 +- doc/guides/nics/thunderx.rst | 354 ++++ doc/guides/rel_notes/release_16_07.rst | 1 + drivers/net/Makefile | 1 + drivers/net/thunderx/Makefile | 65 + drivers/net/thunderx/base/nicvf_hw.c | 908 ++++++++++ drivers/net/thunderx/base/nicvf_hw.h | 240 +++ drivers/net/thunderx/base/nicvf_hw_defs.h | 1216 +++++++++++++ drivers/net/thunderx/base/nicvf_mbox.c | 416 +++++ drivers/net/thunderx/base/nicvf_mbox.h | 232 +++ drivers/net/thunderx/base/nicvf_plat.h | 132 ++ drivers/net/thunderx/nicvf_ethdev.c | 1861 ++++++++++++++++++++ drivers/net/thunderx/nicvf_ethdev.h | 106 ++ drivers/net/thunderx/nicvf_logs.h | 83 + drivers/net/thunderx/nicvf_rxtx.c | 600 +++++++ drivers/net/thunderx/nicvf_rxtx.h | 101 ++ drivers/net/thunderx/nicvf_struct.h | 124 ++ .../thunderx/rte_pmd_thunderx_nicvf_version.map | 4 + mk/rte.app.mk | 2 + 23 files changed, 6522 insertions(+), 48 deletions(-) create mode 100644 doc/guides/nics/thunderx.rst create mode 100644 drivers/net/thunderx/Makefile create mode 100644 drivers/net/thunderx/base/nicvf_hw.c create mode 100644 drivers/net/thunderx/base/nicvf_hw.h create mode 100644 drivers/net/thunderx/base/nicvf_hw_defs.h create mode 100644 drivers/net/thunderx/base/nicvf_mbox.c create mode 100644 drivers/net/thunderx/base/nicvf_mbox.h create mode 100644 drivers/net/thunderx/base/nicvf_plat.h create mode 100644 drivers/net/thunderx/nicvf_ethdev.c create mode 100644 drivers/net/thunderx/nicvf_ethdev.h create mode 100644 drivers/net/thunderx/nicvf_logs.h create mode 100644 drivers/net/thunderx/nicvf_rxtx.c create mode 100644 drivers/net/thunderx/nicvf_rxtx.h create mode 100644 drivers/net/thunderx/nicvf_struct.h create mode 100644 drivers/net/thunderx/rte_pmd_thunderx_nicvf_version.map -- 2.5.5