net/mlx5e: Skip un-needed tx recover if interface state is down
authorEran Ben Elisha <eranbe@mellanox.com>
Thu, 28 Mar 2019 08:00:35 +0000 (10:00 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:50 +0000 (12:33 -0700)
commit192fba79822d9612af5ccd3f8aa05c922640ee13
tree80618c912ab23734560ea6e8be6a344d2bd1e86b
parentdf3a8344d404a810b4aadbf19b08c8232fbaa715
net/mlx5e: Skip un-needed tx recover if interface state is down

Skip recover operation if interface is in down state as TX objects are
not open. This fixes a bug were the recover flow re-opened TX objects
which were not opened before, leading to a possible memory leak at
driver unload.

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/reporter_tx.c