summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHuy Nguyen <huyn@mellanox.com>2019-09-06 09:28:46 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:57:17 +0100
commitc5fc25e6d78573441e62dc59e62ea8be5c37a1d9 (patch)
tree1bdbdeed345a8b7d24d9622dcc125aeb1959519c /include
parent9430afbc29b5fcdd37541d35747e6684d3709bee (diff)
net/mlx5e: Query global pause state before setting prio2buffer
[ Upstream commit 73e6551699a32fac703ceea09214d6580edcf2d5 ] When the user changes prio2buffer mapping while global pause is enabled, mlx5 driver incorrectly sets all active buffers (buffer that has at least one priority mapped) to lossy. Solution: If global pause is enabled, set all the active buffers to lossless in prio2buffer command. Also, add error message when buffer size is not enough to meet xoff threshold. Fixes: 0696d60853d5 ("net/mlx5e: Receive buffer configuration") Signed-off-by: Huy Nguyen <huyn@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions