diff options
author | Alaa Hleihel <alaa@mellanox.com> | 2018-10-09 12:06:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-09 21:08:48 +0300 |
commit | 27055454b43009b6775a7ce70907bb298f4fab1e (patch) | |
tree | 85ef52fe0d3a98844f46bb954339c7d9d30d9d48 /drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | |
parent | 071a234ad744ab9a1e9c948874d5f646a2964734 (diff) | |
download | linux-27055454b43009b6775a7ce70907bb298f4fab1e.tar.xz |
net/mlx4_en: Use minimal rx and tx ring sizes on kdump kernel
When memory is limited (on kdump kernel), reduce size of rx and tx rings.
Also reduce the number of rx rings.
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4_en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index c3228b89df46..485d856546c6 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h @@ -72,7 +72,7 @@ #define MLX4_EN_PAGE_SIZE (1 << MLX4_EN_PAGE_SHIFT) #define DEF_RX_RINGS 16 #define MAX_RX_RINGS 128 -#define MIN_RX_RINGS 4 +#define MIN_RX_RINGS 1 #define LOG_TXBB_SIZE 6 #define TXBB_SIZE BIT(LOG_TXBB_SIZE) #define HEADROOM (2048 / TXBB_SIZE + 1) |