Skip to content

Commit a3d076b

Browse files
Akiva Goldbergerrleon
authored andcommitted
net/mlx5: Add uar access and odp page fault counters
Add bar_uar_access, odp_local_triggered_page_fault, and odp_remote_triggered_page_fault counters to the query_vnic_env command. Additionally, add corresponding capabilities bits to the HCA CAP. Signed-off-by: Akiva Goldberger <agoldberger@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/1758115678-643464-1-git-send-email-tariqt@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 2ac2073 commit a3d076b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

include/linux/mlx5/mlx5_ifc.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,9 @@ struct mlx5_ifc_cmd_hca_cap_bits {
19581958
u8 log_max_rqt[0x5];
19591959
u8 reserved_at_390[0x3];
19601960
u8 log_max_rqt_size[0x5];
1961-
u8 reserved_at_398[0x3];
1961+
u8 reserved_at_398[0x1];
1962+
u8 vnic_env_cnt_bar_uar_access[0x1];
1963+
u8 vnic_env_cnt_odp_page_fault[0x1];
19621964
u8 log_max_tis_per_sq[0x5];
19631965

19641966
u8 ext_stride_num_range[0x1];
@@ -4019,7 +4021,13 @@ struct mlx5_ifc_vnic_diagnostic_statistics_bits {
40194021

40204022
u8 handled_pkt_steering_fail[0x40];
40214023

4022-
u8 reserved_at_360[0xc80];
4024+
u8 bar_uar_access[0x20];
4025+
4026+
u8 odp_local_triggered_page_fault[0x20];
4027+
4028+
u8 odp_remote_triggered_page_fault[0x20];
4029+
4030+
u8 reserved_at_3c0[0xc20];
40234031
};
40244032

40254033
struct mlx5_ifc_traffic_counter_bits {

0 commit comments

Comments
 (0)