]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Cap the maximum flow group size to 16M entries
authorPaul Blakey <paulb@nvidia.com>
Thu, 11 Mar 2021 09:35:39 +0000 (11:35 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:38 +0000 (11:54 -0700)
commit31e06c2cec2b9e24550cb6188abf0e091f7dd9b9
treeabc9abd4ad1b8faa25a42a4b18ebb2252f4811f0
parent458f34999d830e12e9321a0e78d8c12f03c8aa8d
net/mlx5: Cap the maximum flow group size to 16M entries

The maximum number of large flow groups applies to both small and large
tables. For very large tables (such as the 2G SW steering tables) this may
create a small number of flow groups each with an unrealistic entries
domain (> 16M).

Set the maximum number of large flow groups to at least what user
requested, but with a maximum per group size of 16M entries.
For software steering, if user requested less than 128 large flow
groups, it will gives us about 128 16M groups in a 2G
entries tables.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c