]> 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)
commitd9cd4c0c75d8b0583e437ae8d856368e7bc96703
treeb1168bdeddc5bdab4a23c6c87e5790bb78ade9ea
parentf6205f2b921bcd7bb418480496adc3f2d885d545
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: d67460ad091c ("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