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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2322CC32793 for ; Wed, 24 Aug 2022 12:10:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237184AbiHXMKb (ORCPT ); Wed, 24 Aug 2022 08:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237225AbiHXMKZ (ORCPT ); Wed, 24 Aug 2022 08:10:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AFD43FA31 for ; Wed, 24 Aug 2022 05:10:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4DEA56197C for ; Wed, 24 Aug 2022 12:10:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F929C433C1; Wed, 24 Aug 2022 12:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661343022; bh=YIEzBLIYlowM68GfETpL/f856/t7HfF01Ow9dyavVwU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YH1nPDjg/GlPEq+4utV6iDBgyPKiwLGRAVc1LdPCBgB6PtQ9ROKT8Nc+XPqsyJmKj rO8zSni53Y/nxKUPSNXYY4xkTMHqYLWeVEyHIYbKM7CQLu6K/+x5wodB479NygTxxZ R4iGDTYF6p+ZFsN1Hj+jZaJlBohqcoMe+19GRjas+JiB9P9HyVKA4uieckY/TzIDye facZjUu7I5GImWJ+p43NJGlHf5hELuSYML3RvtskUFOD8axn1rdNK9b5VF2Ixh8Gfr D08AiWPOxG9qhVOIWJO4/gRA+9Mkcwwod4etJI1ZZ9kxosQ2GRdHXG7Zr4cheYOA6e oEn24l6n/mjLw== Date: Wed, 24 Aug 2022 15:10:18 +0300 From: Leon Romanovsky To: Cheng Xu Cc: jgg@ziepe.ca, linux-rdma@vger.kernel.org, KaiShen@linux.alibaba.com Subject: Re: [PATCH for-next 1/2] RDMA/erdma: Introduce internal post_send/post_recv for qp drain Message-ID: References: <20220824094251.23190-1-chengyou@linux.alibaba.com> <20220824094251.23190-2-chengyou@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220824094251.23190-2-chengyou@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Wed, Aug 24, 2022 at 05:42:50PM +0800, Cheng Xu wrote: > For erdma, hardware won't process newly posted send WRs or recv WRs > after QP state changed to error, and no flush cqes will generated > for them. So, internal post_send and post_recv functions are introduced > to prevent the new send WRs or recv WRs. > > Signed-off-by: Cheng Xu > --- > drivers/infiniband/hw/erdma/erdma_main.c | 4 +- > drivers/infiniband/hw/erdma/erdma_qp.c | 45 ++++++++++++++++++++--- > drivers/infiniband/hw/erdma/erdma_verbs.h | 17 +++++++-- > 3 files changed, 55 insertions(+), 11 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky