]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net/mlx5: Fix auto group size calculation
authorMark Bloch <mbloch@nvidia.com>
Sun, 19 Feb 2023 14:05:16 +0000 (14:05 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 15 Nov 2023 23:08:16 +0000 (01:08 +0200)
commit04db54fe4309e896c4c80baadbcc47b171722027
tree924250682bce55dd0f75bcdf451f58b8c2434825
parent76ed99ed8ad259792fea752461e2cd1ed481e8e1
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.

Upstream Linux commit: 97fd8da281f80e7e69e0114bc906575734d4dfaf
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Sponsored by: NVidia networking
MFC after: 1 week
sys/dev/mlx5/mlx5_core/fs_core.h
sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c