From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linode.aoot.com ([69.164.194.13]:40372 "EHLO linode.aoot.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbeB0Arm (ORCPT ); Mon, 26 Feb 2018 19:47:42 -0500 From: "Steve Wise" To: "'Leon Romanovsky'" Cc: , , , References: <20180223142234.GX7709@mtr-leonro.local> <016a01d3af13$d1ed8500$75c88f00$@opengridcomputing.com> In-Reply-To: <016a01d3af13$d1ed8500$75c88f00$@opengridcomputing.com> Subject: RE: [PATCH RFC iproute-next 5/5] rdma: Add PD resource tracking information Date: Mon, 26 Feb 2018 18:47:39 -0600 Message-ID: <000701d3af64$920c0cd0$b6242670$@opengridcomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: en-us Sender: netdev-owner@vger.kernel.org List-ID: > > On Wed, Feb 14, 2018 at 01:07:01PM -0800, Steve Wise wrote: > > > Sample output: > > > > > > # rdma resource show pd > > > link cxgb4_0/- local_dma_lkey 0x0 usecnt 4 flags 0x0 pid 30503 comm > rping > > > > One more thing, flags need to be pre-parsed and accessible with "-d" > > command, > > as we did with dev,link capabilities. > > Will do. > > Thanks for reviewing this series! > Turns out the only flags field was in the pd, and pd->flags only has one flag, currently, indicating that the global_dma_rkey is in use. Since the kernel side only sends up the global_dma_rkey if that flag is set, I just dropped the PD_FLAGS attribute in both patch series. If pd flags grow, we can add it, but I don't expect that. Steve.