From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next] rdma: Add print of link CapabilityMask2 flags Date: Thu, 27 Dec 2018 18:42:56 -0500 Message-ID: References: <20181223112419.29157-1-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Michael Guralnik , netdev , RDMA mailing list , Stephen Hemminger , Leon Romanovsky To: Leon Romanovsky Return-path: Received: from mail-pl1-f195.google.com ([209.85.214.195]:45524 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbeL0XnA (ORCPT ); Thu, 27 Dec 2018 18:43:00 -0500 In-Reply-To: <20181223112419.29157-1-leon@kernel.org> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 12/23/18 6:24 AM, Leon Romanovsky wrote: > From: Michael Guralnik > > CapabilityMask2 is defined in IBTA spec as a member of PortInfo. > Add translation to string of new CapabilityMask2 expansion of link caps. > > The flags are concatenated to current caps print as seen in this example > printing EXT_INFO flag: > > root@server-22 $ rdma -d link > 1/1: mlx5_0/1: subnet_prefix fe80:0000:0000:0000 lid 2 sm_lid 2 lmc 0 > state ACTIVE physical_state LINK_UP > caps: CAP_MASK2, CM, DEVICE_MGMT, VENDOR_CLASS, CAP_MASK_NOTICE, > CLIENT_REG, OTHER_LOCAL_CHANGES, MULT_PKER_TRAP, EXT_INFO> > > Signed-off-by: Michael Guralnik > Signed-off-by: Leon Romanovsky > --- > rdma/link.c | 36 +++++++++++++++++++++++++++++++----- > 1 file changed, 31 insertions(+), 5 deletions(-) > applied to iproute2-next. Thanks