mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Talpey <tom@talpey.com>
To: Long Li <longli@microsoft.com>,
	Bernard Metzler <BMT@zurich.ibm.com>,
	KY Srinivasan <kys@microsoft.com>,
	Haiyang Zhang <haiyangz@microsoft.com>,
	Stephen Hemminger <sthemmin@microsoft.com>,
	Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>,
	"edumazet@google.com" <edumazet@google.com>,
	"shiraz.saleem@intel.com" <shiraz.saleem@intel.com>,
	Ajay Sharma <sharmaajay@microsoft.com>
Cc: "linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
Subject: Re: [Patch v8 12/12] RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter
Date: Fri, 21 Oct 2022 10:33:44 -0400	[thread overview]
Message-ID: <9af99f89-8f1d-b83f-6e77-4e411223f412@talpey.com> (raw)
In-Reply-To: <PH7PR21MB3263D4CFF3B0AAB0C4FAE5D5CE2A9@PH7PR21MB3263.namprd21.prod.outlook.com>

On 10/20/2022 4:42 PM, Long Li wrote:
>> [Bernard wrote...]

>>> +	props->max_qp_wr = MAX_SEND_BUFFERS_PER_QUEUE;
>>> +
>>> +	/*
>>> +	 * max_cqe could be potentially much bigger.
>>> +	 * As this version of driver only support RAW QP, set it to the same
>>> +	 * value as max_qp_wr
>>> +	 */
>>> +	props->max_cqe = MAX_SEND_BUFFERS_PER_QUEUE;
>>> +
>>> +	props->max_mr_size = MANA_IB_MAX_MR_SIZE;
>>> +	props->max_mr = INT_MAX;
>>
>> How the 24 bit wide MR keys can handle INT_MAX unique
>> MR's?
> 
> Not sure if I understand this correctly, lkey and rkey are u32 in ib_mr.

The upper 8 bits of an ib_mr remote token are reserved for use as a
rotating key, this allows a consumer to more safely reuse an ib_mr
without having to overallocate large region pools.

Tom.

  reply	other threads:[~2022-10-21 14:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19 22:24 [Patch v8 00/12] Introduce Microsoft Azure Network Adapter (MANA) RDMA driver longli
2022-10-19 22:24 ` [Patch v8 01/12] net: mana: Add support for auxiliary device longli
2022-10-19 22:24 ` [Patch v8 02/12] net: mana: Record the physical address for doorbell page region longli
2022-10-19 22:24 ` [Patch v8 03/12] net: mana: Handle vport sharing between devices longli
2022-10-19 22:24 ` [Patch v8 04/12] net: mana: Set the DMA device max segment size longli
2022-10-19 22:24 ` [Patch v8 05/12] net: mana: Export Work Queue functions for use by RDMA driver longli
2022-10-19 22:24 ` [Patch v8 06/12] net: mana: Record port number in netdev longli
2022-10-19 22:24 ` [Patch v8 07/12] net: mana: Move header files to a common location longli
2022-10-19 22:24 ` [Patch v8 08/12] net: mana: Define max values for SGL entries longli
2022-10-19 22:24 ` [Patch v8 09/12] net: mana: Define and process GDMA response code GDMA_STATUS_MORE_ENTRIES longli
2022-10-19 22:24 ` [Patch v8 10/12] net: mana: Define data structures for allocating doorbell page from GDMA longli
2022-10-19 22:24 ` [Patch v8 11/12] net: mana: Define data structures for protection domain and memory registration longli
2022-10-19 22:24 ` [Patch v8 12/12] RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter longli
2022-10-20 10:56   ` Bernard Metzler
2022-10-20 20:42     ` Long Li
2022-10-21 14:33       ` Tom Talpey [this message]
2022-10-21 14:36         ` Bernard Metzler
2022-10-21 22:55           ` Long Li
2022-10-22  0:34             ` Tom Talpey
2022-10-22  0:38               ` Long Li
2022-10-21 15:54       ` Bernard Metzler
2022-10-21 23:01         ` Long Li
2022-10-21 23:32           ` Long Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9af99f89-8f1d-b83f-6e77-4e411223f412@talpey.com \
    --to=tom@talpey.com \
    --cc=BMT@zurich.ibm.com \
    --cc=davem@davemloft.net \
    --cc=decui@microsoft.com \
    --cc=edumazet@google.com \
    --cc=haiyangz@microsoft.com \
    --cc=jgg@ziepe.ca \
    --cc=kuba@kernel.org \
    --cc=kys@microsoft.com \
    --cc=leon@kernel.org \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=longli@microsoft.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sharmaajay@microsoft.com \
    --cc=shiraz.saleem@intel.com \
    --cc=sthemmin@microsoft.com \
    --cc=wei.liu@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®