]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:06 +0000 (09:45 -0600)
commit73710f8452bb15eb1c8ed304cc9a78f9513c53c7
tree1b189777a19a3bc71049cd4a6a0fcf44f73cd6fc
parentdd372087b42528d00850eb0e3dcc125b8defecc8
net/mlx4_core: Correctly set PFC param if global pause is turned off.

BugLink: https://bugs.launchpad.net/bugs/1837161
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c