diff options
author | Cosmin Ratiu <cratiu@nvidia.com> | 2024-10-08 21:32:13 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-10 13:11:59 +0200 |
commit | d3a3b0765e18d78117cbf7b4cd61cd4a6ab2b5e5 (patch) | |
tree | ba6536136865dd694b1b1352b8138f83102a6e83 /rust/helpers/mutex.c | |
parent | 8746eeb7f80803009e2e137b8a6667820ea41c18 (diff) |
net/mlx5: qos: Maintain rate group vport members in a list
Previously, finding group members was done by iterating over all vports
of an eswitch and comparing their group with the required one, but that
approach will break down when a group can contain vports from multiple
eswitches.
Solve that by maintaining a list of vport members.
Instead of iterating over esw vports, loop over the members list.
Use this opportunity to provide two new functions to allocate and free a
group, so that the number of state transitions is smaller. This will
also be used in a future patch.
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions