Skip to content

Commit 5e022dd

Browse files
Eran Ben ElishaSaeed Mahameed
authored andcommitted
net/mlx5: Expose MPEGC (Management PCIe General Configuration) structures
This patch exposes PRM layout for handling MPEGC (Management PCIe General Configuration). This will be used in the downstream patch for configuring MPEGC via the driver. Signed-off-by: Eran Ben Elisha <[email protected]> Reviewed-by: Moshe Shemesh <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent eff8ea8 commit 5e022dd

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

include/linux/mlx5/driver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ enum {
145145
MLX5_REG_MPCNT = 0x9051,
146146
MLX5_REG_MTPPS = 0x9053,
147147
MLX5_REG_MTPPSE = 0x9054,
148+
MLX5_REG_MPEGC = 0x9056,
148149
MLX5_REG_MCQI = 0x9061,
149150
MLX5_REG_MCC = 0x9062,
150151
MLX5_REG_MCDA = 0x9063,

include/linux/mlx5/mlx5_ifc.h

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8049,6 +8049,19 @@ struct mlx5_ifc_peir_reg_bits {
80498049
u8 error_type[0x8];
80508050
};
80518051

8052+
struct mlx5_ifc_mpegc_reg_bits {
8053+
u8 reserved_at_0[0x30];
8054+
u8 field_select[0x10];
8055+
8056+
u8 tx_overflow_sense[0x1];
8057+
u8 mark_cqe[0x1];
8058+
u8 mark_cnp[0x1];
8059+
u8 reserved_at_43[0x1b];
8060+
u8 tx_lossy_overflow_oper[0x2];
8061+
8062+
u8 reserved_at_60[0x100];
8063+
};
8064+
80528065
struct mlx5_ifc_pcam_enhanced_features_bits {
80538066
u8 reserved_at_0[0x6d];
80548067
u8 rx_icrc_encapsulated_counter[0x1];
@@ -8097,7 +8110,11 @@ struct mlx5_ifc_pcam_reg_bits {
80978110
};
80988111

80998112
struct mlx5_ifc_mcam_enhanced_features_bits {
8100-
u8 reserved_at_0[0x7b];
8113+
u8 reserved_at_0[0x74];
8114+
u8 mark_tx_action_cnp[0x1];
8115+
u8 mark_tx_action_cqe[0x1];
8116+
u8 dynamic_tx_overflow[0x1];
8117+
u8 reserved_at_77[0x4];
81018118
u8 pcie_outbound_stalled[0x1];
81028119
u8 tx_overflow_buffer_pkt[0x1];
81038120
u8 mtpps_enh_out_per_adj[0x1];
@@ -8112,7 +8129,9 @@ struct mlx5_ifc_mcam_access_reg_bits {
81128129
u8 mcqi[0x1];
81138130
u8 reserved_at_1f[0x1];
81148131

8115-
u8 regs_95_to_68[0x1c];
8132+
u8 regs_95_to_87[0x9];
8133+
u8 mpegc[0x1];
8134+
u8 regs_85_to_68[0x12];
81168135
u8 tracer_registers[0x4];
81178136

81188137
u8 regs_63_to_32[0x20];

0 commit comments

Comments
 (0)