Re: [PATCH RFC v2 07/10] IB/mlx5: Keep mlx5 MRs in a radix tree under device

2013-11-03 Thread Or Gerlitz
On 03/11/2013 14:16, Sagi Grimberg wrote: mlx5 currently doesn't support 32-bit platforms, I'll take your suggestion. I think 32-bit x86 is supported, but anyway, as we're picking your suggestion, should be fine. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the

Re: [PATCH RFC v2 07/10] IB/mlx5: Keep mlx5 MRs in a radix tree under device

2013-11-01 Thread Bart Van Assche
On 31/10/2013 5:24, Sagi Grimberg wrote: + /* connect to MR tree */ + write_lock_irq(table-lock); + err = radix_tree_insert(table-tree, mr-key 0xff00, mr); + write_unlock_irq(table-lock); The conversion from MR key into radix tree index occurs three times so maybe

[PATCH RFC v2 07/10] IB/mlx5: Keep mlx5 MRs in a radix tree under device

2013-10-31 Thread Sagi Grimberg
This will be useful when processing signature errors on a specific key. The mlx5 driver will lookup the matching mlx5 memory region structure and mark it as dirty (contains signature errors). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/net/ethernet/mellanox/mlx5/core/main.c |