]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Disable TX MPWQE in kdump mode
authorAlaa Hleihel <alaa@nvidia.com>
Mon, 10 May 2021 11:17:55 +0000 (14:17 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 3 Jun 2021 20:10:20 +0000 (13:10 -0700)
commit1a8114aee584078024fdf2f5956614560895e2a9
tree5371fa0bde96736d09c0daf5bf446d6305155515
parent79203752d55ce918b18c50161cb7dc71268a756b
net/mlx5e: Disable TX MPWQE in kdump mode

Under kdump environment we want to use the smallest possible amount
of resources, that includes setting SQ size to minimum.
However, when running on a device that supports TX MPWQE, then the SQ stop
room becomes larger than with non-capable device and requires increasing
the SQ size.

Since TX MPWQE offload is not necessary in kdump mode, disable it to
reduce the memory requirements for capable devices.

With this change, the needed SQ stop room size drops by 31.

Signed-off-by: Alaa Hleihel <alaa@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c