Subject: Re: [PATCH net] linux/dim: Do nothing if no time delta between samples

From: Michal Kubiak <[email-masked]>
Date: Mon, 8 May 2023 14:34:13 +0200

On Sun, May 07, 2023 at 04:57:43PM +0300, Tariq Toukan wrote:
> From: Roy Novich <[email-masked]>
> 
> Add return value for dim_calc_stats. This is an indication for the
> caller if curr_stats was assigned by the function. Avoid using
> curr_stats uninitialized over {rdma/net}_dim, when no time delta between
> samples. Coverity reported this potential use of an uninitialized
> variable.
> 
> Fixes: 4c4dbb4a7363 ("net/mlx5e: Move dynamic interrupt coalescing code to include/linux")
> Fixes: cb3c7fd4f839 ("net/mlx5e: Support adaptive RX coalescing")
> Signed-off-by: Roy Novich <[email-masked]>
> Reviewed-by: Aya Levin <[email-masked]>
> Reviewed-by: Saeed Mahameed <[email-masked]>
> Signed-off-by: Tariq Toukan <[email-masked]>
> ---

Looks good to me.

Thanks,
Reviewed-by: Michal Kubiak <[email-masked]>