Thread (8 messages) 8 messages, 4 authors, 5d ago

Re: [PATCH net 2/2] net/mlx5: HWS, fix modify header pool creation race

flat view

From: Alexandre Cassen <hidden>
Date: 2026-10-11 17:35:16
Also in: linux-rdma

Thanks for the review Moshe,


On 10/11/26 09:57, Moshe Shemesh wrote:
Please keep the lookup out of the lock and re-check under it only on a
miss, roughly:
Agreed, your approach is best, I will update and resend a v2 around it.

I was also considering a lockless variant where xa_alloc() picks the index, but 2 callers racing on a new pattern then both create a pool... the spare pool still allocates a full bulk of 64k entries in the host and device memory for a single rule. Your suggestion is better here...

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