net/mlx4_en: Fix TX moderation info loss after set_ringparam is called
authorAmir Vadai <amirv@mellanox.com>
Sun, 2 Dec 2012 03:49:22 +0000 (03:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2012 01:22:58 +0000 (20:22 -0500)
commit79c54b6bbf06a4ecd5343ea3687cd36c01f76d56
tree3b4ac724808698549336022732910ee213b14656
parent2c46c9d5779d40e4a2f36f24017de4342344e258
net/mlx4_en: Fix TX moderation info loss after set_ringparam is called

We need to re-set tx moderation information after calling set_ringparam
else default tx moderation will be used.
Also avoid related code duplication, by putting it in a utility function.

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c