]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix HW timestamp init issue upon system startup
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 17 Dec 2015 13:35:38 +0000 (15:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:48:04 +0000 (14:48 -0500)
commit1665dd0db7bc7a814c873b89293a3843bfdabdf9
tree130d1c049e345443cfd8048971fa7cdce28ed04f
parent5894b9bd58ff3095ce100833ac2be346bd589aad
net/mlx4_en: Fix HW timestamp init issue upon system startup

mlx4_en_init_timestamp was called before creation of netdev and port
init, thus used uninitialized values.  Specifically - NIC frequency was
incorrect causing wrong calculations and later wrong HW timestamps.

Fixes: 08ab352a1144 ('net/mlx4_en: Fixed crash when port type is changed')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Marina Varshaver <marinav@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_clock.c
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c