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)
commit040ee6172e77b2366d0c622f75eba26e4e49481f
tree5371fa0bde96736d09c0daf5bf446d6305155515
parent8ec5d438a3c24e0ebd5df4e94b41a22e4bc0e028
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