]> 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:30:24 +0000 (15:30 +0200)
commitcdd96ed125242afb2add7d760bd634799914a9a1
treeb0bf6671718c618a433c5898eb96c011b77cbf9e
parent3e07c623fbc5a3800bfb956a31a16adaee3c13c7
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