From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755297AbcFQB3v (ORCPT ); Thu, 16 Jun 2016 21:29:51 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:54284 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754788AbcFQB3t (ORCPT ); Thu, 16 Jun 2016 21:29:49 -0400 Subject: Re: [PATCH v9 09/22] IB/hns: Add hca support To: , Lijun Ou References: <1464795484-77395-1-git-send-email-oulijun@huawei.com> <1464795484-77395-10-git-send-email-oulijun@huawei.com> <20160609071014.GR3663@leon.nu> CC: , , , , , , , , , , , , , , , , , From: "Wei Hu (Xavier)" Message-ID: <57635269.3030905@huawei.com> Date: Fri, 17 Jun 2016 09:29:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160609071014.GR3663@leon.nu> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.57.115.113] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.57635277.004B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 21fa75d2fd3344cf3b85390f69c9b961 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/6/9 15:10, Leon Romanovsky wrote: > On Wed, Jun 01, 2016 at 11:37:51PM +0800, Lijun Ou wrote: >> This patch mainly setup hca for RoCE. It will do a series of >> initial works, as follows: >> 1. init uar table, allocate uar resource >> 2. init pd table >> 3. init cq table >> 4. init mr table >> 5. init qp table >> >> Signed-off-by: Wei Hu >> Signed-off-by: Nenglong Zhao >> Signed-off-by: Lijun Ou >> --- > <...> > >> + >> + ret = hns_roce_bitmap_init(&cq_table->bitmap, hr_dev->caps.num_cqs, >> + hr_dev->caps.num_cqs - 1, >> + hr_dev->caps.reserved_cqs, 0); >> + if (ret) >> + return ret; >> + >> + return 0; > You can return directly ret, instead last 4 lines. Hi, leon We have fixed it. And Oulijun have sent PATCH V10. Thanks Regards Wei Hu > >> +} >> +