]> 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)
commit7f3f622a3d603d9b38aef2b8582cb705709ba1d7
treeabc9abd4ad1b8faa25a42a4b18ebb2252f4811f0
parent1df4d431e7d8f579bc098c3a98f9f5c93a7f845b
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