From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0075.outbound.protection.outlook.com [104.47.38.75]) by dpdk.org (Postfix) with ESMTP id 10E525587 for ; Mon, 12 Sep 2016 13:00:10 +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=KUV+wek/XAxYI9k0Qls7KWUlUwFNkO18s199+Kvsti8=; b=bE7x6mM128eV8z1sgYwrj91TDE42fwQXGyoN4Znzgu3dewJH2OypVRlUqsnnkkGbcNLIa6WP1hTWo6OiAdolaivt9HxXQ3z+gidjU5QRAcFSTEjRQ6MDS8C1sY2uUqGuaXihpqZ/In9pl6Umqwi5XC1rzo0Ew5lO493dL3dvgak= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (31.172.191.173) by CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Mon, 12 Sep 2016 11:00:01 +0000 To: References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> CC: , , , , From: Kamil Rytarowski Message-ID: <17abab9a-e19f-3a79-972f-0d554300c420@caviumnetworks.com> Date: Mon, 12 Sep 2016 12:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> Content-Type: text/plain; charset="iso-8859-2"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM4PR01CA0055.eurprd01.prod.exchangelabs.com (10.164.74.23) To CY4PR07MB3063.namprd07.prod.outlook.com (10.172.116.144) X-MS-Office365-Filtering-Correlation-Id: 474459e2-660d-490b-edc7-08d3dafbf294 X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 2:7ntMrOqnLOmOQ1XQ2N+/sYsOxexAuu3uOh6vJKYWcoGvRvmUFVYQ1ODyHR7tjHYQ1CdEIQV8Hf5Lq4UjYIgVd+m7TTbpZw/4q7/ReBToE6GsXTbv8z5QQnUZytY7jJg/jlcq/F6ccuf39tmEjfZhMVd52vX0gCjMRyRXrVNXqXQbGfV7CAv8Gy4RJZkPxlKw; 3:Rdq3guWNcRpOC3+CLiKb+xqS4TXOx/swZ6ioGGwTV31/WQoeORyZ84YalnpPvNrnoA+8eWizCp9Gu4lsz+jcxSmTA255MEuiwO4xW7TcCOVEZF40hdHu14+HdH+SDKLn; 25:sdWZ7VYPlzyLoGH14ZF+ADIT30vaqYSbycIVo3IigZR/ePEs/3qfO4TXoT7npeKMp/XXJTndV3eXLtJXi6gAdtHdEMqR5TvBJZ4i9Q6ktJsXSHJ6xbhQXx66+rZ8EgZfvSmmy82if2EZPsVbdZkfqU1S74hGf+kj105dxfbd32ti4zrTI6AhlUUCax7toTCR3L0oNqejpXHNw6ddaP2th6CW7Ms/pTHuK9ZY7Be5Y7r0rJwLwJZ/nrxZIThXSsMkx+JX0NUQt1GNMKPLsjEp2q/bu1MA5rDVJ0KaMhNsl29dxPFR9jDjp5Gc7zovl1bcAwJPHXFF2w1Q/i2NV4XHmwYfQKO3RbdeZ4UiG/ZD7Fh6rWNRx17jD4CP6kkge7np/tOIWiAsbyA6XzGxDnE1FKzT0frBhOq1Nl1wAw7B1Co= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 31:HF/MgrsfR2mWMyc+drYSi2U6uB/MRrsuBSi6F2hlcZSCANSoPhfwb4fLL+j3OzST+Y3eFp/QDWAG5zWmjwVcb9ULIpv8beLkDMavFjwA6WXFVx6kZr1yz03jOtQmU/chSqKuY2aNqVfa7Sc3PGo0y72clHcw4nUoEfym32YYHp8iKtOGDxZG4Jn4CxzI5HfNu46/sM6ajQJqQvqD5oNkd+UaWTddt6lyhD7HW1/uB3Y=; 20:d8d1t56AyCZ9D1DHunkIGTPnTFp1WKM6UdWbxn6VHqMwOAxDaqF1mSWMPQSTz8Mcrs00djdYvoGb3wrHaIU/JDD7AowDZ9TqU3A2Yb0x0O7Bg4IWuRedX80D8I7OcABky4naKTEne3yZ6SvmSp7zWAv88NByIrhZYdomZVUxhOzcFxoHJIomrmAhf77qRzMR8tIDdMFzXRNMa9NcqJ3QEJpQSy3LhVo5CWGw0HWffMjFxNPOHmLB5zMDrfi7gVe8oBnxRe6WdIL/yt5XOAP2Io6VnpiDIhWvtTBNoWhIQZGFSr0Hy9xYXvoP0HygrIE3CZJs5OvkU7pCiHOGGMgza5570ilNPl7x8cyEZMYiu+t2zUrhiP5y83WPaUS1XEuAvJkMFbI3doHbZXRiyJSEC3qNBl+L5240cC4ky8o6rW/mc0IkeeOglwo8GjESS49SSSptfQ2SSemz1lLLVEt3hq10HEBPWOBSaTQ1zj9WJERUPgeGn/KwWlasVKPuNrFgKOax82Mg3euAIWsPc0EkuWdO68fFbxFiBtDLYU4hh1X/SdS1E7h7zhsnIVrC0ubOyRPK6x/x9pt2d2Q7f8N/Au5I0Vf45ZWWJySXpd7Dze8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:CY4PR07MB3063; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3063; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3063; 4:MTy3w8um9LCGIi3sxOfrBI7WiCU/DxIP3ERdjY6fIi+VKUn4jXUC1c1FATN3GkwJAuNQZeiLwHwT/RLW3UBmFaVOwF7YaoMg15pDPQOVQeeCazuLv7xMCRDjGyjP6JhK3b6c2CTtuMsXaietkfsFhbBUjlGeahRVBz1WQOnZsGDJPEEKERSW159uvixmXEFD1DiG78k2ogMi1zI7E56P+EEtl6Otg2xkUh2TsqhJAiyfG7D1m+IY29uaazk0732WLpHQU/4fbVsXx419VraBCFMlz2BSh4jlQpMtkIM06z/jZwyC0dkfYVpkXBJ6PYvCtYo1hlZnBh4aMiTa7IZEwJlkQUtXItpRGhtFgripTLZ3aIAU3eNkwW0xYgOuvC5hxr1vJteTJ9AD+h0uliWj7w== X-Forefront-PRVS: 006339698F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(66066001)(31686004)(65956001)(15395725005)(50466002)(2950100001)(19580395003)(15975445007)(110136002)(586003)(4001520100001)(3846002)(2351001)(5890100001)(4326007)(8676002)(4001350100001)(230700001)(65826007)(107886002)(7846002)(81166006)(76176999)(54356999)(31696002)(65806001)(2906002)(83506001)(87386001)(50986999)(92566002)(305945005)(77096005)(36756003)(64126003)(6116002)(42186005)(33646002)(189998001)(47776003)(5660300001)(4001430100002)(7736002)(5001760100003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3063; H:localhost.localdomain; FPR:; SPF:None; LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso-8859-2?Q?1; CY4PR07MB3063; 23:NGnEr9AdHqmzsogLtzZSne3LXKIekxtRh/DLWLP?= =?iso-8859-2?Q?NOiXp33ZVFZnp0a9Waf5/m9EKHIPlr7EPjaoROPuasJlws8mQWtyvtIHse?= =?iso-8859-2?Q?z5P/sQKyQIF4Ls2C6qmpzI1S4TCKWIQnq2Pr6TNHW1yC4GzAEYToazub+W?= =?iso-8859-2?Q?4FJ7WnMkBhUkVKBl/lMr6Lg+oA/itmlE6Dp0OAnwlN6DfBbW79v1tAD7ax?= =?iso-8859-2?Q?7myuPpCpcDt2bwQTqhPT3N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4+DCQxfuMn1anR43NHZV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2016 11:00:01.7924 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3063 Subject: Re: [dpdk-dev] [PATCH 00/13] Add support for secondary queue set in nicvf thunderx driver 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, 12 Sep 2016 11:00:16 -0000 ping W dniu 26.08.2016 o 18:53, Kamil Rytarowski pisze: > This series of patches adds support for secondary queue set in nicvf thunderx > driver > > There are two types of VFs: > - Primary VF > - Secondary VF > > Each port consist of a primary VF and n secondary VF(s). Each VF provides 8 > Tx/Rx queues to a port. In case port is configured to use more than 8 queues, > then it requires one (or more) secondary VF. Each secondary VF adds additional > 8 queues to the queue set. > > During PMD driver initialization, the primary VF's are enumerated by checking the > specific flag (see READY message). They are at the beginning of VF list (the remain > ones are secondary VF's). > > The primary VFs are used as master queue sets. Secondary VFs provide > additional queue sets for primary ones. If a port is configured for more then > 8 queues then it will request for additional queues from secondary VFs. > > Secondary VFs cannot be shared between primary VFs. > > Primary VFs are present on the tail of the 'Network devices using kernel > driver' list, secondary VFs are on the remaining tail of the list. > > The VNIC driver in the multiqueue setup works differently than other drivers > like `ixgbe`. We need to bind separately each specific queue set device with > the ``tools/dpdk-devbind.py`` utility. > > Depending on the hardware used, the kernel driver sets a threshold ``vf_id``. > VFs that try to attach with an id below or equal to this boundary are > considered primary VFs. VFs that try to attach with an id above this boundary > are considered secondary VFs. > > This patchset also contains other cleanups and improvements like fixing > erroneous checksum calculation and preparing the thunderx driver for the multi > queue set feature support. > > > These changes base on the following pending patches: > > [dpdk-dev,1/3] net/thunderx: remove generic passx references from the driver > http://dpdk.org/dev/patchwork/patch/14963/ > > [dpdk-dev,2/3] net/thunderx: introduce cqe_rx2 HW capability flag > http://dpdk.org/dev/patchwork/patch/14964/ > > [dpdk-dev,3/3] net/thunderx: add 81xx SoC support > http://dpdk.org/dev/patchwork/patch/14965/ > > Kamil Rytarowski (13): > net/thunderx: cleanup the driver before adding new features > net/thunderx: correct transmit checksum handling > net/thunderx/base: add family of functions to store qsets > net/thunderx/base: add secondary queue set support > net/thunderx: add family of functions to store DPDK qsets > net/thunderx: add secondary queue set in interrupt functions > net/thunderx: fix multiprocess support in stats > net/thunderx: add helper utils for secondary qset support > net/thunderx: add secondary qset support in dev stop/close > net/thunderx: add secondary qset support in device start > net/thunderx: add secondary qset support in device configure > net/thunderx: add final bits for secondary queue support > net/thunderx: document secondary queue set support > > doc/guides/nics/thunderx.rst | 114 ++++- > drivers/net/thunderx/Makefile | 2 + > drivers/net/thunderx/base/nicvf_bsvf.c | 72 +++ > drivers/net/thunderx/base/nicvf_bsvf.h | 76 +++ > drivers/net/thunderx/base/nicvf_hw.c | 10 +- > drivers/net/thunderx/base/nicvf_hw.h | 6 +- > drivers/net/thunderx/base/nicvf_hw_defs.h | 1 + > drivers/net/thunderx/base/nicvf_mbox.c | 34 +- > drivers/net/thunderx/base/nicvf_mbox.h | 21 +- > drivers/net/thunderx/nicvf_ethdev.c | 753 +++++++++++++++++++++--------- > drivers/net/thunderx/nicvf_ethdev.h | 39 ++ > drivers/net/thunderx/nicvf_rxtx.c | 14 +- > drivers/net/thunderx/nicvf_struct.h | 6 +- > drivers/net/thunderx/nicvf_svf.c | 78 ++++ > drivers/net/thunderx/nicvf_svf.h | 66 +++ > 15 files changed, 1046 insertions(+), 246 deletions(-) > create mode 100644 drivers/net/thunderx/base/nicvf_bsvf.c > create mode 100644 drivers/net/thunderx/base/nicvf_bsvf.h > create mode 100644 drivers/net/thunderx/nicvf_svf.c > create mode 100644 drivers/net/thunderx/nicvf_svf.h >