OSDN Git Service

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)
commit71513c05a97fa2c930d79661a32759e6875850d4
treeabc9abd4ad1b8faa25a42a4b18ebb2252f4811f0
parent9e117998409c740fdf921392acb048360fcb62a9
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