]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Small refactor for general object capabilities
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 19 Jun 2025 11:37:17 +0000 (14:37 +0300)
committerLeon Romanovsky <leon@kernel.org>
Wed, 25 Jun 2025 11:34:27 +0000 (07:34 -0400)
commitebf8d47121b6ef3f38425a343a72f37c60fd6dbc
treeebdf7d0e2cb35a39eb10ec4cebcea1f050dde7e1
parent52931f55159ea5c27ad4fe66fc0cb8ad75ab795b
net/mlx5: Small refactor for general object capabilities

Make enum for capability bits of general object types depend on
the type definitions themselves.

Make sure that capabilities in the [64,127] bit range are
properly calculated (type id - 64).

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250619113721.60201-2-mbloch@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
include/linux/mlx5/mlx5_ifc.h