]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Update and set Xon/Xoff upon MTU set
authorAlexei Lazar <alazar@nvidia.com>
Mon, 25 Aug 2025 14:34:32 +0000 (17:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 13:26:28 +0000 (15:26 +0200)
commita888b3a69d741c19fc898e5d1922cc0473dde473
tree424f0e39c95de9ce37e792abd098b99be9accb5e
parent95c5431188c6e7d99113d85dd818c9149d2879a7
net/mlx5e: Update and set Xon/Xoff upon MTU set

[ Upstream commit ceddedc969f0532b7c62ca971ee50d519d2bc0cb ]

Xon/Xoff sizes are derived from calculation that include the MTU size.
Set Xon/Xoff when MTU is set.
If Xon/Xoff fails, set the previous MTU.

Fixes: 0696d60853d5 ("net/mlx5e: Receive buffer configuration")
Signed-off-by: Alexei Lazar <alazar@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250825143435.598584-10-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c