]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Enlarge autogroup flow table
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 29 Mar 2017 03:09:01 +0000 (06:09 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:26:05 +0000 (12:26 -0400)
commit9ff113c69c470f0820664a2ba18bfb362436f3e7
treeecdf1cde24adba07716b2c8a06f969b6c9660460
parent8ce5e740f8f820770bd3db4782e9f670801966fa
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: 7936b72ccd7c ('IB/mlx5: Add flow steering support')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c