Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp60206imi; Wed, 20 Jul 2022 17:07:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sDHQ9yZrm/Fwu/Jb98f4QtB3FjBKihGLIYVfFvxYloYCJGw5ul+vWj3GD3gJkOuBZY0tHd X-Received: by 2002:a17:907:7d8e:b0:72b:9d09:5c48 with SMTP id oz14-20020a1709077d8e00b0072b9d095c48mr37717633ejc.38.1658362020890; Wed, 20 Jul 2022 17:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658362020; cv=none; d=google.com; s=arc-20160816; b=A3wluqMod/opJvUJTqOAGK9rIVnHDF3wvkkdJ0o4o8xR80vlTSZam11IcaFaNoWgOr 4gRnFJqk7E2hdRrnCC9VTRKd1NpUsrt6OUNNu7VshLI95m0YYqyBtl10av0yy7+d5Sir Qdt3JgmpmyW+h4e6HoKeh9XuPqvUnuP4t70HjOGc2IV1MkYLJ3vziQgv6KGlzMYqs3hu bqkHQveoiEfJ/6V4kPQCaqmkTn8Uvs/XQH+F7DfOezGeiqFdY5Yf2COYpqEBV+mt42YI WmVIKbkVNmW3kTHNFjQy74JMf5Js2xDkHepH1RgRoBgb6Q4Dz27HwGH/mOGma22Yie8m HISQ== 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=5RMWa0xSoaL7B2aaDLU4AquBAwXY5T4zVNdrwgZSQKQ=; b=LOvkRK18ogeViQYE/fR7G24YLMad4WDp/1KU/hnLhu3n/wEzDMqaAsWLYXZxA/5Bnl TgvaE9FQt2kgQLtaau6YZ671TQpI/xpZMNZznMtp0lz/41cpDJAJ1fdMwvPydxa4HE9t 6td5Q7q9h3abqM9RMgMnCGSXWzMgZf+4dG3H5TbSDeJq/dMTOwIb1qIFndIZYQBW2P49 JloiuYtgE9Jf4ZMKF4AB/9IrLosVQEjYtCABTUtntNGUw6BH2JrpCyAu5cRnR2PYWERS ldwplp0FJFc40uQ1cKKxn6xzSu4/BouQr7SjA08bXTev+URsqH1YvxJJZZ1ZVdNfxEOZ /fxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Ot5athrA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a0564021e8d00b00436f2e1a564si546811edf.476.2022.07.20.17.06.36; Wed, 20 Jul 2022 17:07:00 -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=@ziepe.ca header.s=google header.b=Ot5athrA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbiGTXnl (ORCPT + 99 others); Wed, 20 Jul 2022 19:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbiGTXnj (ORCPT ); Wed, 20 Jul 2022 19:43:39 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDBD06B247 for ; Wed, 20 Jul 2022 16:43:38 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id i7so4006859qvr.8 for ; Wed, 20 Jul 2022 16:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5RMWa0xSoaL7B2aaDLU4AquBAwXY5T4zVNdrwgZSQKQ=; b=Ot5athrApcpdcvUNzLe9OfexoqvO26PdLjB8LFKfQpvSTzGIzRKJM2L4RH1uc+ME0M 92kFtslZKestwARBw+eBvp1K34x9uqwSiUROG6sU1q1HrxlTRwpPPsuGsd0iU765aEvG Rn34ICnJN/3L/k6GhkTtDQcpLolrJlTbUm9eZdboYQHiyXyGyplYgOi4dIQJunsb5jHA nqOwyG//HVJCxRZ0UxvzSRaP8Uty4I65JmvxrKYAIDOH9TX7L1WOSA3r1mklTG+o7pNr 8fjH0DH3t3EBQukMMX2JNR5N0Q/Nw/3Y7teIU4a/lor6SePtXtaFAdvc8xcPMpZO+nax vlhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5RMWa0xSoaL7B2aaDLU4AquBAwXY5T4zVNdrwgZSQKQ=; b=ARfORt3YbaxuxBNkCrRvZTtDZVdFMNJ1ukWfAciu2DBUH1OjptmqTraEw+JMDtq+Sq OuKkrCIC1z96kXl7tk0JtJ9aIVXxtK7voqDsxt6xDMCxNGL30WfUxjEnU57MMS76RROk Z6St4y6fYdaEg0dY7g3dbV52n55kMVKj8s6bJK1epXgLGXU/UnbHICosGV60K25SLfnu XiRWhXtHKLZoLogvPGFCAeWfNi+bf1qaaxe/ecffnUC4EMGH87yy4Hp6ZIoww13E7H2t lWfPKgQ0+IWMBTxs+PIE4XH6jfEnk//7rEVvcg/imU5hvJUwGUhCyM/fe/AcYncCc5oA DE4A== X-Gm-Message-State: AJIora8QFVsMOVCLJCOHUtJ2JOkQQtIPHbyoCgnOcu3nh/kxwHkWj/pP 46SPoaOrvDxNTUyc+dDs2q+1Aw== X-Received: by 2002:a05:6214:27ef:b0:474:9aa:9e4d with SMTP id jt15-20020a05621427ef00b0047409aa9e4dmr2893624qvb.82.1658360618033; Wed, 20 Jul 2022 16:43:38 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id bk4-20020a05620a1a0400b006b5fe4c333fsm364916qkb.85.2022.07.20.16.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 16:43:37 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1oEJLs-001hkt-NS; Wed, 20 Jul 2022 20:43:36 -0300 Date: Wed, 20 Jul 2022 20:43:36 -0300 From: Jason Gunthorpe To: Dexuan Cui Cc: Long Li , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , "edumazet@google.com" , "shiraz.saleem@intel.com" , Ajay Sharma , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" Subject: Re: [Patch v4 06/12] net: mana: Define data structures for protection domain and memory registration Message-ID: <20220720234336.GR5049@ziepe.ca> References: <1655345240-26411-1-git-send-email-longli@linuxonhyperv.com> <1655345240-26411-7-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, Jul 11, 2022 at 01:29:08AM +0000, Dexuan Cui wrote: > > From: longli@linuxonhyperv.com > > Sent: Wednesday, June 15, 2022 7:07 PM > > > > The MANA hardware support protection domain and memory registration for > s/support/supports > > > diff --git a/drivers/net/ethernet/microsoft/mana/gdma.h > > b/drivers/net/ethernet/microsoft/mana/gdma.h > > index f945755760dc..b1bec8ab5695 100644 > > --- a/drivers/net/ethernet/microsoft/mana/gdma.h > > +++ b/drivers/net/ethernet/microsoft/mana/gdma.h > > @@ -27,6 +27,10 @@ enum gdma_request_type { > > GDMA_CREATE_DMA_REGION = 25, > > GDMA_DMA_REGION_ADD_PAGES = 26, > > GDMA_DESTROY_DMA_REGION = 27, > > + GDMA_CREATE_PD = 29, > > + GDMA_DESTROY_PD = 30, > > + GDMA_CREATE_MR = 31, > > + GDMA_DESTROY_MR = 32, > These are not used in this patch. They're used in the 12th > patch for the first time. Can we move these to that patch? This looks like RDMA code anyhow, why is it under net/ethernet? Jason