]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx4_core: Correctly set PFC param if global pause is turned off.
authorTarick Bedeir <tarick@google.com>
Fri, 7 Dec 2018 08:30:26 +0000 (00:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:38:31 +0000 (09:38 +0100)
commit5765610c932df91cc3b93f8e069a02e946fa44bd
tree6591f1af6e1f87417c9a02648785dfed486c23cd
parent25a445d3292b3783c106985e63b594c7368d6a03
net/mlx4_core: Correctly set PFC param if global pause is turned off.

[ Upstream commit bd5122cd1e0644d8bd8dd84517c932773e999766 ]

rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1.

Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests")
Signed-off-by: Tarick Bedeir <tarick@google.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c