From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40050.outbound.protection.outlook.com [40.107.4.50]) by dpdk.org (Postfix) with ESMTP id E1CB91B233 for ; Fri, 6 Oct 2017 05:51:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zIn3esRRLMUiD1hjL8gi6pfKWWsVrIuBUtVFo4OP3SQ=; b=ICHECvW5Ra+a2itEAEtipmVG5S3ZdrKMrCVa7AQ+SbyvGYjUwW5tM80Dxiywjt455ANppCJBAA+pVTqXwXJbUNgptCvWECrJy9+xrepWD7/iTzPzQl7Ka0iptPhl82STIvS0+2VG4Sp2m7x/4Q0n+87uOIynYITMOvvNq9M+s7k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from yongseok-MBP.local (73.222.116.174) by DB6PR0501MB2038.eurprd05.prod.outlook.com (2603:10a6:4:6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 6 Oct 2017 03:51:33 +0000 Date: Thu, 5 Oct 2017 20:51:20 -0700 From: Yongseok Koh To: Nelio Laranjeiro Cc: dev@dpdk.org, adrien.mazarguil@6wind.com, ferruh.yigit@intel.com Message-ID: <20171006035119.GC19330@yongseok-MBP.local> References: <02443b4938aa8ffeada37efca7c25535a44ce8e0.1507207731.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <02443b4938aa8ffeada37efca7c25535a44ce8e0.1507207731.git.nelio.laranjeiro@6wind.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [73.222.116.174] X-ClientProxiedBy: MWHPR2001CA0019.namprd20.prod.outlook.com (2603:10b6:301:15::29) To DB6PR0501MB2038.eurprd05.prod.outlook.com (2603:10a6:4:6::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1db174d7-9c16-4a72-a5d7-08d50c6d8a00 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DB6PR0501MB2038; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2038; 3:2WGNINBkGy3dOBppViAukTu4rx0QWQeBKYajhl1i6wYL/gv+rFELcWNDewbOL7MsNTi42gwdhbM+FVX8S+YixpSk696Q6qcywc8PHf4KJWV6+1h6xoJ6TlvN0V8fqHkg+UH/Ut2r+TUzlCpmdSscRtfsjr8UXOCsbttXbEWlGM/3tMLv2dlWbJQwehs1ET7OZwIZyw4VqQpNgErQmsn7dDPZ4akIqWcv2j+wwO/GWqayPONHW6yfknXan9MR6PVk; 25:GT/dUk5hnJwze8Hj0cWNHcBf9r9VMC7lYxn8WL0D7IT5EIm4oOSv+/e+PNT7beFwQ7XGi/j6Vlmwhqykh5AYTUSIxV9iYSbK22IoDNABwO5RNKgjKlq/xi/DxRwllm1he1a82aKqGLBdK2bYyGkUJFfLHpg2gnMrPr7IpoyGPdQLlOnsT3fD8fLrniYwRUwDq54pfh9Jw/0P8+GbvjEbR1wg0d/nUaww5zsImeBBaqHjmPgs+GAbB/GnWVi3AYtXNEymvjuD6xrOJ6kyCfvrxe7cH0k5umLbkwjAbzsXIz6vBygJcWoKVTOIfS6IE3CqU5M5IARYrM+nuOv2O567bg==; 31:JG3sk79lqgctkeZN1QcpwkwZW6YSDtBPOkrKYW73gFA0h3zxtIVARLQBxbWF+XvYq4Akjepypt4KmBwv+Dhl42HXm19L3dw2C39IdA8xl6iAYnqNcRo4Jg6DnEG2Ahwa9q8YCtN5x5yquoBG5pYAIKE9K2L56oaMTRAXEyMbzMMXoUpJDKE2bjQhSzaWQ9d8gAIR9eE0v8NRE630+no0dzLVWdqSiYtGTJ+eUHCiUkI= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2038: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2038; 20:Xjk/LZdSFx5RKahDfa/t5t0QOYctA+mOEDm2EP14N0lMbYVTFzureyewob7padeDcv71KufOkjbtEO//h7yuDBMZXJyY8BFwfZZAwjIVrCEBDq7lz+Ka9pLee7xp5041vGj1EWyJBp65ENBsS0VdLzUvbcz/CmCxLC5y6y3+EB7LK3vgCKEwL6OElgXlxtkeWIq1KtyaRydKwMWhZFbZby/CiM6SAJBQGDaqOf3oGzyYsgaNaDWbBeGNaFEcHR21MgbvuA6v6vFZIIMas+lUCPut3xbnq7nNPYjUfL8hoff1mffzVRB6fZ9wcRTdLl5PDmMcXVKJAIRXUu3pJBLe65M066IeEaXG3TIMYbcnC/FJph3XQtzTDhmHQkACEruslTwhIVh0nqIDveG2AbC7Eb23MykLH/vkN9gMvzVwv1hida6Cg2SZfbnvQeIKwLU1HA+0wIcYkBTVrGcAoCLug/4cV8TX9lwyIbasW0ikqcH7CYYK9bDt82RhgDKSTPef; 4:IKNNKv0yjmhDQ/3Vi5+WSL3uVRNYQa2VpbpSi2YykK92AmVkkMPolvl0OOuyjQJqR8O++WFcMQ3WBvre5eTLH4vh63R9BKHC9OFD/MUcyNJhSplnzTtGHHRt/MxXcktvSg/RYiiDeeVdqJ7uRyUSi81d2NgKKCIPtkBLzaC1XkOeC7KleeNw534G5eJxgtv98ITXtDzZRRR65s3poHLmT7dObtKcACAC74Us4gzVXVo9wUtI++nMZRHBTwRZXNLb X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0501MB2038; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0501MB2038; X-Forefront-PRVS: 0452022BE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(189002)(199003)(24454002)(5660300001)(106356001)(105586002)(83506001)(1076002)(50466002)(23756003)(4326008)(316002)(33656002)(8936002)(3846002)(53936002)(189998001)(58126008)(6116002)(86362001)(6246003)(55016002)(9686003)(478600001)(98436002)(47776003)(6506006)(16526018)(6916009)(81166006)(76176999)(2870700001)(2906002)(81156014)(54356999)(25786009)(101416001)(305945005)(7736002)(50986999)(68736007)(66066001)(2950100002)(229853002)(6666003)(97736004)(8676002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2038; H:yongseok-MBP.local; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; DB6PR0501MB2038; 23:xCR5UlqUQPuuwvJQaHK9aaD8t0ziQ1f10wMOE?= =?iso-8859-1?Q?XJ9qNg4zNfxMYrv9/fa7/I9JxNp/Cu7aanJrc7srsO692WgUYWZuGBJE2q?= =?iso-8859-1?Q?HSUKVClXJmwew9e/Q4aUTFp9Nid0fZk4CD7v7dn/B/1pOy+lwmA27YfBag?= =?iso-8859-1?Q?SQe61s2NkFIHi2bpLr+uj2vP98l8vq25SY732v6kpQzpbsMHu0afI4iwci?= =?iso-8859-1?Q?HM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Uc2jtmyRPMOI1M47BAd7YRAhPZrWo2A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2017 03:51:33.8121 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2038 Subject: Re: [dpdk-dev] [PATCH v2 12/30] net/mlx5: add reference counter on DPDK Tx queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 03:51:37 -0000 On Thu, Oct 05, 2017 at 02:49:44PM +0200, Nelio Laranjeiro wrote: > Use the same design for DPDK queue as for Verbs queue for symmetry, this > also helps in fixing some issues like the DPDK release queue API which is > not expected to fail. With such design, the queue is released when the > reference counters reaches 0. > > Signed-off-by: Nelio Laranjeiro > --- Acked-by: Yongseok Koh   Thanks