Skip to content

Commit 1f6da56

Browse files
dtatulearleon
authored andcommitted
net/mlx5: Add IFC bits for PCIe Congestion Event object
Add definitions for the PCIe Congestion Event object and the relevant FW command structures. 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-3-mbloch@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent ebf8d47 commit 1f6da56

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

include/linux/mlx5/mlx5_ifc.h

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12509,6 +12509,7 @@ enum {
1250912509
MLX5_GENERAL_OBJECT_TYPES_MACSEC = 0x27,
1251012510
MLX5_GENERAL_OBJECT_TYPES_INT_KEK = 0x47,
1251112511
MLX5_GENERAL_OBJECT_TYPES_RDMA_CTRL = 0x53,
12512+
MLX5_GENERAL_OBJECT_TYPES_PCIE_CONG_EVENT = 0x58,
1251212513
MLX5_GENERAL_OBJECT_TYPES_FLOW_TABLE_ALIAS = 0xff15,
1251312514
};
1251412515

@@ -12526,6 +12527,8 @@ enum {
1252612527
enum {
1252712528
MLX5_HCA_CAP_2_GENERAL_OBJECT_TYPES_RDMA_CTRL =
1252812529
BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_RDMA_CTRL - 0x40),
12530+
MLX5_HCA_CAP_2_GENERAL_OBJECT_TYPES_PCIE_CONG_EVENT =
12531+
BIT_ULL(MLX5_GENERAL_OBJECT_TYPES_PCIE_CONG_EVENT - 0x40),
1252912532
};
1253012533

1253112534
enum {
@@ -13284,4 +13287,41 @@ struct mlx5_ifc_mrtcq_reg_bits {
1328413287
u8 reserved_at_80[0x180];
1328513288
};
1328613289

13290+
struct mlx5_ifc_pcie_cong_event_obj_bits {
13291+
u8 modify_select_field[0x40];
13292+
13293+
u8 inbound_event_en[0x1];
13294+
u8 outbound_event_en[0x1];
13295+
u8 reserved_at_42[0x1e];
13296+
13297+
u8 reserved_at_60[0x1];
13298+
u8 inbound_cong_state[0x3];
13299+
u8 reserved_at_64[0x1];
13300+
u8 outbound_cong_state[0x3];
13301+
u8 reserved_at_68[0x18];
13302+
13303+
u8 inbound_cong_low_threshold[0x10];
13304+
u8 inbound_cong_high_threshold[0x10];
13305+
13306+
u8 outbound_cong_low_threshold[0x10];
13307+
u8 outbound_cong_high_threshold[0x10];
13308+
13309+
u8 reserved_at_e0[0x340];
13310+
};
13311+
13312+
struct mlx5_ifc_pcie_cong_event_cmd_in_bits {
13313+
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
13314+
struct mlx5_ifc_pcie_cong_event_obj_bits cong_obj;
13315+
};
13316+
13317+
struct mlx5_ifc_pcie_cong_event_cmd_out_bits {
13318+
struct mlx5_ifc_general_obj_out_cmd_hdr_bits hdr;
13319+
struct mlx5_ifc_pcie_cong_event_obj_bits cong_obj;
13320+
};
13321+
13322+
enum mlx5e_pcie_cong_event_mod_field {
13323+
MLX5_PCIE_CONG_EVENT_MOD_EVENT_EN = BIT(0),
13324+
MLX5_PCIE_CONG_EVENT_MOD_THRESH = BIT(2),
13325+
};
13326+
1328713327
#endif /* MLX5_IFC_H */

0 commit comments

Comments
 (0)