net/mlx5e: Always initialize update stats delayed work
authorFeras Daoud <ferasda@mellanox.com>
Tue, 9 Oct 2018 10:06:02 +0000 (13:06 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Oct 2018 00:58:14 +0000 (17:58 -0700)
commit303211b44ce3faa4456f78ed725d80e0212aa842
tree8760e95989ab0d1bf9658b5e6194b9cd473f23a9
parent182570b26223deea0eaf09ba384c79a29d0a328f
net/mlx5e: Always initialize update stats delayed work

mlx5e_detach_netdev cancels update_stats work which was not initialized
in ipoib netdevice profile, as a result, the following assert occurs:

ODEBUG: assert_init not available (active state 0) object type:
timer_list hint:(null)

This change moves the update stats work to be initialized for all
mlx5e netdevices.

Fixes: cd565b4b51e5 ("IB/IPoIB: Support acceleration options callbacks")
Signed-off-by: Feras Daoud <ferasda@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