]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net/mlx5e: Update xon formula
authorHuy Nguyen <huyn@mellanox.com>
Thu, 7 Mar 2019 20:07:32 +0000 (14:07 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:43 +0000 (12:24 -0700)
commite28408e98bced123038857b6e3c81fa12a2e3e68
tree352d66d0cb170912e8766fd3b1eabf7da520511b
parent5ec983e924c7978aaec3cf8679ece9436508bb20
net/mlx5e: Update xon formula

Set xon = xoff - netdev's max_mtu.
netdev's max_mtu will give enough time for the pause frame to
arrive at the sender.

Fixes: 0696d60853d5 ("net/mlx5e: Receive buffer configuration")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c