Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dragos Tatulea and committed by
Leon Romanovsky
ebf8d471 52931f55

+16 -11
+16 -11
include/linux/mlx5/mlx5_ifc.h
··· 12502 12502 }; 12503 12503 12504 12504 enum { 12505 - MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_ENCRYPTION_KEY = BIT_ULL(0xc), 12506 - MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_IPSEC = BIT_ULL(0x13), 12507 - MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = BIT_ULL(0x20), 12508 - MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_FLOW_METER_ASO = BIT_ULL(0x24), 12509 - }; 12510 - 12511 - enum { 12512 - MLX5_HCA_CAP_2_GENERAL_OBJECT_TYPES_RDMA_CTRL = BIT_ULL(0x13), 12513 - }; 12514 - 12515 - enum { 12516 12505 MLX5_GENERAL_OBJECT_TYPES_ENCRYPTION_KEY = 0xc, 12517 12506 MLX5_GENERAL_OBJECT_TYPES_IPSEC = 0x13, 12518 12507 MLX5_GENERAL_OBJECT_TYPES_SAMPLER = 0x20, ··· 12510 12521 MLX5_GENERAL_OBJECT_TYPES_INT_KEK = 0x47, 12511 12522 MLX5_GENERAL_OBJECT_TYPES_RDMA_CTRL = 0x53, 12512 12523 MLX5_GENERAL_OBJECT_TYPES_FLOW_TABLE_ALIAS = 0xff15, 12524 + }; 12525 + 12526 + enum { 12527 + MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_ENCRYPTION_KEY = 12528 + BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_ENCRYPTION_KEY), 12529 + MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_IPSEC = 12530 + BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_IPSEC), 12531 + MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_SAMPLER = 12532 + BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_SAMPLER), 12533 + MLX5_HCA_CAP_GENERAL_OBJECT_TYPES_FLOW_METER_ASO = 12534 + BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_FLOW_METER_ASO), 12535 + }; 12536 + 12537 + enum { 12538 + MLX5_HCA_CAP_2_GENERAL_OBJECT_TYPES_RDMA_CTRL = 12539 + BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_RDMA_CTRL - 0x40), 12513 12540 }; 12514 12541 12515 12542 enum {