Thread (23 messages) 23 messages, 4 authors, 2022-10-22

Re: [Patch v8 12/12] RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter

From: Tom Talpey <tom@talpey.com>
Date: 2022-10-21 14:33:50
Also in: linux-hyperv, linux-rdma, lkml

On 10/20/2022 4:42 PM, Long Li wrote:
quoted
[Bernard wrote...]
quoted
quoted
+	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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help