net/mlx5: relax atomic refcnt for multi-packet Rx buffer
authorPhil Yang <phil.yang@arm.com>
Thu, 3 Sep 2020 02:53:10 +0000 (10:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:15 +0000 (19:19 +0200)
commitae3255bfd934be8f69ad4c960c755cddb817a12b
treeb3c9133b4d12e2f65dec4a83a28d32c99abd2c78
parentb5c2f5a0ba7b2f7c21be167d5ea418c46552a299
net/mlx5: relax atomic refcnt for multi-packet Rx buffer

Use C11 atomics with RELAXED ordering instead of the rte_atomic ops
which enforce unnecessary barriers on aarch64.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Alexander Kozyrev <akozyrev@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h