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,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 27D44C43381 for ; Wed, 20 Feb 2019 07:21:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE07F2147A for ; Wed, 20 Feb 2019 07:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550647307; bh=YiTTzfS4IwJrFWjDTURsfF6u1YHJzi8ZM5D0BetjHPg=; h=From:To:Cc:Subject:Date:List-ID:From; b=0n5GkoqN1ZoXhAIGpDG89i3wWI24XM7WwnXu+NZsXdOH9AEztoxrKazfdJGKaUVTu M3TKszoWnWpbu6YIhYW7/rK4hYr9QLmSUEeJbmY9tHpI4JxsTfoR2HPn4Coab7Cgry 1xMqkPyXylS+FqOTRAsB5FoX5/P5gpCZ+1fuDLyM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbfBTHVp (ORCPT ); Wed, 20 Feb 2019 02:21:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:36478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfBTHVp (ORCPT ); Wed, 20 Feb 2019 02:21:45 -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 C24D62146E; Wed, 20 Feb 2019 07:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550647304; bh=YiTTzfS4IwJrFWjDTURsfF6u1YHJzi8ZM5D0BetjHPg=; h=From:To:Cc:Subject:Date:From; b=Oeh+N96iSun3uCYa6LsW+peGYjm86TynLnvCO6RklK9p54vEMKF3RP7NO8oU4Ox8t qhbpn4SUXLe3W6QlQoup9GCW4RnrfJKj/b24PcKEy7UWNaHrSJVlsr39CYNqIpLElC ZoXxEJhs3spVfYsz3Wh58Z1wEHH0skacQ9zqbqX8= From: Leon Romanovsky To: David Ahern Cc: Leon Romanovsky , netdev , RDMA mailing list , Stephen Hemminger Subject: [PATCH iproute2-next v1 00/19] Export object IDs to users Date: Wed, 20 Feb 2019 09:21:17 +0200 Message-Id: <20190220072136.3840-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: 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 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 | 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