From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Hi, This is complementary part of two RDMA kernel series (not accepted yet). https://patchwork.kernel.org/project/linux-rdma/list/?series=69901 https://patchwork.kernel.org/project/linux-rdma/list/?series=69903 This series add those IDs, refactor code and unifies "resource" command implementation. Thanks Leon Romanovsky (19): rdma: update uapi headers rdma: Remove duplicated print code rdma: Provide unique indexes for all visible objects rdma: Provide parent context index for all objects except CM_ID rdma: Move resource PD logic to separate file rdma: Refactor out resource MR logic to separate file rdma: Move out resource CQ logic to separate file rdma: Move out resource CM-ID logic to separate file rdma: Move resource PD logic to separate file rdma: Properly mark RDMAtool license rdma: Simplify code to reuse existing functions rdma: Simplify CM_ID print code rdma: Refactor CQ prints rdma: Separate MR code rdma: Separate PD code rdma: Move QP code to separate function rdma: Unify netlink attribute checks prior to prints rdma: Perform single .doit call to query specific objects rdma: Provide and reuse filter functions rdma/Makefile | 5 +- rdma/dev.c | 7 +- rdma/include/uapi/rdma/rdma_netlink.h | 10 + rdma/link.c | 7 +- rdma/rdma.c | 7 +- rdma/rdma.h | 24 +- rdma/res-cmid.c | 275 ++++++++ rdma/res-cq.c | 160 +++++ rdma/res-mr.c | 133 ++++ rdma/res-pd.c | 136 ++++ rdma/res-qp.c | 240 +++++++ rdma/res.c | 932 ++------------------------ rdma/res.h | 148 ++++ rdma/utils.c | 53 +- 14 files changed, 1217 insertions(+), 920 deletions(-) create mode 100644 rdma/res-cmid.c create mode 100644 rdma/res-cq.c create mode 100644 rdma/res-mr.c create mode 100644 rdma/res-pd.c create mode 100644 rdma/res-qp.c create mode 100644 rdma/res.h -- 2.19.1