Skip to content

Commit

Permalink
Merge branch 'mlx5-next' into wip/leon-for-next
Browse files Browse the repository at this point in the history
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: Leon Romanovsky <leon@kernel.org>
  • Loading branch information
Leon Romanovsky committed Jun 16, 2024
2 parents a4e5401 + b339e0a commit b7161db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions drivers/infiniband/hw/mlx5/counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ static const struct mlx5_ib_counter extended_err_cnts[] = {
INIT_Q_COUNTER(resp_remote_access_errors),
INIT_Q_COUNTER(resp_cqe_flush_error),
INIT_Q_COUNTER(req_cqe_flush_error),
INIT_Q_COUNTER(req_transport_retries_exceeded),
INIT_Q_COUNTER(req_rnr_retries_exceeded),
};

static const struct mlx5_ib_counter roce_accl_cnts[] = {
Expand All @@ -102,6 +104,8 @@ static const struct mlx5_ib_counter vport_extended_err_cnts[] = {
INIT_VPORT_Q_COUNTER(resp_remote_access_errors),
INIT_VPORT_Q_COUNTER(resp_cqe_flush_error),
INIT_VPORT_Q_COUNTER(req_cqe_flush_error),
INIT_VPORT_Q_COUNTER(req_transport_retries_exceeded),
INIT_VPORT_Q_COUNTER(req_rnr_retries_exceeded),
};

static const struct mlx5_ib_counter vport_roce_accl_cnts[] = {
Expand Down
6 changes: 5 additions & 1 deletion include/linux/mlx5/mlx5_ifc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5629,7 +5629,11 @@ struct mlx5_ifc_query_q_counter_out_bits {

u8 local_ack_timeout_err[0x20];

u8 reserved_at_320[0xa0];
u8 reserved_at_320[0x60];

u8 req_rnr_retries_exceeded[0x20];

u8 reserved_at_3a0[0x20];

u8 resp_local_length_error[0x20];

Expand Down

0 comments on commit b7161db

Please sign in to comment.