From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon Romanovsky Subject: [PATCH iproute2-next v2 00/19] Export object IDs to users Date: Sat, 23 Feb 2019 11:15:09 +0200 Message-ID: <20190223091528.8509-1-leon@kernel.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: netdev-owner@vger.kernel.org To: David Ahern Cc: Leon Romanovsky , netdev , RDMA mailing list , Stephen Hemminger , Steve Wise List-Id: linux-rdma@vger.kernel.org From: Leon Romanovsky Changelog: v1->v2: * Fixed commit messages * Added Steve's ROB v0->v1: * Rebased to latest iproute2-next * Added latest rdma_netlink.h and updated commit message to point to kernel SHA commit. This series adds ability to present and query all known to rdmatool object by their respective, unique IDs (e.g. pdn. mrn, cqn e.t.c). All objects which have "parent" object has this information too. 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 QP 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: Move MR code to be suitable for per-line parsing rdma: Place PD parsing print routine into separate function 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 | 64 +- 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, 1257 insertions(+), 934 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D88FBC43381 for ; Sat, 23 Feb 2019 09:15:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B98E20850 for ; Sat, 23 Feb 2019 09:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550913336; bh=4ctlvSqe9ei/orXzchh3c9f8SQ03Qw+rSa3YNNLRvMQ=; h=From:To:Cc:Subject:Date:List-ID:From; b=eSvrmJSLftYRjmoTWNhuQby5DjT3JppiqlJmeC1gt7oTVfEd6gFxOI7fy28BhTxIL pi3X56ygz8BntXSDS/L7lYVpi6PtAr6QPmls2+9FqXe1BDEGEhmOTLY1mOktTf/E5w JsTtQtTIOVmO0z/CNDLrfr2YNxOiL+A0DU+XwBzQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbfBWJPf (ORCPT ); Sat, 23 Feb 2019 04:15:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:53916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbfBWJPf (ORCPT ); Sat, 23 Feb 2019 04:15:35 -0500 Received: from localhost (unknown [77.138.135.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB198206BA; Sat, 23 Feb 2019 09:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550913334; bh=4ctlvSqe9ei/orXzchh3c9f8SQ03Qw+rSa3YNNLRvMQ=; h=From:To:Cc:Subject:Date:From; b=Y4g4cJFCniG98QH1+RsFWhP44I9yGxFv03CgqNC3+4D59Wln/+numMoPfCdRPW61M NonoIoChLtJ44ZG4h01bb8zKqoy1x/Ua0S+M3E+HmBQJZvi9ydL6QXp7y/Udt4jPag qo5vRQXicvuiEyZrZiMs6S1bRUw6TN/q2UNa7fUY= From: Leon Romanovsky To: David Ahern Cc: Leon Romanovsky , netdev , RDMA mailing list , Stephen Hemminger , Steve Wise Subject: [PATCH iproute2-next v2 00/19] Export object IDs to users Date: Sat, 23 Feb 2019 11:15:09 +0200 Message-Id: <20190223091528.8509-1-leon@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leon Romanovsky Changelog: v1->v2: * Fixed commit messages * Added Steve's ROB v0->v1: * Rebased to latest iproute2-next * Added latest rdma_netlink.h and updated commit message to point to kernel SHA commit. This series adds ability to present and query all known to rdmatool object by their respective, unique IDs (e.g. pdn. mrn, cqn e.t.c). All objects which have "parent" object has this information too. 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 QP 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: Move MR code to be suitable for per-line parsing rdma: Place PD parsing print routine into separate function 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 | 64 +- 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, 1257 insertions(+), 934 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