Re: [PATCH iproute2-next 08/10] rdma: Add QP resource tracking information

2018-02-05 Thread Leon Romanovsky
On Thu, Feb 01, 2018 at 02:05:08PM -0600, Steve Wise wrote: > Hey Leon, <...> > > > +static int res_qp_parse_cb(const struct nlmsghdr *nlh, void *data) > > +{ <...> > > + > > + mnl_attr_for_each_nested(nla_entry, nla_table) { > > + struct nlattr *nla_line[RDMA_NLDEV_ATTR_MAX] = {};

RE: [PATCH iproute2-next 08/10] rdma: Add QP resource tracking information

2018-02-01 Thread Steve Wise
Hey Leon, > > From: Leon Romanovsky > > This patch adds ss-similar interface to view various resource > tracked objects. At this stage, only QP is presented. > > 1. Get all QPs for the specific device: > $ rdma res show qp link mlx5_4 > link mlx5_4/- lqpn 8 type UD state RESET sq-psn 0 pid 0 c

[PATCH iproute2-next 08/10] rdma: Add QP resource tracking information

2018-01-31 Thread Leon Romanovsky
From: Leon Romanovsky This patch adds ss-similar interface to view various resource tracked objects. At this stage, only QP is presented. 1. Get all QPs for the specific device: $ rdma res show qp link mlx5_4 link mlx5_4/- lqpn 8 type UD state RESET sq-psn 0 pid 0 comm [ib_ipoib] link mlx5_4/1 l