net/mlx4_en: User prio mapping gets corrupted when changing number of channels
authorIdo Shamay <[email protected]>
Wed, 14 May 2014 09:15:11 +0000 (12:15 +0300)
committerDavid S. Miller <[email protected]>
Wed, 14 May 2014 19:40:33 +0000 (15:40 -0400)
commitf5b6345ba8daf65a96ba4931c63624936908cf0f
tree02d5f76b0b1129e935b2feafed6afef868780630
parent2eacc23c422b4553030168f315cb49522fa1b1f6
net/mlx4_en: User prio mapping gets corrupted when changing number of channels

When using ethtool set_channels, mlx4_en_setup_tc is always called, even
when it was not configured. Fixed code to call mlx4_en_setup_tc() only
if needed.

Signed-off-by: Ido Shamay <[email protected]>
Signed-off-by: Amir Vadai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c