From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E4F1C433B4 for ; Thu, 20 May 2021 08:51:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FCEA61244 for ; Thu, 20 May 2021 08:51:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231162AbhETIwq (ORCPT ); Thu, 20 May 2021 04:52:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:44478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhETIwq (ORCPT ); Thu, 20 May 2021 04:52:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F44560234; Thu, 20 May 2021 08:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621500685; bh=bW+zGy1sqx3b3rqCQa231Lwwmjl64RwLBwhcCMzDIrY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n/BAJFQ3ye6bcD1+G50KQcvGRQ2kZ/hbzLB5YuaBKKoA/r1h5GXyqS9qKOYDSYQPS X30agMTA3zlFrueIGtIDTVS5BOSlgVZvpunSBgszbz3HQWGikZm4Cah4edT/CW19PZ zaWoeGmR/lAYRk6L2B7gmpQUytgI6NhHw/CUkJRAzfmyaN0wxwYgxSKHKOZfjJzabu i/oA5uLlVdOWe0Zz7AyMfWc+1X57TanfH6ObjdgzODBkTVC2h10XecAAxG3Ejz8P9A +wF81ZG9S9Zg5xVdSLD+3hmwQ0BhVmTNl/XlTly9j8ycGlqwyIdwzgIn7YOEpix0yn aWvmPvAIWKF1w== Date: Thu, 20 May 2021 11:51:21 +0300 From: Leon Romanovsky To: Weihang Li Cc: dledford@redhat.com, jgg@nvidia.com, linux-rdma@vger.kernel.org, linuxarm@huawei.com, Xi Wang Subject: Re: [PATCH v2 for-next] RDMA/hns: Refactor extend link table allocation Message-ID: References: <1621481751-27375-1-git-send-email-liweihang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1621481751-27375-1-git-send-email-liweihang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Thu, May 20, 2021 at 11:35:51AM +0800, Weihang Li wrote: > From: Xi Wang > > The timeout link table works in HIP08 ES version and the hns driver only > support the CS version for HIP08, so delete the related code. Then simplify > the buffer allocation for link table to make the code more readable. > > Signed-off-by: Xi Wang > Signed-off-by: Weihang Li > --- > Changes since v1: > * Merge the first patch in the series into the second one. > * Link: https://patchwork.kernel.org/project/linux-rdma/cover/1620807370-9409-1-git-send-email-liweihang@huawei.com/ > > drivers/infiniband/hw/hns/hns_roce_device.h | 3 +- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 255 ++++++++++++---------------- > drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 72 +++----- > 3 files changed, 124 insertions(+), 206 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky