[dpdk-dev] [PATCH 2/2] vdpa/mlx5: hardware queue moderation

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jan 7 18:38:24 CET 2021



On 1/6/21 4:06 AM, Xueming Li wrote:
> The next parameters control the HW queue moderation feature.
> This feature helps to control the traffic performance and latency
> tradeoff.
> 
> Each packet completion report from HW to SW requires CQ processing by SW
> and triggers interrupt for the guest driver. Interrupt report and
> handling cost CPU cycles and time and the amount of this affects
> directly on packet performance and latency.
> 
> hw_latency_mode parameters [int]
>   0, HW default.
>   1, Latency is counted from the first packet completion report.
>   2, Latency is counted from the last packet completion.
> hw_max_latency_us parameters [int]
>   0 - 4095, The maximum time in microseconds that packet completion
> report can be delayed.
> hw_max_pending_comp parameter [int]
>   0 - 65535, The maximum number of pending packets completions in an HW
> queue.
> 
> Signed-off-by: Xueming Li <xuemingl at nvidia.com>
> ---
>  doc/guides/vdpadevs/mlx5.rst        | 24 ++++++++++++++++++++++++
>  drivers/vdpa/mlx5/mlx5_vdpa.c       |  6 ++++++
>  drivers/vdpa/mlx5/mlx5_vdpa.h       |  3 +++
>  drivers/vdpa/mlx5/mlx5_vdpa_virtq.c |  3 +++
>  4 files changed, 36 insertions(+)

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list