net/mlx5: make shared counters thread safe
authorSuanming Mou <suanmingm@nvidia.com>
Tue, 20 Oct 2020 03:02:26 +0000 (11:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
commite7138997e07da00e7876173df79d2474f0d7a17b
treec3ad3cccebf0b5cb991caf5c592ae6debaf92aca
parent0796c7b1dedfa0ea1680584548a2c243aa9f9020
net/mlx5: make shared counters thread safe

The shared counters save the counter index to three level table. As
three level table supports multiple-thread operations now, the shared
counters can take advantage of the table to support multiple-thread.

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