net/mlx5: make three level table thread safe
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 20 Oct 2020 03:02:25 +0000 (11:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
commit0796c7b1dedfa0ea1680584548a2c243aa9f9020
tree8c2d5f8206412f09b22616a51a2581a6a8e2a015
parent3aa279157fa0f372b8005ce47e19e2045c8e98e7
net/mlx5: make three level table thread safe

This commit adds thread safety support in three level table using
spinlock and reference counter for each table entry.

An new mlx5_l3t_prepare_entry() function is added in order to support
multiple-thread operation.

Signed-off-by: Suanming Mou <suanmingm@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_utils.c
drivers/net/mlx5/mlx5_utils.h