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:
parent
6956a48cab
commit
c9a189f4ea
@ -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 {
|
||||
|
@ -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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user