]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h
authorCosmin Ratiu <cratiu@nvidia.com>
Tue, 8 Oct 2024 18:32:09 +0000 (21:32 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Oct 2024 11:11:59 +0000 (13:11 +0200)
commit016f426a14f09faa8bdb68b063c2947edf3108a1
treea4b009e7043747f971a59fc54ed71e11a0307522
parentd9d28b6f6a13b2ea084bb87d5b8f028769988e9d
net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h

This is used for multiple purposes, depending on the scheduling element
created. There are a few helper struct defined a long time ago, but they
are not easy to find in the file and they are about to get new members.
This commit cleans up this area a bit by:
- moving the helper structs closer to where they are relevant.
- defining a helper union to include all of them to help
  discoverability.
- making use of it everywhere element_attributes is used.
- using a consistent 'attr' name.

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
include/linux/mlx5/mlx5_ifc.h