From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0057.outbound.protection.outlook.com [104.47.42.57]) by dpdk.org (Postfix) with ESMTP id E8AE437B3 for ; Mon, 19 Sep 2016 14:23:18 +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=03dKmFJ6AFksyY5Yy7UXjdMzZZY7a2FbPRymKQrn6BE=; b=LfOxofmoYqVhMAtqVM4Vq9WeYy8EK+z5oTuXfinMFgDgADCfqJRgw5l7oKntrqw7G8NKmAXBTwOArerku5tuLwTouEXu+sCxTfJDCKLsktuqDnjg2QMgqdblf4xzAAtbsjly16aeqL6XMBr2kzuwF9+OJ6MkYU5hIMLnJitRC/g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Kamil.Rytarowski@cavium.com; Received: from localhost.localdomain (31.172.191.173) by CY4PR07MB3061.namprd07.prod.outlook.com (10.172.116.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 19 Sep 2016 12:23:16 +0000 To: References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> <17abab9a-e19f-3a79-972f-0d554300c420@caviumnetworks.com> CC: , , , , From: Kamil Rytarowski Message-ID: <589c42bc-9196-68df-6e0c-402ff33e3e39@caviumnetworks.com> Date: Mon, 19 Sep 2016 14:23:06 +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: <17abab9a-e19f-3a79-972f-0d554300c420@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: VI1PR10CA0050.EURPRD10.PROD.OUTLOOK.COM (10.166.136.146) To CY4PR07MB3061.namprd07.prod.outlook.com (10.172.116.142) X-MS-Office365-Filtering-Correlation-Id: b8ba3bff-747d-47da-b528-08d3e087bc70 X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3061; 2:Sq0UKacb3aEcHgY4CM/c7EP4OYzxXnshK07nkmUNFUwgatAvAlNzJfC6G1oA2L0x8yCr97n3f1C7CkyhZX7ay4mthE2+LvMYCKOvklQShuMZx30zsQHcZ0wmloGO8aNIakxZZq629VPYk9JAHm0wU65C8Z1oZqJzu7KqDNKbqQJRJWFUd+u8ZH7vIskfSa8X; 3:stLG856gC1sYOXzo1QdRlySfWAipwS5g19w7SZztFJS5AwYxM8wUjndWPcUAWlI0pF/9zh0+OELG5CuVm1TL4GFCvN8QqqerZKlmqzLPovJC5AIkOBTyuALVkBjwZmkQ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR07MB3061; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3061; 25:C3xIdgkFe+krotwoIXbgbhJKNCUQ+C+1sTeNcH7ImRz2a9nqrLOlfFLHsmTkM0olOXSmDcgcGgWIAWibS+NvrYkuzUA+EENXAW2TzB2GjqgHF/fPo/2VOY15kELy6dc7CkT19WMKZUL9wj/bd39kcn+GfJrLN6cc8hmUU09u8DMCHU3upROZ++5E0CcWe2rUj+52Br9Qqo6Y7AuEpMzKJXtHH8iomBtr65zLDKRllwER93IjZ6LS6Alr6ncBQ1CKuxYXDalNnD/g9jdkG7N1YyE/TPv3H4RELwfL0fDhdM3XNOo17v7/+d8Er4N8+t4MBhIPKFYzUvC/OoLNItPf4w3cwBKXWK/Py/gOwmOuW6hCs7a42P6srJ7420LwLox5v9BtmZackH3R5xNqj7Nns4yeLQgPveg6oa/iBZj+FJdZHJGLbMrEnFuAho9ZIaAmTdjAG0nBbYKvJ6eCPA4HS8NqxxDIl6lX3BtFXX73wgpCaRiBgMylS+kQ+rKo0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IKGs48PQygdOj8DUW/hXApLmbqm05e6cYcTrjTIulXfZy1/yfydp4iP0yPG/99Eapf/QDeKPYo3y+ItnHiSdbreitjJs1WZKMWX7wj5rewMusDdG82V/700zXNxNHkRCTTXVgpvr+Z2foiha2sdvGMWUn0iO/BMThypeinDqpS1rjBUybojbl1k9GxnEMwmA/2pqoPJKV584C3ZOI= 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)(10201501046)(3002001); SRVR:CY4PR07MB3061; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3061; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3061; 4:DEo0fy2XJ7CN+L5LdjdUxqASp4zvkxxOJX2l/kJexeTk5VXHu+s8/4qP9z3pckPbTAKu/6X9Nanwwdh3goOeyErxNIxdZZqUajXwasArzQk+yrQKqHxcxKHZFxiCdTfW1VokxW3fhkgpnYVODCB18aat7gC2q7TTqYK9CnOlEd++pkxq1SEQkO830JZ4+ECQqku2QQCHXyqEIrdt5kauZtWZEOgSDfNvTp/O3DmwIgDC84KvBHfXPQxSozShl6FuJNMmuX+nq/VHGHPj4tRCg/QXjX9OWuKd+WeGJZp6bBNODqfP3ksehjMUokDGedXZozA5crJriGwey22RetVtJeRpZ3pXF87sSD0MaABj/BHJPbS+6b88sRIgxYvYCcVSVavIqTBUv0ufuoTOFm3deA== X-Forefront-PRVS: 0070A8666B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(83506001)(7736002)(106356001)(3846002)(68736007)(15975445007)(105586002)(50986999)(6116002)(305945005)(31686004)(2906002)(4001350100001)(65956001)(64126003)(586003)(4001430100002)(7846002)(76176999)(65826007)(5890100001)(101416001)(65806001)(47776003)(33646002)(230700001)(81166006)(15395725005)(77096005)(4326007)(36756003)(54356999)(2950100001)(92566002)(31696002)(50466002)(97736004)(189998001)(110136003)(42186005)(5660300001)(66066001)(107886002)(19580395003)(81156014)(2351001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3061; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?iso-8859-2?Q?1; CY4PR07MB3061; 23:7Z4O/7oIhqOcrzIJ9s7Pce/9cWqI8/NrJGuerXB?= =?iso-8859-2?Q?EMmuoHddVFQKCcWbxKg08TLHv2sgtJVxmoDk7lGVIfmUBbjfUhn3CBsCXy?= =?iso-8859-2?Q?TvHBwXdiuzk7NHajwVEx+e5PLEXYEA900hutuGwClnMCIOY3IPS4sJ+NtQ?= =?iso-8859-2?Q?4NauPnwE2mfU/G84ZGplMY3m//hNXyAi7Dxx+GkW/Xk/eEFaAkb4bInrnd?= =?iso-8859-2?Q?/eXHaWeAR9o0/1wsJv6KHSv/d2J5ykGOJTsEDfAcRQuhLOgXtErzjkGbwE?= =?iso-8859-2?Q?G3wfV0AFFLj8i7ZmqCCevBF4xf3Zlahp4FmLAJceQ15S8O8wWROpyM+0/R?= =?iso-8859-2?Q?FaVnbypygJzGspcCSqUvb+aw2U5xVQX69wyWKMnWWTrmRofwfuCnfICzvZ?= =?iso-8859-2?Q?DimCclrTJdulsmFw8FHLt7XmnwI2pCna0DMXDc43I7rAPiijDt8YHrHjHC?= =?iso-8859-2?Q?C4Jjkiww3FtBzwtCGF0HnVhN22BYFCTHI2+bPoBdNH66pncCE56bAg/dOG?= =?iso-8859-2?Q?gNh2ltVRzIjC26UNvS1/5Wez9GGAxCQZqErDbwljIkkGJcgmi5lKOwrm/p?= =?iso-8859-2?Q?KeGR9qeZH3rn7Al3XfSe6/MchaKBlMpgizjxJqXdZYL4kSLcxL9DignSha?= =?iso-8859-2?Q?OZXkKQKivI5ln6rd4wed7Q3KWaL+wZWan2wRlzRBu6iQ63K6DAurl19mdh?= =?iso-8859-2?Q?uGzmKwp/ROcr6CQOlASqoXUTNNMMBM41ckZ2FneC6eHnbqb0Z4ZkX5n0ue?= =?iso-8859-2?Q?tWiheZGuZd8gWD0y4oE9L/QEHoqasjO0bg/J9NzywXOrdni8VvuXltnupa?= =?iso-8859-2?Q?XVKi7+EjShx1S10iMLnJrXtdZpHYG4kAY+MYn5saCPfmnZxXUVQeWAnIJ3?= =?iso-8859-2?Q?BWGGXQg8S99RjzXmgv1xAUP9A1ws1vnj1metY5k1/gvixxeBdWlrRWyIpM?= =?iso-8859-2?Q?YQqRA0/xZgccHbranUEUBuXe95DsgSVfjdARiiCP8GXEezFIN4C1YMOyjB?= =?iso-8859-2?Q?CRnEutpvsS8JYK154VGMuhBdUrmJMC3+mo+gpSoLEX6r2y0FhVRkrxZpCU?= =?iso-8859-2?Q?KGNHQIVH7rIIyvy0cS9+thA7su/PREjdyTWPM1BQkOb5DlcyWRBy6/g7lh?= =?iso-8859-2?Q?x0gycvddHwhxW3gTgeNjSys730QPFCHtoOmM35WmQwR782V5bTxftvioFF?= =?iso-8859-2?Q?ilPzNXd78wrd1oQv6jojluPCfiamfmvWfUF1YblVHNlnSMGRkUYNuScu62?= =?iso-8859-2?Q?UuMRp+4FX84buZ3GSdTbfaF+4XBXnOS2KZF4qZ51b/GeWi6jWyZw5nBjKY?= =?iso-8859-2?Q?hnLkkFz5AuSl6D4Zn3XtxXYY/yJkXo5RKKm3y16NVPFg1HW80Tzos8ajMG?= =?iso-8859-2?Q?0vQANv8OMTa6iSHyugjWigoPfKrd3?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3061; 6:IXa6jJRsTZP6weDPnvjWJ9I4CDngxfxzFdzDjwTV28rhLlVdszZ9Dhh+d67C7Q/BknUVZoBmdnk2OrlEdgA95l6lfK1geGyRgbJsn4hEq7dY/ridypV17L6Q5wwPWcpGEgRqALmyEhcyMP78ysSX0hszzlmbU2IWcSSAcDrlj00uId1G6g7cc0KxByq5kYA5510gfzV70h3qQHHRJNo1zmavGu/YFt1rA5nmO551l3XWL6jn10x1QxFXuzWuYKrJi8fdvsc8EUp+pR1p/Fl/iMMBo6v71qc3sL5VAB6k3kg=; 5:ASiRl91Z0lB9tY8/uPUlBu19OXa4jU3gXock5kNJ6Jl10gx5j6tp3pfNkbJZdwUnmRYcoXvRPjlSvdXFQ4r3mL/wJ1BfM/PEhcZoTB776YobZkGm7Ara6EL9319fVQkqvKyAde0xHzMAozQ5nFVrfw==; 24:EjZnRwM1Ws5NaqpHaCRD+6pWH0Quw2RlqPeB8Ct16qz0jWqcf8KHqHFmBUlH+BnCmFi6xdBsTNZ4acNSNv3Z6bxJLTds6KB1gHgaa1IZDN4=; 7:XLaCbFe53qhOC+PfllNwoIsYrs1Q782GNQA6LBBLZZrwvPh3NYy3d1cgWs1j73EJBwtC9rc6B8ujX4oBbeZPvHjGnZGco4cSfnDWZVwCPrLEVVZblWDLgsyeyDrHsC4JWa/+wbLqXeFBjziTmWyxSSWKimpyYGfAJm2CSRqM0T+b9xcd2KV4IG4eccaQo09bjgjc3OFYusPCRJw8stbb2ojeqQkWkF74/VmPe2sYTpC0iRZvU+LLFknYl8qAe1tJWH4+sW2ifNEfvn5gIWR4W6vsaW+ccU4k0FIXEHEkQk3yuncDS/MzVWQ0KA2iAEH7 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2016 12:23:16.2660 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3061 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, 19 Sep 2016 12:23:19 -0000 ping W dniu 12.09.2016 o 12:59, Kamil Rytarowski pisze: > 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 >> >