Commit 8f3f4464 authored by Thorsten Blum's avatar Thorsten Blum Committed by Jakub Kicinski
Browse files

net/mlx5: Use secs_to_jiffies() instead of msecs_to_jiffies()

parent 79936fcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ static int hws_bwc_queue_poll(struct mlx5hws_context *ctx,
			      bool drain)
{
	unsigned long timeout = jiffies +
				msecs_to_jiffies(MLX5HWS_BWC_POLLING_TIMEOUT * MSEC_PER_SEC);
				secs_to_jiffies(MLX5HWS_BWC_POLLING_TIMEOUT);
	struct mlx5hws_flow_op_result comp[MLX5HWS_BWC_MATCHER_REHASH_BURST_TH];
	u16 burst_th = hws_bwc_get_burst_th(ctx, queue_id);
	bool got_comp = *pending_rules >= burst_th;