Thread (14 messages) 14 messages, 3 authors, 2026-01-26

Re: [PATCH rdma-next v2 02/11] IB/core: Introduce FRMR pools

From: Michael Gur <hidden>
Date: 2026-01-26 22:55:14
Also in: linux-rdma, lkml

On 1/20/2026 6:44 PM, Jason Gunthorpe wrote:
On Mon, Dec 22, 2025 at 02:40:37PM +0200, Edward Srouji wrote:
quoted
+static int compare_keys(struct ib_frmr_key *key1, struct ib_frmr_key *key2)
+{
This stuff should be using cmp_int().
quoted
+static struct ib_frmr_pool *ib_frmr_pool_find(struct ib_frmr_pools *pools,
+                                           struct ib_frmr_key *key)
+{

Use the rb_find() helper

+static struct ib_frmr_pool *create_frmr_pool(struct ib_device *device,
+                                          struct ib_frmr_key *key)
+{
I think this is rb_find_add() ?
Ack, thanks.

Moved all comparisons except dma_blocks to use cmp_int().
Moved the 'find' and 'create' paths to use the rb tree helpers.
While at it, changed compare_keys() to be inline.

Will send these with V3.

Michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help