common/mlx5: use C11 atomics for netlink sequence
authorAlexander Kozyrev <akozyrev@nvidia.com>
Tue, 27 Oct 2020 15:28:22 +0000 (15:28 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:04 +0000 (23:35 +0100)
commit10a5fa20bbd3ad65849b268fafb7ef13c63b4ff1
tree7464c75bc9104fa9611ed1052a822745c51260b3
parente4a4d90cd1e2cd5e2bb84a74970935c8ff712340
common/mlx5: use C11 atomics for netlink sequence

The rte_atomic API is deprecated and needs to be replaced with
C11 atomic builtins. Use __atomic_add_fetch instead of
rte_atomic32_add_return to generate a Netlink sequence number.

Signed-off-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/linux/mlx5_nl.c