Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752736AbdLEQ5x (ORCPT ); Tue, 5 Dec 2017 11:57:53 -0500 Received: from ale.deltatee.com ([207.54.116.67]:51416 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752260AbdLEQ5v (ORCPT ); Tue, 5 Dec 2017 11:57:51 -0500 To: Serge Semin , Allen Hubbe Cc: jdmason@kudzu.us, dave.jiang@intel.com, Shyam-sundar.S-k@amd.com, Xiangliang.Yu@amd.com, gary.hook@amd.com, Sergey.Semin@t-platforms.ru, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org References: <20171203191736.3399-1-fancer.lancer@gmail.com> <000001d36d3b$e9f211d0$bdd63570$@dell.com> <20171205155454.GA1701@mobilestation> From: Logan Gunthorpe Message-ID: Date: Tue, 5 Dec 2017 09:57:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171205155454.GA1701@mobilestation> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, Sergey.Semin@t-platforms.ru, gary.hook@amd.com, Xiangliang.Yu@amd.com, Shyam-sundar.S-k@amd.com, dave.jiang@intel.com, jdmason@kudzu.us, Allen.Hubbe@dell.com, fancer.lancer@gmail.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH v2 00/15] NTB: Add full multi-port API support to the test drivers X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1824 Lines: 35 On 05/12/17 08:54 AM, Serge Semin wrote: > Yeah, I know that. As I already said, it isn't usual of my patches > being so complicated. The reason why I made so many small renamings > was the code refactoring. I tried to set all the test drivers code > up to the same naming convention, so it would be easier for a code > reader to study it. Definitely, such the alterations should have > been done within a separate patch. But I started refactoring the > code and changing the logic for multi-portness all together, so it > would be too painful to unpick one from another after the work was > done. It especially concerned the ntb_tool and ntb_perf drivers. Next > time the procedures will be separately. Sorry for inconvenience and > thanks for understanding. It's really not that hard, using git, to refactor a patch. If it's such a mess that you can't refactor it then it's probably a good indication that said patch should not be merged. The vast majority of other maintainers in the kernel would never accept such a large convoluted patch as it's too difficult to determine if something unintended changed and it makes debugging and bisecting (once it's merged) more difficult. Not to mention the fact that few developers are willing to put in the time to untangle it enough to properly review. > Oops. We discussed it in the IRC. We agreed to add commentaries > around the types definition, so a reader would better understand their > purpose. I just forgot to move the change from my repo to the fork of > Jon's one. I'll do it and resend the patch. I agree with Allen. The unions are completely unnecessary. If there was a space constraint then they could be justified but we really don't have that here. In my opinion, you should just drop them -- a comment doesn't really improve things much. Logan