From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-eopbgr680088.outbound.protection.outlook.com [40.107.68.88]) by dpdk.org (Postfix) with ESMTP id A875B2BBA for ; Mon, 13 Jun 2016 15:56:25 +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=riFz6Ex36onWFqLOUiVDH4doD0Eq89MPvBiw4BNwKuo=; b=LyHXOKouBzUOSwA3HhjYOi6dON87nY1ySLcTeJwf3Os1gvg+2HZJHB6Xa8Qw4tqKktv+mHb5UOech/qIb8QUSJ63JBzQuZLJXFOcgOxFUCLE1dkK78Jr2QJKpmJ6BwT7kpXvFv6sCxVn9nI0KKNdrF95F0hjeh6eCD5roQKEZLI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (171.48.21.3) by BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) with Microsoft SMTP Server (TLS) id 15.1.517.8; Mon, 13 Jun 2016 13:56:21 +0000 From: Jerin Jacob To: CC: , , , Jerin Jacob Date: Mon, 13 Jun 2016 19:25:24 +0530 Message-ID: <1465826143-22159-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465317632-11471-2-git-send-email-jerin.jacob@caviumnetworks.com> References: <1465317632-11471-2-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.48.21.3] X-ClientProxiedBy: BM1PR01CA0031.INDPRD01.PROD.OUTLOOK.COM (10.163.198.166) To BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) X-MS-Office365-Filtering-Correlation-Id: 6dc5721c-c8be-4fed-8b8c-08d39392817f X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701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FPHIhseLeVr3dcAb61yXELTsEFg0fOlUl2G7fXdAJp8nnECIyLGlKXFl54k3RujU5viMDbTCiuSUAIkUyqaAodpV/3lJsBQbG79ovwBsAD1faaMPi5jAFEu55c8848crS6Zp2UuDNJ0yNabgO8Gxfh9slqWjiONkFk5sUWbHCNjezvyqxxzveaO3n2vRX9Gbyon3Obdtg== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 20:RjN38bhpv32Fh0tSpWWGqFk0JRlnkChoW5zx1AWiPG0/lGwt0newpE5GWegeMseeYIrkzGNAmotkwlipRnKZ4H2TII4IPFYDFtWmfaJa7hPWZ7qvoGjwqXXIGta3LJCZhDPGJdpG5md4w0+Aerj/tn17Nruq9B0H3M54LXBuyS3ZnUDs1HYPcx5lZJniBirYrEq3SHtBsiqAnR43MSdhKR5zp+c/x4JdAQ5LlItU6H3hkPJ+b5HMAAgdKu2IU06OdgIFw6OGJmTj9yGlPKy6c3yaxupL9iAo1t4HwYRG/0IPahU+f2Mc/lhlYRZS7TFCSXUDBUiLuS0cDrFNLuxsR3xSu22OMv19AAgmpiYTT2BKIyDuYC2QDfZsHe0YUt84Aig14MV9LW8DdfcatXjU6R1IZfWSNhdk5KanajThN3hWOBX+qTWmifn25urmrLVYApRWaRBuynfumIaaVTZIZHIdn0s1UAc0t7TwxrbATBEZjJ8koffXgIRGkrmviyNZcb1Ywq5VcsfoPcycsnxz0KGBSfp3bjbrepHY9ApWDbhzx5abPg7cuE9l58euE5ijVRzuk+A1xB+iJnDJfxlykKtaMXgCcp7aSV55ykad+cA= 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)(3002001)(10201501046); SRVR:BN3PR0701MB1717; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1717; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 4:k3T1QuG2NAdAilhuiROjrKxYP709AitOPmBqYLqRS/SQIrxZLRZnVQdsM0xdit/brhg+uCXre2Ba7Xs1MVKVVtLWo1cnTFiT34I8D+AOYzE6mn427Y3JLWwR7BOLw+UDQpotwu2ODUOP2jEOFjdC2UgryMZUaQmqdVJgkpaJx9+Wp6dhm6hb4Ei3zlOdSNzbEOxoetDi0dM8cK9CoB2Oy3xl6+aGx8OIHLqgS0A3fkp/BVzn0id85f5hlrO66rTLnZxiYNoqJuq0zmxTEnM5sqz/JvT8dTUMA8vTP4utC+H+IEwo+TT1j3IrN/USN7wlFvQ5XOHIXl5dzxGP3gZh8G5hYvJbBPI9JR2c1grZKjz8snKwXICabcfT5PEm6jgv X-Forefront-PRVS: 0972DEC1D9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(54534003)(199003)(50466002)(48376002)(101416001)(42186005)(50986999)(92566002)(76176999)(105586002)(106356001)(33646002)(2351001)(5004730100002)(47776003)(66066001)(36756003)(586003)(3846002)(6116002)(19580395003)(575784001)(77096005)(15975445007)(8676002)(2906002)(81156014)(81166006)(4326007)(189998001)(97736004)(2950100001)(107886002)(110136002)(15395725005)(4001430100002)(5008740100001)(229853001)(5003940100001)(50226002)(68736007)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1717; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; CAT:NONE; LANG:en; CAT:NONE; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1717; 23:S/eivlSUsbr1M+2W3Ij/tSMkcFTYau9YXRyTTp/?= =?us-ascii?Q?4j/1JEtGx7xAASeiEDR3xux1Oz3fDm/ScgGtUrd2Nni8Tum5Tac5U/Os4Qwq?= =?us-ascii?Q?cr/1U4rr6ozuWfo4N3vdzKhVy580heF3CIto3S294ub+/5WEwNBmRMyCXfYd?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Output: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2016 13:56:21.4321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1717 Subject: [dpdk-dev] [PATCH v4 00/19] 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: Mon, 13 Jun 2016 13:56:26 -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 git HEAD change-set ca173a909538a2f1082cd0dcb4d778a97dab69c3 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 V2->V3 http://dpdk.org/dev/patchwork/patch/13060/ -- Changed polling infrastructure to use rte_eal_alarm* instead of timerfd_create API -- rebased to ca173a909538a2f1082cd0dcb4d778a97dab69c3 V3->V4 ddressed review comments of Ferruh's review http://dpdk.org/dev/patchwork/patch/13314/ -- s/avilable/available http://dpdk.org/dev/patchwork/patch/13323/ -- s/witout/without http://dpdk.org/dev/patchwork/patch/13318/ -- s/nicvf_free_xmittted_buffers/nicvf_free_xmitted_buffers -- fix checkpatch errors http://dpdk.org/dev/patchwork/patch/13307/ -- addressed review comments http://dpdk.org/dev/patchwork/patch/13308/ -- addressed review comments http://dpdk.org/dev/patchwork/patch/13320/ -- addressed review comments http://dpdk.org/dev/patchwork/patch/13321/ -- addressed review comments http://dpdk.org/dev/patchwork/patch/13322/ -- addressed review comments http://dpdk.org/dev/patchwork/patch/13324/ -- addressed review comments and created separated patch for platform specific config change -- update change log to net/thunderx: ........ Jerin Jacob (19): net/thunderx/base: add hardware API for ThunderX nicvf inbuilt NIC net/thunderx: add pmd skeleton net/thunderx: add link status and link update support net/thunderx: add get_reg and get_reg_length support net/thunderx: add dev_configure support net/thunderx: add dev_infos_get support net/thunderx: add rx_queue_setup/release support net/thunderx: add tx_queue_setup/release support net/thunderx: add rss and reta query and update support net/thunderx: add mtu_set and promiscuous_enable support net/thunderx: add stats support net/thunderx: add single and multi segment tx functions net/thunderx: add single and multi segment rx functions net/thunderx: add dev_supported_ptypes_get and rx_queue_count support net/thunderx: add rx queue start and stop support net/thunderx: add tx queue start and stop support net/thunderx: add device start,stop and close support net/thunderx: 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 | 10 + 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 | 905 ++++++++++ drivers/net/thunderx/base/nicvf_hw.h | 240 +++ drivers/net/thunderx/base/nicvf_hw_defs.h | 1219 +++++++++++++ drivers/net/thunderx/base/nicvf_mbox.c | 418 +++++ drivers/net/thunderx/base/nicvf_mbox.h | 232 +++ drivers/net/thunderx/base/nicvf_plat.h | 132 ++ drivers/net/thunderx/nicvf_ethdev.c | 1789 ++++++++++++++++++++ drivers/net/thunderx/nicvf_ethdev.h | 106 ++ drivers/net/thunderx/nicvf_logs.h | 83 + drivers/net/thunderx/nicvf_rxtx.c | 599 +++++++ 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, 6450 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