Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5554424imm; Tue, 12 Jun 2018 09:31:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKz+EpEV0DPD5r2FY2wjFr5+frHYZHMmW01s8GoiGq7WLInvqvXRFQ0BAZ4DGRH33bko2VX X-Received: by 2002:a62:de03:: with SMTP id h3-v6mr1168898pfg.46.1528821107019; Tue, 12 Jun 2018 09:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528821106; cv=none; d=google.com; s=arc-20160816; b=A5zXs2rFw/9n5HNBIvyTdHQXJpky4lMS7AdZGIDUPkD3hui+ZydmQcY97VtoO/tBKM SaG39I86Op+4q7KmJ4W8H22rdAoC+nomxV5u5BactpYgSFQ8lxaHWdjICUvWnqvG8rjD zisLMZaOVq+jhPAsI9vZe54xK+j8vkdn0LI9JCdFA0V8N523sh/0kcxjXbS5JgTkDkzE x03N+a4Fd74z/yPTIAW5hxwRUUUl0WWzCvtGj202zbd+IcfdiHWzH9Grb7s4bqSQsinl oQ4BGpuKvkOCg/AHx+fOqtKDfbTWkSdq4M2mPMIgSM88KGCq/pBELLT/WKG9s8TEbYXK hbWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=2Ah+3RbUsonBB7DKJ2Bf7JRdOx3/bQrJ0KM/r91b2Uo=; b=j+jIa2r2MC8UPDMn6uLfwHbmbklA+jCr1vnO/b4SISWuG8KuVUiWNvu3te14wKDJ3q ur4C6HdZLoUGK20Kbho4I+vPsfy+GUq6aGKhFPRZ3K+0kiUNzeC8ezx1f6dTCWG+PTmE yFzdQ2wPPudlggUTj9axWb7tVQok/3JB6isjBq79L+Mqo+75a81wbeA9wEOR5OAHagOv dnYbdGO42QvQGlqbWaZ6u8p7mbJ2zIVuiTnACDX1I5B2ZUC+VR6SryJpPHBUjONcTOPS IV8/WV3AMpN+DeOszzyPihRvIG/tmMItiJXcVlC/KvEDuaOa52QnEBc2e7RKqFj4rAof aOIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2-v6si390350pfh.327.2018.06.12.09.31.32; Tue, 12 Jun 2018 09:31:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934720AbeFLQab (ORCPT + 99 others); Tue, 12 Jun 2018 12:30:31 -0400 Received: from ale.deltatee.com ([207.54.116.67]:55104 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933751AbeFLQa3 (ORCPT ); Tue, 12 Jun 2018 12:30:29 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fSmBX-0000mI-FC; Tue, 12 Jun 2018 10:30:20 -0600 To: Jon Mason Cc: linux-kernel , linux-ntb , Dave Jiang , Allen Hubbe , Serge Semin , Shyam Sundar S K , Shuah Khan References: <20180609000819.13883-1-logang@deltatee.com> <20180609000819.13883-4-logang@deltatee.com> From: Logan Gunthorpe Message-ID: Date: Tue, 12 Jun 2018 10:30:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: shuah@kernel.org, Shyam-sundar.S-k@amd.com, fancer.lancer@gmail.com, allenbh@gmail.com, dave.jiang@intel.com, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, jdmason@kudzu.us X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH 3/8] NTB: Fix the default port and peer numbers for legacy 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/06/18 09:59 AM, Jon Mason wrote: >> Patches for ntb_pingpong and ntb_perf follow (which are broken >> otherwise) to support hardware that doesn't have port numbers. This is >> important not only to not break support with existing drivers but for >> the cross link topology which, due to its perfect symmetry, cannot >> assign unique port numbers to each side. > > This is a very long way of saying "no clients are checking the error > codes, so removing them". :) Well, clients not checking the error code made this harder to debug for sure, but removing the error code is a side effect and not what is happening here (in fact someone should probably still go back and add error checking because these functions can still return errors but that's not really something I have time to do). After the next couple patches, the clients will use this change to detect that there are no port numbers and handle things similarly to the way they did before they were broken by the multiport changes. > I think the history and references to follow-on patches are not > necessary in the commit message and belong more in a 0/X. This is the opposite of what I've ever heard before. Having a commit message that explains what led up to this commit is a good thing and allows people debugging in the future to better understand the decisions made. People debugging commits will never find the 0/X cover letter which is just intended to introduce the series to reviewers and describe changes if the series is posted multiple times. > This is more of a feature than a bug fix. Can you break this (and the > pingpong and perf changes caused by this) off into a separate series, > as I'll want to apply this to the ntb-next and not bugfixes branch? No this is not a feature request. This is fixing a regression that broke previously working code in the only sensible way I can come up with. If you have a better way to fix this, I'd be glad to hear it. But this should *not* be treated as a feature request. Logan