net/mlx5: replace Linux sleep
authorOphir Munk <ophirmu@nvidia.com>
Mon, 28 Dec 2020 09:54:09 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commit20698c9f15f7790225d2d64cf6083a4f2c34c79c
tree41b703931af4a1f9ca4f31c5759bb0ba9b5dd82b
parentb492e28882f7009421d133126aa7524c02339ba3
net/mlx5: replace Linux sleep

Replace Linux API usleep() and nanosleep() with rte_delay_us_sleep().
The replacement occurs in shared files compiled under different
operating systems.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_trigger.c
drivers/net/mlx5/mlx5_txpp.c