> -----Original Message----- > From: linux-rdma-owner@xxxxxxxxxxxxxxx <linux-rdma- > owner@xxxxxxxxxxxxxxx> On Behalf Of Leon Romanovsky > Sent: Wednesday, February 20, 2019 1:22 AM > To: David Ahern <dsahern@xxxxxxxxx> > Cc: Leon Romanovsky <leonro@xxxxxxxxxxxx>; netdev > <netdev@xxxxxxxxxxxxxxx>; RDMA mailing list <linux- > rdma@xxxxxxxxxxxxxxx>; Stephen Hemminger > <stephen@xxxxxxxxxxxxxxxxxx> > Subject: [PATCH iproute2-next v1 18/19] rdma: Perform single .doit call to > query specific objects > > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > If user provides specific index, we can speedup query > by using .doit callback and save full dump and filtering > after that. > > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > rdma/rdma.h | 10 +++++- > rdma/res-cmid.c | 33 +++++++++++++------ > rdma/res-cq.c | 34 ++++++++++++++------ > rdma/res-mr.c | 33 ++++++++++++++----- > rdma/res-pd.c | 32 ++++++++++++++----- > rdma/res-qp.c | 32 ++++++++++++++----- > rdma/res.c | 34 +++++++++++++++++++- > rdma/res.h | 84 ++++++++++++++++++++++++++++++++----------------- > rdma/utils.c | 20 ++++++++++++ > 9 files changed, 239 insertions(+), 73 deletions(-) > Reviewed-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>