From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932411AbdJXQfq (ORCPT ); Tue, 24 Oct 2017 12:35:46 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:33443 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbdJXQfo (ORCPT ); Tue, 24 Oct 2017 12:35:44 -0400 Subject: Re: [PATCH] rds: Fix inaccurate accounting of unsignaled wrs To: =?UTF-8?Q?H=c3=a5kon_Bugge?= Cc: "David S . Miller" , netdev@vger.kernel.org, OFED mailing list , rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org References: <20171024141628.14637-1-Haakon.Bugge@oracle.com> <663DF75A-36AC-4589-83B2-D664672CF374@oracle.com> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: <770ae898-346c-5932-04cb-68abd73b2625@oracle.com> Date: Tue, 24 Oct 2017 09:36:22 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <663DF75A-36AC-4589-83B2-D664672CF374@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/24/2017 9:15 AM, Håkon Bugge wrote: > >> On 24 Oct 2017, at 18:05, Santosh Shilimkar >> > >> wrote: >> [...] >> Instead of partially doing changes inside/outside helper, >> can also add inline helper for solicited state like >> rds_ib_set_wr_solicited_state() and use that along >> with this change. > > Why? There is no book-keeping associated with setting send-solicited. > Its set on the last fragment of a message and on the last fragment sent > before throttling due to flow-control. > > Creating a function to perform: > >         FOO |= BAR; > > seems like an overkill to me. > Its just inline helper and keep code consistent for flag manipulation. Compiler output will be like "FOO =| BAR;" :-) > That being said, in my opinion the fragments of a (large) send should be > scattered with send-solicited. But that is another commit. But with such > a commit, I agree with you, a helper function is required. > We already talked about it so lets leave it there. Regards, Santosh