Thread (24 messages) 24 messages, 4 authors, 2020-03-03

Re: [net-next 08/16] net/mlx5e: Add devlink fdb_large_groups parameter

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-02-28 19:10:30

On Thu, 27 Feb 2020 16:44:38 -0800 Saeed Mahameed wrote:
From: Jianbo Liu <redacted>

Add a devlink parameter to control the number of large groups in a
autogrouped flow table. The default value is 15, and the range is between 1
and 1024.

The size of each large group can be calculated according to the following
formula: size = 4M / (fdb_large_groups + 1).

Examples:
- Set the number of large groups to 20.
    $ devlink dev param set pci/0000:82:00.0 name fdb_large_groups \
      cmode driverinit value 20

  Then run devlink reload command to apply the new value.
    $ devlink dev reload pci/0000:82:00.0

- Read the number of large groups in flow table.
    $ devlink dev param show pci/0000:82:00.0 name fdb_large_groups
    pci/0000:82:00.0:
      name fdb_large_groups type driver-specific
        values:
          cmode driverinit value 20

Signed-off-by: Jianbo Liu <redacted>
Reviewed-by: Vlad Buslov <redacted>
Reviewed-by: Roi Dayan <redacted>
Acked-by: Jiri Pirko <redacted>
Signed-off-by: Saeed Mahameed <redacted>
Slicing memory up sounds like something that should be supported via
the devlink-resource API, not by params and non-obvious calculations :(
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help