]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41a5497fed607d0c0e6aa2f84bcf0f744d5d7262
tree38f9f01bd92865ea8dd8079513c1b00e4c7ba9a8
parent2a90773106d75bbdbadbae9fee3c3279b73c8ada
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: 22b59b3c7509 ("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