From: Or Gerlitz Date: Tue, 1 Mar 2016 22:13:39 +0000 (+0200) Subject: net/mlx5: Make command timeout way shorter X-Git-Tag: v5.15~13995^2~155^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b6c07bdcdc97ccac2596063bfc32a5faddfe884;p=platform%2Fkernel%2Flinux-starfive.git net/mlx5: Make command timeout way shorter The command timeout is terribly long, whole two hours. Make it 60s so if things do go wrong, the user gets feedback in relatively short time, so they can take corrective actions and/or investigate using tools and such. Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters') Signed-off-by: Or Gerlitz Signed-off-by: Leon Romanovsky Signed-off-by: Saeed Mahameed Signed-off-by: David S. Miller --- diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index a815da9..3388a43 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -54,7 +54,7 @@ enum { /* one minute for the sake of bringup. Generally, commands must always * complete and we may need to increase this timeout value */ - MLX5_CMD_TIMEOUT_MSEC = 7200 * 1000, + MLX5_CMD_TIMEOUT_MSEC = 60 * 1000, MLX5_CMD_WQ_MAX_NAME = 32, };