]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group
authorCosmin Ratiu <cratiu@nvidia.com>
Tue, 8 Oct 2024 18:32:16 +0000 (21:32 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Oct 2024 11:11:59 +0000 (13:11 +0200)
commitb9cfe193eb8fa3468fbd5585f92ed77648488b98
tree4784691db1d3edc79bef52674e08882f7f950137
parente9fa32f110867655eb396cef1f35b66278e53051
net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group

The rate groups are about to be moved out of eswitches, so store a
reference to the eswitch they belong to so things can still work
later.

This allows dropping the esw parameter from a couple of functions and
simplifying some of the code. Use this opportunity to make sure that
vport scheduling element commands are always sent to the group eswitch,
because that will be relevant for cross-esw scheduling. For now though,
the eswitches are not different.

There is no functionality change here.

Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c