[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190717142346.GO10130@mtr-leonro.mtl.com>
Date: Wed, 17 Jul 2019 17:23:46 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev <netdev@...r.kernel.org>, David Ahern <dsahern@...il.com>,
Mark Zhang <markz@...lanox.com>,
RDMA mailing list <linux-rdma@...r.kernel.org>
Subject: Re: [PATCH iproute2-rc 2/8] rdma: Add "stat qp show" support
On Tue, Jul 16, 2019 at 12:01:28PM -0700, Stephen Hemminger wrote:
> On Wed, 10 Jul 2019 10:24:49 +0300
> Leon Romanovsky <leon@...nel.org> wrote:
>
> > From: Mark Zhang <markz@...lanox.com>
> >
> > This patch presents link, id, task name, lqpn, as well as all sub
> > counters of a QP counter.
> > A QP counter is a dynamically allocated statistic counter that is
> > bound with one or more QPs. It has several sub-counters, each is
> > used for a different purpose.
> >
> > Examples:
> > $ rdma stat qp show
> > link mlx5_2/1 cntn 5 pid 31609 comm client.1 rx_write_requests 0
> > rx_read_requests 0 rx_atomic_requests 0 out_of_buffer 0 out_of_sequence 0
> > duplicate_request 0 rnr_nak_retry_err 0 packet_seq_err 0
> > implied_nak_seq_err 0 local_ack_timeout_err 0 resp_local_length_error 0
> > resp_cqe_error 0 req_cqe_error 0 req_remote_invalid_request 0
> > req_remote_access_errors 0 resp_remote_access_errors 0
> > resp_cqe_flush_error 0 req_cqe_flush_error 0
> > LQPN: <178>
> > $ rdma stat show link rocep1s0f5/1
> > link rocep1s0f5/1 rx_write_requests 0 rx_read_requests 0 rx_atomic_requests 0 out_of_buffer 0 duplicate_request 0
> > rnr_nak_retry_err 0 packet_seq_err 0 implied_nak_seq_err 0 local_ack_timeout_err 0 resp_local_length_error 0 resp_cqe_error 0
> > req_cqe_error 0 req_remote_invalid_request 0 req_remote_access_errors 0 resp_remote_access_errors 0 resp_cqe_flush_error 0
> > req_cqe_flush_error 0 rp_cnp_ignored 0 rp_cnp_handled 0 np_ecn_marked_roce_packets 0 np_cnp_sent 0
> > $ rdma stat show link rocep1s0f5/1 -p
> > link rocep1s0f5/1
> > rx_write_requests 0
> > rx_read_requests 0
> > rx_atomic_requests 0
> > out_of_buffer 0
> > duplicate_request 0
> > rnr_nak_retry_err 0
> > packet_seq_err 0
> > implied_nak_seq_err 0
> > local_ack_timeout_err 0
> > resp_local_length_error 0
> > resp_cqe_error 0
> > req_cqe_error 0
> > req_remote_invalid_request 0
> > req_remote_access_errors 0
> > resp_remote_access_errors 0
> > resp_cqe_flush_error 0
> > req_cqe_flush_error 0
> > rp_cnp_ignored 0
> > rp_cnp_handled 0
> > np_ecn_marked_roce_packets 0
> > np_cnp_sent 0
> >
> > Signed-off-by: Mark Zhang <markz@...lanox.com>
> > Signed-off-by: Leon Romanovsky <leonro@...lanox.com>
> > ---
> > rdma/Makefile | 2 +-
> > rdma/rdma.c | 3 +-
> > rdma/rdma.h | 1 +
> > rdma/stat.c | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++
> > rdma/utils.c | 7 ++
> > 5 files changed, 279 insertions(+), 2 deletions(-)
> > create mode 100644 rdma/stat.c
> >
>
> Headers have been merged, but this patch does not apply cleanly to current iproute2
Strange, it applied for me cleanly and latest commit in my iproute2
local repo is d035cc1b "ip tunnel: warn when changing IPv6 tunnel without tunnel name"
I will resend the series with fixed typo.
Thanks
>
Powered by blists - more mailing lists