]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: IPoIB, Initialize max_opened_tc in mlx5i_init flow
authorFeras Daoud <ferasda@mellanox.com>
Sun, 2 Sep 2018 19:12:07 +0000 (22:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Sep 2018 23:22:42 +0000 (16:22 -0700)
commit81c295b6f9ba9c5494758ff86954d2f751b7fed0
treeeecde258b2833439dec16d15c0ae2754144bc920
parent02a38679d0878ede3572b7fc8d16a5ea63de1c23
net/mlx5e: IPoIB, Initialize max_opened_tc in mlx5i_init flow

Enhanced ipoib does not initialize max_opened_tc causing wrong ethtool
statistics. As mlx5e_grp_sw_update_stats relies on this variable, without
this change, the TX statistics will not be updated.

Fixes: afbd21081455 ("net/mlx5e: Avoid reset netdev stats on configuration changes")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c