HomeFreeBSD

net/mlx5: Fix auto group size calculation

Description

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

Details

Provenance
markb_mellanox.comAuthored on Feb 19 2023, 2:05 PM
kibCommitted on Nov 15 2023, 11:08 PM
Parents
rG76ed99ed8ad2: mlx5: Use software enum in APIs instead of PRM
Branches
Unknown
Tags
Unknown