]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79580755b70d400739b1c119f7fe0e115607df45
tree80618c912ab23734560ea6e8be6a344d2bd1e86b
parentbb369783fcc96612e0b3fcb15547168b2a481884
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: 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/reporter_tx.c