Skip to content

Commit b339e0a

Browse files
PatrisiousHaddadrleon
authored andcommitted
RDMA/mlx5: Add Qcounters req_transport_retries_exceeded/req_rnr_retries_exceeded
The req_transport_retries_exceeded counter shows the number of times requester detected transport retries exceed error. The req_rnr_retries_exceeded counter show the number of times the requester detected RNR NAKs retries exceed error. Signed-off-by: Patrisious Haddad <[email protected]> Link: https://lore.kernel.org/r/250466af94f4989d638fab168e246035530e912f.1718301543.git.leon@kernel.org Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent d98995b commit b339e0a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

drivers/infiniband/hw/mlx5/counters.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ static const struct mlx5_ib_counter extended_err_cnts[] = {
8383
INIT_Q_COUNTER(resp_remote_access_errors),
8484
INIT_Q_COUNTER(resp_cqe_flush_error),
8585
INIT_Q_COUNTER(req_cqe_flush_error),
86+
INIT_Q_COUNTER(req_transport_retries_exceeded),
87+
INIT_Q_COUNTER(req_rnr_retries_exceeded),
8688
};
8789

8890
static const struct mlx5_ib_counter roce_accl_cnts[] = {
@@ -102,6 +104,8 @@ static const struct mlx5_ib_counter vport_extended_err_cnts[] = {
102104
INIT_VPORT_Q_COUNTER(resp_remote_access_errors),
103105
INIT_VPORT_Q_COUNTER(resp_cqe_flush_error),
104106
INIT_VPORT_Q_COUNTER(req_cqe_flush_error),
107+
INIT_VPORT_Q_COUNTER(req_transport_retries_exceeded),
108+
INIT_VPORT_Q_COUNTER(req_rnr_retries_exceeded),
105109
};
106110

107111
static const struct mlx5_ib_counter vport_roce_accl_cnts[] = {

include/linux/mlx5/mlx5_ifc.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5629,7 +5629,11 @@ struct mlx5_ifc_query_q_counter_out_bits {
56295629

56305630
u8 local_ack_timeout_err[0x20];
56315631

5632-
u8 reserved_at_320[0xa0];
5632+
u8 reserved_at_320[0x60];
5633+
5634+
u8 req_rnr_retries_exceeded[0x20];
5635+
5636+
u8 reserved_at_3a0[0x20];
56335637

56345638
u8 resp_local_length_error[0x20];
56355639

0 commit comments

Comments
 (0)