net/mlx5e: Use fail-safe channels reopen in tx reporter recover
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 28 Mar 2019 12:26:47 +0000 (14:26 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:50 +0000 (12:33 -0700)
commit484c1ada0bd2bdcb76f849ae77983e24320a2d1d
treeb1168bdeddc5bdab4a23c6c87e5790bb78ade9ea
parent192fba79822d9612af5ccd3f8aa05c922640ee13
net/mlx5e: Use fail-safe channels reopen in tx reporter recover

When requested to recover from error, the tx reporter might open new
channels and close the existing ones. Use safe channels switch flow in
order to guarantee opened channels at the end of the recover flow.
For this purpose, define mlx5e_safe_reopen_channels function and use it
within those flows.

Fixes: de8650a82071 ("net/mlx5e: Add tx reporter support")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c