From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0057.outbound.protection.outlook.com [104.47.41.57]) by dpdk.org (Postfix) with ESMTP id 6E6CA2A1A for ; Thu, 29 Sep 2016 16:22:40 +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=M8EvFiEr3AQ0hCU/VAEo9oDpIlKr5g7YVN8Cu1MDnmM=; b=c2Bk/1Ei+qJ7XoM3BkeSQN8ice28OLtDCKKq6O9bplNbRYL7YXO83isGpRvhra6CGX8f2COz3OdSwFdnBxXuzAcMgmi7nFc6rYJBs8OvwEwHQiFM+QX7u3Q3wSGpdzSx+YOGxMg4ZBCz6cymk+qUStNG67gPcYTm8mNfCEpaR84= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Maciej.Czekaj@cavium.com; Received: from [10.0.0.58] (31.172.191.173) by BN6PR07MB2884.namprd07.prod.outlook.com (10.173.28.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Thu, 29 Sep 2016 14:22:37 +0000 From: Maciej Czekaj To: Ferruh Yigit , Kamil Rytarowski , References: <1472230448-17490-1-git-send-email-krytarowski@caviumnetworks.com> <1472230448-17490-5-git-send-email-krytarowski@caviumnetworks.com> <531538a8-5a7b-b5ee-10b9-46e7bbb1acd0@intel.com> CC: , , , , Kamil Rytarowski Message-ID: <12dc65a8-9d59-6cdf-0ce4-4267833b96da@caviumnetworks.com> Date: Thu, 29 Sep 2016 16:22:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <531538a8-5a7b-b5ee-10b9-46e7bbb1acd0@intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM3PR06CA057.eurprd06.prod.outlook.com (10.141.192.175) To BN6PR07MB2884.namprd07.prod.outlook.com (10.173.28.142) X-MS-Office365-Filtering-Correlation-Id: d4b647ef-3423-4f3e-c859-08d3e87410fa X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2884; 2:wmQABMryYqViruwfr2lFJLMrYBmM2kokZRrUmQ7AiYhNjh6PyB16WaDt97HI+mQgdjdmE4pRhI7R5Qj6YVlLZp182cqbveOcq0cN0248IOhvZ7CrvaNd0otpX7KxBEc62VhDZxTqcVpzqo/8C83/JcqSTd22dnnuZmBqtBv+G3vMkK2W4T1ytB7P1Dkg7uST; 3:oWyUpsuly9g8kV1zP4dqvQRnC0+u3T42CG538tADw8gzdMZmuA5htOTxFVxeSnK5wer2w19/vs2HMeCRvIvjqMyan+4c3FrLXHedjuXciixkk4eKIDVt15tCvGh3BnRi; 25:3alYmPSFzfJQm0ysAN5WyYZjt9XAL4oY4jnYHU1B9YfGRwW++WUNmg1acPZg7gq8O854x0qej7f+1MJBhUzyhfjNMR8HcBpqXLL9EaZ3AV/t6k9Hhn8K541h3+cUxIeaphxdFZyPzJK6si2SNwepRU0aV/1zva90nmMDsE7iwbhp0j5gvJqhFuvrO7VNs9TKxUpC0ukw4P4rw0vYKu30H5452X1MdgeBUYuM+dqTcIfEuwYctKEC4Dyd9BHEkHAOKE2jfBLht2STbw0jIh5J9XnmimEX7ddIdVfP32PZXYmPblXQBygedM2v2F80d/o7UXZCdsv04d+7gLl/JMeeZX+7OGvi2iGgVqNxeAiRmMUIJh00jr81ruJzQYVnxMk06zTbghqzzNOZtzhb9YIc72lKNCy31KhYO6NicHNf314= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR07MB2884; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2884; 31:EaDh5V0rsIEGkoJt3SyCEkMK+Xxj5KL1DdQWUBzmh/cjvZ71swD80O73WIdogH6gRsQ37wkDWtT7JoUIbWZbkDOd65WTburGC/gCcyQLsob9HJlf6vZtEWIBqGs+OV41l4DkR7Wc7jaXTE4QKyMdjMebIa/pLIvt2+j7snwPcVfrYt+1UPzJGj+zd7ajyeCrSur14zrZrU9HlFuEx+0encDKaSNWNaLRJp5YInB+FA4=; 20:za8N7hDCLFCvKwKejqB0YjltPQd4aYD+BvEwX+54LQYIusm8D36wL/enkTrLKDp9FgKFx+vWu7lKNI1kjs6wTf3Tt1JnQh71Z4bnbCMnumbx1RDHXaLDanR1MQQavKpmQ+OEP4AxAkImSNWCVb1/P02kesa8dtt2CgAArvC0832BeAILgt10uZljsiN8Cm0M/rS9E/r4ZFUmfKjgEKdtKmpRPbQrILSpGca9kVW2NbtwVabj6Xwz9bd8yfNFwYv8qhJ/y/ODLFXD4U761MrxJ/FW7eNKELe56YH4LD2Lv9IJk9kM6IvaqzTmzDwDMqHCNrR1Ce0yHvNX2duRjJgGGmO+UTBWX3XMHKZogRp/Yu8L/D2ix5i+IuOzcYDkOdhPjLDme4918mJvDWldLlv+WqEhSFgNOQzZGAqGptqusVQoHG/6FOkwu5q5ZsIncS/BS/1AmUux93NG1tv4sxT/6RYBf8yOZ0A/YH2f53xUX0EPGX8MccdpmrT3F0Nj02asvKVJ+iJI3ok+NHPYEEX/sl+vlPc9XCUxIUQJ5r9ifgEhNWB40xFq7FBkCK+2LU6CUAW4DySFSPvcEMQ/GM0zbOTF+hMkd8W9CdpMhuZtUuw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN6PR07MB2884; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB2884; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2884; 4:8a6eACp46WIXhjK5jyJVOgNBIFVIUFKPH6HkkPuzIMWccUk83wi5yimEyOuNKBkMb/yEokC5iea2ivonQOlng9fRUy7V/Z4N3WjPhEUzDk2ZEBXu3RhbSIH3tQIzjJ5oHKgF9BSAJBVAuJEiOi8l4ZR3aoa3OFn4nuNJ0Jt59fTPUuVABQf3kn+EoYpuGFSI1gEbxOL6CoKRGwSmPua0in60eIr8m7UOicy6YbIhvObQzdguBrCdReSS2DhkrqK+JXanL06ysDS3Eq6H4bLdEQiqFc8iWQjawQY5YSlU4wiA5KLQm0G+hQb0IMfqKMRqGTr3vJVL6jIkZ66I3BGMHx709gATG1p328fW6l3IakET552o32IkPu0vbgCM/SsmHApg7zSi4pEE320aamudgw== X-Forefront-PRVS: 00808B16F3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(377454003)(24454002)(199003)(50466002)(105586002)(92566002)(81166006)(81156014)(6666003)(19580395003)(8676002)(2950100002)(31686004)(68736007)(33646002)(42882006)(2906002)(31696002)(19580405001)(6116002)(230700001)(23746002)(106356001)(4001430100002)(586003)(3846002)(54356999)(101416001)(50986999)(5001770100001)(4001350100001)(189998001)(64126003)(76176999)(97736004)(4326007)(83506001)(65826007)(42186005)(305945005)(5660300001)(7736002)(107886002)(7846002)(65806001)(47776003)(77096005)(65956001)(66066001)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB2884; H:[10.0.0.58]; 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: =?Windows-1252?Q?1; BN6PR07MB2884; 23:VO1nGr5vFYFiEKFbkRmetIJ+BBKvPHwb7A1AM?= =?Windows-1252?Q?0M36IZGZPz1jSorVbgcPzxe9UEVui6hu4n4eNKsI5ps5dG6Z+/y1SdpG?= =?Windows-1252?Q?kfuTqGHlqHC3wyOgBh9xKtVoe4zFCWh71/s0S0sCSEu4QlfkwSDnrEwy?= =?Windows-1252?Q?cEwnz4Y1WnCiXFnqpSsJYGVP7ucCL45RJ2fHfj8HQ8y7QC2uuAI0hh2S?= =?Windows-1252?Q?2IwwFA25j2up8EYAJPuMPZoS+N4b66CgHWpsoegyeURMJKllTx4832s1?= =?Windows-1252?Q?/Es9Iqi9XNiSuLhyc7XEQFzKzaMKX2gwqZUJNzZWe48SAQo08rYr8W5C?= =?Windows-1252?Q?qEwcFHDYLSELZO9IudC9/az5+1nWYahXnJGMdsKuCmckd42JvxY7zc5a?= =?Windows-1252?Q?UXulv83H7IL3PvFvNRZdky6x32d94TYjc2JM79CbQ6gETTMAM0zlAazD?= =?Windows-1252?Q?iE3jAcIRap1uzJBj5Lm1KQCzFRf3CUfBZGvuqiSYO65LBOPWOSREr+we?= =?Windows-1252?Q?y4FJb1HBEvg/RCxfpwDbawchQO30xcO3NKNDocgetfFahIMaToggzlzN?= =?Windows-1252?Q?soulEDadHxsJeUkvLvc6ibGJxAoxe+PHJ5xp/2mL0SHwd3EWBpJCa7fp?= =?Windows-1252?Q?ACfoVjwATBLKsev+W6CdbyL/KQq9TIqjmu85pn2Ad9EZmM+8iunC18qM?= =?Windows-1252?Q?k5TY0z6DLGDC7fWUjc3w76hN+polH9fj4cSiW79lAU+0OUhTjFd2rmMg?= =?Windows-1252?Q?3WtU9KT57ZeYpR5xfHD3koGGF7N1Uh1wSZVEbsZBEEE+g2GUZHiModfp?= =?Windows-1252?Q?cz+dCLAOHJldBgqW4RTN+39697EI4U39caspr3ZX/zV6VAsY7/bG7eLe?= =?Windows-1252?Q?A+N4fD67kj5D9Bgc+PkcmUy/XvNKEBAn7Y8sRx9NFhlB62T5c+gRpRFT?= =?Windows-1252?Q?pqob2LHiIj71C7qkSE14o3/3o9B5+BqIXX1MKTETPEr7awjacb2SFUuw?= =?Windows-1252?Q?iV6ykFaq6QKc3wStf6aq4QQwHGIcl5T4d1zBbX3yCBCjnJbWaTyBlUR0?= =?Windows-1252?Q?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zeta6wGjgmkegQIGHq9CZWHaznC0rEWGHpduY+6POc=; 7:B6Pu9nPZFDmGV/sHiKXqXMLPncxmjnFs7szGEP1Ma4WCvwP1EkB77+xE9wSd8iwpZdzDwY5Oi/qJEz9rzOVV7KL4QC2zC5x3/rwn9VFzvJrquP0274tT32G6IlVwwyNqdoCtZXXH5/pK9Xg7vvlOBS/QTpkEKCa/V65hAQhyNBGb9w4q+LQdtUNgEmLDV9N8q2F3KaxH8aoB5rL7X9+V984+OUHOJhmIVSFbyT75RoMPBOP3Jlh9lg2Bjf0hRU5SYWxWF076P8N3eC/laWRHiZUxjOzNLjc/fn0Pfhee+68saftMDA7/KHJY66tYFPGg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2016 14:22:37.6213 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2884 Subject: Re: [dpdk-dev] [PATCH 04/13] net/thunderx/base: add secondary queue set support 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: Thu, 29 Sep 2016 14:22:41 -0000 > On 8/26/2016 5:53 PM, Kamil Rytarowski wrote: >> From: Kamil Rytarowski >> >> Changes: >> - add new message sqs_alloc in mailbox >> - add a queue container to hold secondary qsets. >> - add nicvf_mbox_request_sqs >> - handle new mailbox messages for secondary queue set support >> - register secondary queue sets for furthe reuse >> - register the number secondary queue sets in MSG_QS_CFG >> >> Signed-off-by: Maciej Czekaj >> Signed-off-by: Kamil Rytarowski >> Signed-off-by: Zyta Szpak >> Signed-off-by: Slawomir Rosek >> Signed-off-by: Radoslaw Biernacki >> Signed-off-by: Jerin Jacob >> --- >> 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_struct.h | 5 +++++ >> 4 files changed, 58 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/net/thunderx/base/nicvf_hw_defs.h b/drivers/net/thunderx/base/nicvf_hw_defs.h >> index 2f2b225..3b947e0 100644 >> --- a/drivers/net/thunderx/base/nicvf_hw_defs.h >> +++ b/drivers/net/thunderx/base/nicvf_hw_defs.h >> @@ -207,6 +207,7 @@ >> #define NICVF_CQE_RX2_RBPTR_WORD (7) >> >> #define NICVF_STATIC_ASSERT(s) _Static_assert(s, #s) >> +#define assert_if_secondary(nic) assert((nic)->sqs_mode == 0) > > assert_if_not_secondary? > > Will be refactored to macro nic_is_primary in v2.