net/mlx5: Fix auto group size calculation
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 5 Sep 2019 06:56:10 +0000 (09:56 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:06 +0000 (12:33 -0800)
commit97fd8da281f80e7e69e0114bc906575734d4dfaf
tree38f9f01bd92865ea8dd8079513c1b00e4c7ba9a8
parent9c98f7ec01d78b5c12db97d1e5edb7022eefa398
net/mlx5: Fix auto group size calculation

Once all the large flow groups (defined by the user when the flow table
is created - max_num_groups) were created, then all the following new
flow groups will have only one flow table entry, even though the flow table
has place to larger groups.
Fix the condition to prefer large flow group.

Fixes: f0d22d187473 ("net/mlx5_core: Introduce flow steering autogrouped flow table")
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h