net/mlx4_core: Correctly set PFC param if global pause is turned off.
authorTarick Bedeir <[email protected]>
Fri, 7 Dec 2018 08:30:26 +0000 (00:30 -0800)
committerDavid S. Miller <[email protected]>
Sun, 9 Dec 2018 05:26:36 +0000 (21:26 -0800)
commitbd5122cd1e0644d8bd8dd84517c932773e999766
tree1b58c9940ecb302f7505405453a1db7ea2b6a2f7
parent5b3279e2cba2238b37f6c18adfdea8bddb32715a
net/mlx4_core: Correctly set PFC param if global pause is turned off.

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 <[email protected]>
Reviewed-by: Eran Ben Elisha <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c