Commit 00b7c2ab authored by Maor Gottlieb's avatar Maor Gottlieb Committed by Doug Ledford

IB/mlx5: Enlarge autogroup flow table

In order to enlarge the flow group size to 8k, we decrease
the number of flow group types to 6 and increase the flow
table size to 64k.

Flow group size is calculated as follow:
  group_size = table_size / (#group_types + 1)

Fixes: 038d2ef8 ('IB/mlx5: Add flow steering support')
Signed-off-by: default avatarMaor Gottlieb <maorg@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent dac388ef
...@@ -2039,8 +2039,8 @@ enum flow_table_type { ...@@ -2039,8 +2039,8 @@ enum flow_table_type {
MLX5_IB_FT_TX MLX5_IB_FT_TX
}; };
#define MLX5_FS_MAX_TYPES 10 #define MLX5_FS_MAX_TYPES 6
#define MLX5_FS_MAX_ENTRIES 32000UL #define MLX5_FS_MAX_ENTRIES BIT(16)
static struct mlx5_ib_flow_prio *get_flow_table(struct mlx5_ib_dev *dev, static struct mlx5_ib_flow_prio *get_flow_table(struct mlx5_ib_dev *dev,
struct ib_flow_attr *flow_attr, struct ib_flow_attr *flow_attr,
enum flow_table_type ft_type) enum flow_table_type ft_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment