net/mlx5: Expose timeout for sync reset unload stage
authorMoshe Shemesh <moshe@nvidia.com>
Wed, 17 May 2023 08:53:50 +0000 (11:53 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:02:06 +0000 (12:02 -0700)
commit8bb42ed4210e342631f63d32f7ed87b722968da6
tree242d326f7632c0d53e1531577d976fc0f25d4d53
parent92501fa6e4217aa0b85b092f91b2649b3c214a75
net/mlx5: Expose timeout for sync reset unload stage

Expose new timoueout in Default Timeouts Register to be used on sync
reset flow running on smart NIC. In this flow the driver should know how
much time to wait from getting unload request till firmware will ask the
PF to continue to next stage of the flow.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lib/tout.c
drivers/net/ethernet/mellanox/mlx5/core/lib/tout.h
include/linux/mlx5/mlx5_ifc.h