]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48f17a72fc6cf55704b13f0fa33214811aa4991c
tree3b4ac724808698549336022732910ee213b14656
parent57f2c787efac509032f9cea1923d0d3b209f294a
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