]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove redundant active_channels indication
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 29 May 2018 08:06:31 +0000 (11:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Jun 2018 23:48:14 +0000 (16:48 -0700)
commit62582b4555a9bef1d2283f630035356ca737a9ba
treef0a68926d7f2def94b8a5efac9773bacd3f27dc3
parente5f40823731fe6de8254d5d5d5a942785d34344d
net/mlx5e: Remove redundant active_channels indication

Now, when all channels stats are saved regardless of the channel's state
{open, closed}, we can safely remove this indication and the stats spin
lock which protects it.

Fixes: 76c3810bade3 ("net/mlx5e: Avoid reset netdev stats on configuration changes")
Signed-off-by: Eran Ben Elisha <eranbe@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_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c