]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc7b62bbe1a9b25b0f37bf9363fb03221080f938
treeb1168bdeddc5bdab4a23c6c87e5790bb78ade9ea
parent79580755b70d400739b1c119f7fe0e115607df45
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: f9154a205e65 ("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