Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5415398rwr; Tue, 9 May 2023 00:46:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EWqOhQcYufMDp1LNn55K0hrlfwgzeb/UfNCZhnU24RQg1aq4kJEFePxiyKySBse1ZCST0 X-Received: by 2002:a05:6a00:180f:b0:645:d02d:9a83 with SMTP id y15-20020a056a00180f00b00645d02d9a83mr8865791pfa.17.1683618373647; Tue, 09 May 2023 00:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683618373; cv=none; d=google.com; s=arc-20160816; b=z7X/aiRwcRgRmQvuHi5J6LYyAWM44u7oDQ8kdePJqk9aivuYr305dfCM1aMtFtv0j8 lWKFg9yNI4JmwRhRK0WJ7xIEVvPmVEateyRKJIB1/oJFoYM9nOD2bqQczZ0r5twDaWY/ AGpcqbLg5d8eY3QjWsusF/LxztA/aZBpKi+zxy/7eM7BkDCLQHdaKd5zW5vrmt7vrczD kFMJACIMIQn7FyGYTkvL/1iTMZ0YXOy9JjeTzXAlKhx1nVeF0wu9MF4679lIMPDbbzmH hMl6TICXFcb4s4ubvH5Au0JH/c88d/FWausU73Y2KOU9ozfCZjk0GkJz5daGCBK5fNDf 4LJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=shQGrBFDLeoceEta8PqnIut/fvcO1WT6Dk2aT2RalD8=; b=wiFYmCcjMrrIr1ud34/8d8Q25GxnGAt3wldNnDACjIVOjKE/urWSAYFA2EyKcqwbxO MmbOzPemmchsJk86S0PlQZIwZj2O8+3j/7s1x3W3R/AiIpU20dW20ONxR1jV3mFKDX5T OG55RXu7H69l0u/TRcp8/k5ILO7qvfgInl6euZ6PQAbML7HDcWxwqNmwgYUiJHKRoyFT jBp628rB1XXw7mp2mkGIq8lRx254FJAUxd+pxFEyR1c+HzAP4XrgEPoPXsZBlUaI15IY bwOTOLJCX8anAmSQifxF22saLq/NEfr3q3uCj7Cuz61RSsfegXI0PSY28DOpy5iiCMKb Qg1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O0jAFc4A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020aa79846000000b0064355e25c7esi1859463pfq.188.2023.05.09.00.45.59; Tue, 09 May 2023 00:46:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O0jAFc4A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233750AbjEIHam (ORCPT + 99 others); Tue, 9 May 2023 03:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233108AbjEIHal (ORCPT ); Tue, 9 May 2023 03:30:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A339A7A9D; Tue, 9 May 2023 00:30:39 -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 39DE2643AB; Tue, 9 May 2023 07:30:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB0DDC433D2; Tue, 9 May 2023 07:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683617438; bh=8muEFwwV/fMT6/BkEavYZNU3BkDJkYBlCsjz3eXYwpk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O0jAFc4AjkqBgTofQ2McerbR+WAzpALl8ybRyuubnlmPPpxizbGh1MIKqRmtNRqq7 9ceWpHWPT+BGtOfeP0uCDs/bJUzeLwoGZEC/rtta1Q/lRecyT9hyxOJOkVdd7vSKV/ qL7w/sZSD1pO2q951gMCjSfSK/mgNGW0t0CwgfU3ytKMJHdTDqGA2Tfav44OIzhI22 Nch1sC3hWOP7wnnmYcPo28MrMjgipYq5nyXocaHnzTWrHyuh5DmV9apWnPLxG2s38n G/jftRhXkzunLll2ZowAs21Zd7ybw17SKst/TarQfbMnvBd3S0d+4GgiVo/6UbHl3d EgfzlGd8XlbLA== Date: Tue, 9 May 2023 10:30:34 +0300 From: Leon Romanovsky To: Haiyang Zhang Cc: Long Li , Jason Gunthorpe , Ajay Sharma , Dexuan Cui , KY Srinivasan , Wei Liu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "linux-rdma@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] RDMA/mana_ib: Use v2 version of cfg_rx_steer_req to enable RX coalescing Message-ID: <20230509073034.GA38143@unreal> References: <1683312708-24872-1-git-send-email-longli@linuxonhyperv.com> <20230507081053.GD525452@unreal> <20230508060938.GA6195@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2023 at 02:45:44PM +0000, Haiyang Zhang wrote: > > > > -----Original Message----- > > From: Leon Romanovsky > > Sent: Monday, May 8, 2023 2:10 AM > > To: Haiyang Zhang > > Cc: Long Li ; Jason Gunthorpe ; Ajay > > Sharma ; Dexuan Cui ; > > KY Srinivasan ; Wei Liu ; David S. > > Miller ; Eric Dumazet ; > > Jakub Kicinski ; Paolo Abeni ; linux- > > rdma@vger.kernel.org; linux-hyperv@vger.kernel.org; > > netdev@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH] RDMA/mana_ib: Use v2 version of cfg_rx_steer_req to > > enable RX coalescing > > > > On Sun, May 07, 2023 at 09:39:27PM +0000, Haiyang Zhang wrote: > > > > > > > > > > -----Original Message----- > > > > From: Leon Romanovsky > > > > Sent: Sunday, May 7, 2023 4:11 AM > > > > To: Long Li > > > > Cc: Jason Gunthorpe ; Ajay Sharma > > > > ; Dexuan Cui ; KY > > > > Srinivasan ; Haiyang Zhang > > ; > > > > Wei Liu ; David S. Miller ; Eric > > > > Dumazet ; Jakub Kicinski ; > > Paolo > > > > Abeni ; linux-rdma@vger.kernel.org; linux- > > > > hyperv@vger.kernel.org; netdev@vger.kernel.org; linux- > > > > kernel@vger.kernel.org > > > > Subject: Re: [PATCH] RDMA/mana_ib: Use v2 version of cfg_rx_steer_req > > to > > > > enable RX coalescing > > > > > > > > On Fri, May 05, 2023 at 11:51:48AM -0700, longli@linuxonhyperv.com > > > > wrote: > > > > > From: Long Li > > > > > > > > > > With RX coalescing, one CQE entry can be used to indicate multiple > > packets > > > > > on the receive queue. This saves processing time and PCI bandwidth over > > > > > the CQ. > > > > > > > > > > Signed-off-by: Long Li > > > > > --- > > > > > drivers/infiniband/hw/mana/qp.c | 5 ++++- > > > > > include/net/mana/mana.h | 17 +++++++++++++++++ > > > > > 2 files changed, 21 insertions(+), 1 deletion(-) > > > > > > > > Why didn't you change mana_cfg_vport_steering() too? > > > > > > The mana_cfg_vport_steering() is for mana_en (Enthernet) driver, not the > > > mana_ib driver. > > > > > > The changes for mana_en will be done in a separate patch together with > > > changes for mana_en RX code patch to support multiple packets / CQE. > > > > I'm aware of the difference between mana_en and mana_ib. > > > > The change you proposed doesn't depend on "support multiple packets / > > CQE." > > and works perfectly with one packet/CQE also, does it? > > No. > If we add the following setting to the mana_en / mana_cfg_vport_steering(), > the NIC may put multiple packets in one CQE, so we need to have the changes > for mana_en RX code path to support multiple packets / CQE. > + req->cqe_coalescing_enable = true; You can leave "cqe_coalescing_enable = false" for ETH and still reuse your new v2 struct. H> > So we plan to set this cqe_coalescing_enable, and the changes for mana_en > RX code path to support multiple packets / CQE in another patch. And how does it work with IB without changing anything except this proposed patch? Thanks > > Thanks, > - Haiyang >