vdpa/mlx5: default polling mode delay time to zero

To improve performance and latency, this patch sets Rx polling mode
default delay time to zero.

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
Xueming Li 2020-12-02 23:36:41 +00:00 committed by Ferruh Yigit
parent 6956a48cab
commit c9a189f4ea
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@
#define VIRTIO_F_RING_PACKED 34
#endif
#define MLX5_VDPA_DEFAULT_TIMER_DELAY_US 100u
#define MLX5_VDPA_DEFAULT_TIMER_DELAY_US 0u
#define MLX5_VDPA_DEFAULT_TIMER_STEP_US 1u
struct mlx5_vdpa_cq {

View File

@ -266,7 +266,8 @@ mlx5_vdpa_timer_sleep(struct mlx5_vdpa_priv *priv, uint32_t max)
break;
}
}
usleep(priv->timer_delay_us);
if (priv->timer_delay_us)
usleep(priv->timer_delay_us);
}
static void *