From patchwork Tue Jan 22 18:31:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 1029436 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="vPqnbsAe"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43kcSn3dmZz9s3q for ; Wed, 23 Jan 2019 05:31:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726228AbfAVSbf (ORCPT ); Tue, 22 Jan 2019 13:31:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:54538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfAVSbf (ORCPT ); Tue, 22 Jan 2019 13:31: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 DD7CA21726; Tue, 22 Jan 2019 18:31:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548181894; bh=QiMIjpZiFQ48Z1Qrv1oXSpBrHzbOPDAyhdxxsSeLBXY=; h=From:To:Cc:Subject:Date:From; b=vPqnbsAejxGPmCSKJcd1uGw4aLKZ1skTa7HyK/YrEcT6ScqZHCLM3II0h3QQAM3Dv GW1FQ+UFGJiGDYriR30QSjeALa5KLJ0FWc3sB4n35G/cDfeBBeEkcdy8z3TTKXuJcU 5BBRqPMW+kmRmeOBqObLvVPGJdkFZeLezjdid0rE= From: Leon Romanovsky To: David Ahern Cc: Leon Romanovsky , netdev , RDMA mailing list , Stephen Hemminger Subject: [PATCH iproute2-next 00/19] Export object IDs to users Date: Tue, 22 Jan 2019 20:31:06 +0200 Message-Id: <20190122183125.15920-1-leon@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Leon Romanovsky 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